Download font, fix typo's
This commit is contained in:
parent
a07e105d47
commit
cadccc5695
3 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
BIN
python/static/fonts/digital-webfont.woff
Normal file
BIN
python/static/fonts/digital-webfont.woff
Normal file
Binary file not shown.
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue