summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-09 14:16:37 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-09 14:16:37 -0800
commit9462f29413dc1320b3899f7fbbbb75be64fbaede (patch)
tree0f534c8ef712d519aea7ed6e919f0277af654088 /pages/home.php
parent357e548fef7f73338e8c3e7415f2407c7dbb7ac7 (diff)
downloadpathery-9462f29413dc1320b3899f7fbbbb75be64fbaede.tar.xz
Huge changes; started deprecation of PHP's displayMap()
New JS function 'mapAsHTML(mapAsObject)' getScores() will now return solutions if the map has expired. Homepage now uses mapAsHTML. Removed some padding on scoreboard. scoresFormatPage() supports solutions if available. (This can be row-specific) And tons of CSS - deprecating old CSS.
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php26
1 files changed, 19 insertions, 7 deletions
diff --git a/pages/home.php b/pages/home.php
index 7898a3c..f8841b5 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -1,6 +1,7 @@
<?php
include_once ('./includes/maps.php');
+include_once ('./includes/mapclass.php');
include_once ('./includes/mapoftheday.php');
include_once ('./includes/sqlEmbedded.php');
include_once ('./includes/datas.php');
@@ -115,12 +116,10 @@ $adContent = "
<div class="wrapper">
-<center>12/12/12 - We're introducing a new map & mechanic!
-I'd like to hear what you think about it!
-<br />Send me a line at the <a href="feedback">Feedback Page</a>.
-<br />Wir f&#252;hren eine neue Map und einen ne&#252;n Mechanismus ein!
-Ich w&#252;sste gern, was du davon h&#228;ltst!
-Schick mir einfach eine Zeile auf der <a href="feedback">Feedback-Seite</a>.
+<center>
+Tutorial, FAQ, and Challenge maps are broken. ^_^.
+<br />Still working on <a href='scores'>The Scores Page</a>.
+<br />Leave feedback in <a href='chat'>The Chat</a> as per usual.
</center>
<br />
@@ -228,7 +227,20 @@ function displayMaze($motd, $mapType) {
$r .= " <div style='text-align: center;'>";
$r .= " <div style='display:inline-block;margin: 0 auto;text-align: left;'>";
$r .= " <a href='javascript:requestSol(\"$mapID\");'><strong>Load your best solution</strong></a><br />";
- $r .= DisplayMap($map, $mapID);
+ //TMP
+
+ $mapObj = new map(getMapCode($mapID), $mapID);
+ $mapJSON = json_encode($mapObj);
+
+ $r .= "<div id='innerMapDsp_$mapID'>";
+ $r .= "</div>";
+ $r .= "<script>";
+ $r .= "document.getElementById('innerMapDsp_$mapID').innerHTML = mapAsHTML(decryptJSON('$mapJSON'));";
+ $r .= "</script>";
+
+
+
+ //$r .= DisplayMap($map, $mapID);
$r .= " </div></div>";
$r .= " <div style='padding-top: 20px;'>";