From 8c344bf5f5f2269c6d99d9937bb6f2d3a30b1356 Mon Sep 17 00:00:00 2001 From: Denis Date: Wed, 31 Dec 2014 15:34:17 +0200 Subject: [PATCH] Improve Improved some things. --- src/game.js | 7 +++++-- src/index.html | 47 +++++++++++++---------------------------------- src/styles.css | 9 ++++++++- src/words.js | 2 +- 4 files changed, 27 insertions(+), 38 deletions(-) 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 @@