diff --git a/python/static/css/controller.css b/python/static/css/controller.css index f500b47..f01a61a 100644 --- a/python/static/css/controller.css +++ b/python/static/css/controller.css @@ -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; } diff --git a/python/static/fonts/digital-webfont.woff b/python/static/fonts/digital-webfont.woff new file mode 100644 index 0000000..c7fd76c Binary files /dev/null and b/python/static/fonts/digital-webfont.woff differ diff --git a/python/static/js/controller.js b/python/static/js/controller.js index 65918da..48f9d8f 100644 --- a/python/static/js/controller.js +++ b/python/static/js/controller.js @@ -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(); });