diff --git a/src/game.js b/src/game.js index d307f3f..fcd47e3 100644 --- a/src/game.js +++ b/src/game.js @@ -58,7 +58,7 @@ function newGame(wordList) { // DOM Elements & Events $(document).ready(function() { - $('.footer-content').append("
Spanzuratoarea created by" + "@Niutenisu
"); + //$('.footer-content').append("
Spanzuratoarea created by" + "@Niutenisu
"); var listaCuvinte = localStorage.getItem("listaCuvinte"); if (listaCuvinte != null) { @@ -74,6 +74,9 @@ $(document).ready(function() { // eval for transforming string into object ref!!! newGame(eval($(this).prev().val())); // POSSIBLE EXPLOIT!! // prev for mobile <3 + /* On the page are two elements that have select[name=lista_cuvinte] + * We use next() for the button and prev() to get the value of the + * sellection. */ }); $('#game').fadeIn("slow"); @@ -135,7 +138,7 @@ function gameWon() { $(document).on("keypress", function(e) { var key = e.keyCode || e.which; if (key == 13) - window.location.reload(); // Da reset la handlere :-) + window.location.reload(); // Reset handlers :-) }); } diff --git a/src/index.html b/src/index.html index ec9d43d..0e90b04 100644 --- a/src/index.html +++ b/src/index.html @@ -23,54 +23,26 @@