From ad4cc6e221072acc3fbbd47b3f69b9b424e18d6d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 13 Jan 2022 11:34:00 +0100 Subject: Spaces -> Tabs --- draughts/public/stylesheets/splash.css | 4 ++-- draughts/routes/index.js | 12 ++++++------ draughts/statTracker.js | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/draughts/public/stylesheets/splash.css b/draughts/public/stylesheets/splash.css index 69a9dbf..50ee578 100644 --- a/draughts/public/stylesheets/splash.css +++ b/draughts/public/stylesheets/splash.css @@ -13,8 +13,8 @@ body { /* Set the default font */ font-family: "Saira Condensed"; - background-color: var(--dark-blue); - color: white; + background-color: var(--dark-blue); + color: white; /* Remove the margin on the sides of the screen */ margin: 0; diff --git a/draughts/routes/index.js b/draughts/routes/index.js index a593029..0e5273e 100644 --- a/draughts/routes/index.js +++ b/draughts/routes/index.js @@ -5,16 +5,16 @@ var gameStatus = require("../statTracker"); // Get game screen router.get("/play", function(req, res) { - res.sendFile("game.html", { root: "./public" }); + res.sendFile("game.html", { root: "./public" }); }); /* GET home page */ router.get("/", function(req, res) { - res.render("splash.ejs", { - minimumMoves: gameStatus.minimumMoves, - averageMoves: gameStatus.averageMoves, - totalGames: gameStatus.totalGames - }); + res.render("splash.ejs", { + minimumMoves: gameStatus.minimumMoves, + averageMoves: gameStatus.averageMoves, + totalGames: gameStatus.totalGames + }); }); module.exports = router diff --git a/draughts/statTracker.js b/draughts/statTracker.js index 29f68c0..1f9a7b8 100644 --- a/draughts/statTracker.js +++ b/draughts/statTracker.js @@ -1,6 +1,6 @@ const gameStatus = { - since: Date.now() /* since we keep it simple and in-memory, keep track of when this object was created */, - minimumMoves: Infinity, + since: Date.now() /* since we keep it simple and in-memory, keep track of when this object was created */, + minimumMoves: Infinity, averageMoves: Infinity, totalGames: 0 }; -- cgit v1.2.3