diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 17:45:59 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 17:45:59 -0700 |
commit | 0759852ab7a9af16e5f4c444ef5d1e0db6feabd3 (patch) | |
tree | 3d14988dee9ff20584ab5227cbdb81df3389b6e2 /pages/home.php | |
parent | 6206e6f71133e1266275c7309134bb7f876ea85e (diff) | |
download | pathery-0759852ab7a9af16e5f4c444ef5d1e0db6feabd3.tar.xz |
The start on Multi-day maps and Dual Path mechanic
Halfway started both.
Diffstat (limited to 'pages/home.php')
-rw-r--r-- | pages/home.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pages/home.php b/pages/home.php index 7e5e401..2b59bc2 100644 --- a/pages/home.php +++ b/pages/home.php @@ -109,6 +109,15 @@ if ($special == '') { $special = 'Special';
}
+$motd = MapOfTheDay(5);
+$jmid[5] = $motd['id'];
+$mapContent .= displayMaze($motd, 5);
+
+$special2 = $motd['map'][0][6];
+if ($special2 == '') {
+ $special2 = 'Special';
+}
+
?>
<div id="difficulties">
@@ -116,6 +125,7 @@ if ($special == '') { <a href="javascript:showStats(2)" id="dl-2">Normal</a>
<a href="javascript:showStats(3)" id="dl-3">Complex</a>
<a href="javascript:showStats(4)" id="dl-4"><? echo $special; ?></a>
+ <a href="javascript:showStats(5)" id="dl-5"><? echo $special2; ?></a>
</div>
<div style="clear: both"></div>
@@ -247,7 +257,7 @@ $timerem = strtotime("tomorrow") - strtotime("now"); <script>
function showStats(type) {
- for (var i = 1; i <= 4; i++) {
+ for (var i = 1; i <= 5; i++) {
var elem = document.getElementById("yms-" + i);
elem.className = elem.className.replace('shown-maps', 'hidden-maps');
elem = document.getElementById("dl-" + i);
@@ -268,6 +278,7 @@ function showStats(type) { jmid[2] = '$jmid[2]';
jmid[3] = '$jmid[3]';
jmid[4] = '$jmid[4]';
+ jmid[5] = '$jmid[5]';
";
?>
scoresRequestPage(jmid[type], currentPage[jmid[type]]);
|