From 8e639fd6cccecb3f23f727ef1f00f7e9851ea04e Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sat, 25 Aug 2012 05:43:26 -0500 Subject: Fixing various javascript warnings, as well as renaming all //!! comments to //TODO --- pages/challenge.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pages/challenge.php') diff --git a/pages/challenge.php b/pages/challenge.php index f011d3e..1f0e258 100644 --- a/pages/challenge.php +++ b/pages/challenge.php @@ -48,6 +48,7 @@ challenge5.help = "Try placing the walls as highlighted."; function challengeGo(mapid) { var moves = mapjson[mapid].moves; + var tiles; switch (mapid) { case '1': @@ -85,7 +86,7 @@ function challengeGo(mapid) { tv.unlock(5); } else { updateDsp(1, 'instructions', challenge4.help); - var tiles = ["4,1,5","4,2,6","4,3,7","4,4,9"]; + tiles = ["4,1,5","4,2,6","4,3,7","4,4,9"]; markTiles(tiles); } break; @@ -96,7 +97,7 @@ function challengeGo(mapid) { //Unlock next button. } else { updateDsp(1, 'instructions', challenge5.help); - var tiles = ["5,1,5","5,2,6","5,3,3","5,4,2","5,3,1"]; + tiles = ["5,1,5","5,2,6","5,3,3","5,4,2","5,3,1"]; markTiles(tiles); } break; @@ -113,7 +114,7 @@ function markTiles(tiles) { } } -//!! +//TODO: function challengeWall(mapid) { //Disable function return; @@ -192,7 +193,7 @@ TutorialView.prototype.showTutorial = function(num) { if (elem.className.indexOf('hidden') < 0) elem.className += 'hidden'; } - var elem = document.getElementById("tut-" + num); + elem = document.getElementById("tut-" + num); elem.className = elem.className.replace('hidden', ''); //Is the map after this disabled? this.nextbtn.className = this.nextbtn.className.replace(' disabled', ''); -- cgit v1.2.3