Download font, fix typo's

This commit is contained in:
redfast00 2022-02-11 21:38:27 +01:00
parent a07e105d47
commit cadccc5695
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
3 changed files with 2 additions and 5 deletions

View file

@ -1,6 +1,6 @@
@font-face {
font-family: "digital";
src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/38273/digital-webfont.woff");
src: url("/static/fonts/digital-webfont.woff");
font-weight: normal;
font-style: normal;
}

Binary file not shown.

View file

@ -106,7 +106,7 @@ function updateGameState() {
new Date().getTime() + data.timeleft * 1000
);
// Calculate the ew total amount of strikes for all puzzles.
// Calculate the total amount of strikes for all puzzles.
const newStrikes = data.puzzles
.map((p) => p.strikes)
.reduce((a, b) => a + b, 0);
@ -206,9 +206,6 @@ function updateSegmentDisplay() {
* When the window is loaded.
*/
window.addEventListener("load", () => {
// Initiliaz the game state.
initializeGameState();
// Initialize the segment display.
initializeSegmentDisplay();
});