diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-07 03:55:05 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-07 03:55:05 -0600 |
commit | ba050a8f540232b84fffc48e56bbe018caff9e49 (patch) | |
tree | c2db4d596d1cf61a817eadf680f6355562dc5443 | |
parent | 7e47f4fbf42cb4f99eb68a1e6310785f7972bde8 (diff) | |
download | pathery-ba050a8f540232b84fffc48e56bbe018caff9e49.tar.xz |
Added a "solution not available" message to currently-running maps
-rw-r--r-- | css/stats.css | 14 | ||||
-rw-r--r-- | pages/scores.php | 9 |
2 files changed, 22 insertions, 1 deletions
diff --git a/css/stats.css b/css/stats.css index 1a96475..7539644 100644 --- a/css/stats.css +++ b/css/stats.css @@ -121,6 +121,20 @@ .mapThumbnail.current:hover { background-color:#474747; } +#currentMapMessage +{ + color: #FF2818; + display: none; + text-align: center; + padding-bottom: 12px; +} + +#currentMapMessage span +{ + background-color: #1A1A1A; + border-radius: 8px 8px 8px 8px; + padding: 3px 10px; +} table { 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_<mapId> 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); <div id='mapNavigation'></div>
</div>
</div>
-
+ <div id="currentMapMessage"><span>This map is currently running, so points/solutions are not available</span></div>
<div style='clear:both'></div>
<div>
<div class='scoreCol' id='scoreDisplay'></div>
|