diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-17 03:06:24 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-17 03:06:24 -0800 |
commit | e6ecd5ae507731050d7281f2a2a192849f41912b (patch) | |
tree | 07956b8f2725935dd5fd6078a1c2f95d64bf5b40 /pages/home.php | |
parent | aecf8ced62fd1e8594239566d62f5cc71e8fd27c (diff) | |
download | pathery-e6ecd5ae507731050d7281f2a2a192849f41912b.tar.xz |
Now using Jquery everywhere.
Moved displayMap to mapSpecs.
Using displayMap @ Home.
Cleaned up scores page.
Diffstat (limited to 'pages/home.php')
-rw-r--r-- | pages/home.php | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/pages/home.php b/pages/home.php index 31ea756..544b3fe 100644 --- a/pages/home.php +++ b/pages/home.php @@ -219,37 +219,23 @@ function displayMaze($motd, $mapType) { $r = "<div id=\"yms-$mapType\" class='hidden-maps'>";
$r .= " <div class='wrapper'>";
-
$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 />";
- //TMP
-
- $mapObj = new map(getMapCode($mapID), $mapID);
- $mapJSON = json_encode($mapObj);
- $r .= "<div id='innerMapDsp_$mapID'>";
- $r .= "</div>";
+ $r .= "<div id='innerMapDsp_$mapID'>\n";
+ $r .= "</div>\n";
$r .= "<script>";
- $r .= "document.getElementById('innerMapDsp_$mapID').innerHTML = mapAsHTML(decryptJSON('$mapJSON'));";
+ $r .= "displayMap($mapID, 'innerMapDsp_$mapID', false, '$mysolution', '$mymoves');";
$r .= "</script>";
-
-
//$r .= DisplayMap($map, $mapID);
$r .= " </div></div>";
-
$r .= " <div style='padding-top: 20px;'>";
$r .= $topscorediv;
$r .= ' </div>';
-
$r .= ' </div>';
$r .= '</div>';
-
- $mapSolDiv = "<script>
- loadSol(\"$mapID:$mysolution\", \"$mymoves\");
- </script>";
- $r .= $mapSolDiv;
//Clear our floatingness
$r .= '<div style="clear: both"></div>';
|