diff options
| author | Thomas Voss <thomasvoss@live.com> | 2022-01-13 11:34:00 +0100 | 
|---|---|---|
| committer | Thomas Voss <thomasvoss@live.com> | 2022-01-13 11:34:00 +0100 | 
| commit | ad4cc6e221072acc3fbbd47b3f69b9b424e18d6d (patch) | |
| tree | e745f4ffe27030e4c26dbfbd1f3725b93bb897e0 /draughts | |
| parent | 379f1a7ec74e8c4f382bc9a5a638bea414144cb5 (diff) | |
Spaces -> Tabs
Diffstat (limited to 'draughts')
| -rw-r--r-- | draughts/public/stylesheets/splash.css | 4 | ||||
| -rw-r--r-- | draughts/routes/index.js | 12 | ||||
| -rw-r--r-- | 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    };  |