summaryrefslogtreecommitdiffstats
path: root/pages/home.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-07-31 22:34:08 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-07-31 22:34:08 -0700
commit2d290b23c402561ef30c1de665895c120dd79483 (patch)
tree8bde5ebd953f3dd375abe88e61e40571df313b1f /pages/home.php
parent628c2e712e39fe85762583fd1ddc12609746fc58 (diff)
downloadpathery-2d290b23c402561ef30c1de665895c120dd79483.tar.xz
Everything related to the scoreboard.
New feedback page. Changed the speed of the pauses on checkpoints during a path animation. Changed how notifications are recieved.
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php43
1 files changed, 26 insertions, 17 deletions
diff --git a/pages/home.php b/pages/home.php
index b1335a4..c2a8e8a 100644
--- a/pages/home.php
+++ b/pages/home.php
@@ -1,5 +1,10 @@
<?php
-htmlHeader(array('stats'), 'Pathery', 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific');
+ob_start("ob_gzhandler");
+htmlHeader(
+ array('stats'), 'Pathery',
+ 'Compete to create the longest maze possible. 4 New maps every day at 9 PM Pacific',
+ array('scores', 'dateformat')
+);
include_once ('./includes/maps.php');
include_once ('./includes/mapoftheday.php');
@@ -100,6 +105,11 @@ topbar($Links);
<div class="wrapper">
+<center>Site update complete!
+<br />If you find any problems/bugs please report them using our <a href='feedback'>Feedback Page</a>
+<br />Thank you!!
+<br /><br />
+</center>
<?
if ($accepted) {
@@ -156,8 +166,14 @@ function displayMaze($motd, $mapType) {
$width = $map[0][0];
//data for the topscores
- $topscores = topScores($motd['id'], 30);
- $topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
+ //$topscores = topScores($motd['id'], 30);
+ //$topscorediv = "<div id='$mapID,dspScore'>\n$topscores\n</div>";
+
+ $topscorediv = "
+<div class='scoreContainer2' style='position:relative;' id='$mapID,dspScore'>
+</div>
+<script>scoresShowPage($mapID, 1);</script>
+ ";
$mysolution = '';
$mymoves = '';
@@ -174,16 +190,7 @@ function displayMaze($motd, $mapType) {
$r = "<div id=\"yms-$mapType\" class='hidden-maps'>";
$r .= " <div class='wrapper'>";
-
- // if ($width <= 16) {
- // $r .= ' <div class="col1">';
- // $r .= $topscorediv;
- // $r .= ' </div>';
-
- // $r .= ' <div class="col2">';
- // $r .= "<a href='javascript:requestSol(\"$mapID\");'>Load your best solution</a><br />";
- // $r .= DisplayMap($map, $mapID);
- // $r .= ' </div>';
+
$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 />";
@@ -210,7 +217,7 @@ function displayMaze($motd, $mapType) {
$timerem = strtotime("tomorrow") - strtotime("now");
?>
- <div style='text-align: center; margin-top: 5px;'>
+ <div style='text-align: center; margin-top: 5px; position:fixed; bottom:20px; left:20px;'>
New maps in: <span id="countdown">00:00:00</span>
</div>
<script type="text/javascript">
@@ -238,7 +245,10 @@ $timerem = strtotime("tomorrow") - strtotime("now");
timerem = timerem%60;
var seconds = addZero(timerem);
- var stamp = hours + ":" + minutes + ":" + seconds;
+ var stamp = hours + ":" + minutes;
+ if (hours < 1 && minutes < 5)
+ stamp = stamp + ":" + seconds
+
document.getElementById("countdown").innerHTML = stamp;
if (totalSeconds <= 1 && userConfirm == true) {
userConfirm = confirm("It's Tomorrow Today! Go to new maps?")
@@ -291,13 +301,12 @@ function showStats(type) {
jmid[4] = '$jmid[4]';
";
?>
- updateScoresReq(jmid[type], type);
+ scoresRequestPage(jmid[type], currentPage[jmid[type]]);
}
showStats(1);
</script>
<script src="sounds/script/soundmanager.js"></script>
<script type="text/javascript">soundManagerInit();</script>
-
<?PHP echo $noteScript; ?>
<?php