From c57935118f563354994986b6703959759ba1f6cd Mon Sep 17 00:00:00 2001 From: Guillermo Barila Date: Sun, 9 Sep 2018 16:02:54 -0400 Subject: [PATCH] Win/Lose sounds play in board screen. Correct/Incorrect sound need fix --- public/js/game.js | 8 ++++---- public/styles/board.css | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/public/js/game.js b/public/js/game.js index ebff985..7592f3e 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -201,23 +201,23 @@ $(document).ready(function () { // database.ref().child(sessionCode).remove(); window.location.href = "/dashboard"; }, 5000); - // On the controller screen... - } else if (localStorage.getItem("controller")) { document.getElementById("game-win").play(); + // On the controller screen... + // } else if (localStorage.getItem("controller")) { } // IF THE PLAYER GETS EATEN } else if ($(".player" + i).attr("data-position") === $(".predator").attr("data-position") && questionNumber > 1) { if (localStorage.getItem("boardScreen")) { $(".player" + i).hide(); - $(".player" + i).css("left", "-100vw;"); + $(".player" + i).attr("data-position", parseInt(numberPosition) - 13) if ($(".player1").is(":hidden") && $(".player2").is(":hidden") && $(".player3").is(":hidden")) { endGame(); } - } else if (localStorage.getItem("controller")) { document.getElementById("game-lose").play(); + // } else if (localStorage.getItem("controller")) { } } } diff --git a/public/styles/board.css b/public/styles/board.css index 62e53b8..ec310a4 100644 --- a/public/styles/board.css +++ b/public/styles/board.css @@ -59,7 +59,7 @@ main { } main img { - width: 7vw; + width: 10vw; } header { @@ -93,8 +93,9 @@ h2 { } main p { - font-size: 100%; + font-size: 110%; line-height: 1.2; + font-weight: 700; } .cabin {