diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/home.php | 8 | ||||
-rw-r--r-- | pages/tutorial.php | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/pages/home.php b/pages/home.php index 71bcd33..45911c5 100644 --- a/pages/home.php +++ b/pages/home.php @@ -152,7 +152,7 @@ function displayMaze($motd, $mapType) { //data for the topscores
$topscores = topScores($motd['id'], 30);
- $topscorediv = "<center><a href='javascript:updateScoresReq($mapID);'>Update</a></center> <div id='$mapID,dspScore'>\n$topscores\n</div>";
+ $topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
$userID = $_SESSION['userID'];
if ($_SESSION['accepted'] == 1) {
@@ -266,10 +266,10 @@ function showStats(type) { elem.className += 'selected';
var x = 0;
- for(var mapid in jsonmapdata) {
+ for(var mapid in jsonmapdata) {
x++;
if (x == type)
- updateScoresReq(mapid);
+ updateScoresReq(mapid, type);
}
}
showStats(1);
@@ -281,4 +281,4 @@ showStats(1); <?php
htmlFooter();
-?>
\ No newline at end of file +?>
diff --git a/pages/tutorial.php b/pages/tutorial.php index 0f10418..d962f68 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -205,6 +205,7 @@ function TutorialView(low, high) { this.nextbtn = document.getElementById('nextbtn');
this.prevbtn = document.getElementById('prevbtn');
this.interval1 = this.interval2 = null;
+ mixpanel.track('tutorial', {'step': this.cur});
}
TutorialView.prototype.showTutorial = function(num) {
for (var i = this.low; i <= this.high; i++) {
@@ -235,6 +236,7 @@ TutorialView.prototype.next = function() { //this.nextbtn.className += ' disabled';
}
this.prevbtn.className = this.prevbtn.className.replace(' hidden', '');
+ mixpanel.track('tutorial', {'step': this.cur});
}
TutorialView.prototype.prev = function() {
this.showTutorial(--this.cur);
@@ -260,7 +262,6 @@ TutorialView.prototype.unlock = function(n) { }, 600);
}
}
-
}
</script>
|