diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2012-08-25 05:43:26 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2012-08-25 05:43:26 -0500 |
commit | 8e639fd6cccecb3f23f727ef1f00f7e9851ea04e (patch) | |
tree | 26260fbe93294728d294a5f14fc72bd908013dbd /pages/challenge.php | |
parent | 73d12dd8c33eb6ebeee4143707cb59f701936945 (diff) | |
download | pathery-8e639fd6cccecb3f23f727ef1f00f7e9851ea04e.tar.xz |
Fixing various javascript warnings, as well as renaming all //!! comments to //TODO
Diffstat (limited to 'pages/challenge.php')
-rw-r--r-- | pages/challenge.php | 9 |
1 files changed, 5 insertions, 4 deletions
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', '');
|