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/tutorial.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/tutorial.php')
-rw-r--r-- | pages/tutorial.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pages/tutorial.php b/pages/tutorial.php index 95a5a53..d09480c 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -11,7 +11,7 @@ else topbar($Links);
-//!! Turn this into a function?
+//TODO: Turn this into a function?
if ($accepted) {
include_once ('./includes/db.inc.php');
$userID = $_SESSION['userID'];
@@ -71,6 +71,7 @@ challenge5.help = "Try placing the walls as highlighted."; function challengeGo(mapid) {
var moves = mapjson[mapid].moves;
+ var tiles;
switch (mapid) {
case '1':
@@ -84,7 +85,7 @@ function challengeGo(mapid) { tv.unlock(3);
} else {
updateDsp(1, 'instructions', challenge2.help);
- var tiles = ["2,3,5","2,4,6"];
+ tiles = ["2,3,5","2,4,6"];
markTiles(tiles);
}
break;
@@ -95,7 +96,7 @@ function challengeGo(mapid) { tv.unlock(4);
} else {
updateDsp(1, 'instructions', challenge3.help);
- var tiles = ["3,3,6","3,4,7","3,3,2","3,2,1"];
+ tiles = ["3,3,6","3,4,7","3,3,2","3,2,1"];
markTiles(tiles);
}
break;
@@ -106,7 +107,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;
@@ -117,7 +118,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;
@@ -134,7 +135,7 @@ function markTiles(tiles) { }
}
-//!!
+//TODO:
function challengeWall(mapid) {
//Required walls:
var reqwall = new Array();
@@ -212,7 +213,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', '');
|