From ba050a8f540232b84fffc48e56bbe018caff9e49 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Thu, 7 Mar 2013 03:55:05 -0600 Subject: Added a "solution not available" message to currently-running maps --- pages/scores.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/scores.php b/pages/scores.php index 37ef45c..ee7c88b 100644 --- a/pages/scores.php +++ b/pages/scores.php @@ -90,6 +90,13 @@ function displayMapScores(mapID) { $('#scoreDisplay').empty(); newDiv.prependTo('#scoreDisplay'); } + + //Hack: display the "current map" div for currently running maps + //Relies on the fact that the #thumb_ div has a single child with the 'current' class.. + var showCurrentMapMessage = $('#thumb_'+mapID).children().hasClass('current'); + $('#currentMapMessage').toggle(showCurrentMapMessage); + + $("#mapDisplay").fadeOut('fast'); displayMap(mapID, "mapDisplay", 682); scoresShowPage(pointerPage, mapID); @@ -282,7 +289,7 @@ topbar($Links);
- +
This map is currently running, so points/solutions are not available
-- cgit v1.2.3 From f7b36706f5a63958e2fdc4ca637297e93a580be4 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Thu, 7 Mar 2013 03:57:32 -0600 Subject: Moved #displayDate to CSS, fixed padding --- css/stats.css | 6 ++++++ pages/scores.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'pages') diff --git a/css/stats.css b/css/stats.css index 7539644..1009476 100644 --- a/css/stats.css +++ b/css/stats.css @@ -1,3 +1,9 @@ +#displayDate +{ + font-size: 105%; + text-align: center; + padding: 7px 0px; +} .col1 { float: left; margin-right: 8px; diff --git a/pages/scores.php b/pages/scores.php index ee7c88b..9819b01 100644 --- a/pages/scores.php +++ b/pages/scores.php @@ -278,7 +278,7 @@ topbar($Links);
-
+
Loading...
-- cgit v1.2.3 From d4fce99f8149f352f5bba9deced0c98198d5c4d9 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Thu, 7 Mar 2013 04:26:49 -0600 Subject: Changed pointer on left/right arrows in score page, and made them unselectable (via new global '.unselectable' class, which you can use elsewhere if you want) --- css/page.css | 9 +++++++++ css/stats.css | 2 +- includes/header.php | 3 +-- js/globe.js | 12 ++++++++---- js/scores.js | 25 +++++++++++++------------ pages/scores.php | 4 ++-- 6 files changed, 34 insertions(+), 21 deletions(-) (limited to 'pages') diff --git a/css/page.css b/css/page.css index 46563d2..ec0f1c9 100644 --- a/css/page.css +++ b/css/page.css @@ -507,5 +507,14 @@ table.score th { background-color:#356; cursor:default; } +.unselectable +{ + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} diff --git a/css/stats.css b/css/stats.css index 1009476..282f58a 100644 --- a/css/stats.css +++ b/css/stats.css @@ -63,7 +63,7 @@ cursor: auto; } .mapNavActive { - cursor: auto; + cursor: pointer; } .mapNavActive:hover { background-color: #343c57; diff --git a/includes/header.php b/includes/header.php index 44d028e..cf427e4 100644 --- a/includes/header.php +++ b/includes/header.php @@ -20,11 +20,10 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a foreach ($scripts as $s) echo ""; ?> + - -