aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--draughts/public/stylesheets/splash.css4
-rw-r--r--draughts/routes/index.js12
-rw-r--r--draughts/statTracker.js4
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
};