From 3cff5246a07c9fc3fcf0a3e2ab63c79349820e42 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 26 Feb 2013 03:20:06 -0800 Subject: BUGFIX: I hate Javascript Time. CSS changes too. --- css/stats.css | 25 ++++++++++++++++++++++++- pages/scores.php | 57 ++++++++++++++++++++++++++++---------------------------- 2 files changed, 52 insertions(+), 30 deletions(-) diff --git a/css/stats.css b/css/stats.css index 166573d..83a8341 100644 --- a/css/stats.css +++ b/css/stats.css @@ -48,18 +48,26 @@ border-radius: 0px 25px 6px 0px; vertical-align: middle; text-align:center; - line-height: 130px; + line-height: 126px; text-decoration: none; background-color: #262631; font-size:200%; border-radius: 5px; border: 1px solid #333; + cursor: auto; +} +.mapNavActive { + cursor: auto; } .mapNavActive:hover { background-color: #343c57; } +.mapNavActive:active { + background-color: #555588; +} .mapNavDisabled { background-color: #222223; + cursor: default; } .mapNavCenter { float:left; @@ -81,6 +89,18 @@ overflow-y:hidden; } +.scoreCol { + min-height:500px; + min-width:277px; + float:left; +} +.mapCol { + min-height:500px; + float:left; + margin-left: 7px; + max-width:500px; +} + .mapThumbnail { display:inline-block; padding: 8px; @@ -168,6 +188,9 @@ td, th { .scoreActive:hover { background-color: #343c57; } +.scoreActive:active { + background-color: #555588; +} .scoreDisabled { background-color: #222223; } diff --git a/pages/scores.php b/pages/scores.php index 3a28494..03e049b 100644 --- a/pages/scores.php +++ b/pages/scores.php @@ -15,13 +15,13 @@ if (isset($_GET['date'])) { } else $dateLookup = $dateDisplay; -$dateNextDay = date('Y-m-d', strtotime("+1 day", $dateAgo)); - -//!! TODO: -$timeUntilNewDailyMap = strtotime("tomorrow") - strtotime("now"); +$jsYear = date("Y"); +//The part where you face palm... +$jsMonth = date("n") - 1; +$jsDay = date("j"); +$jsDate = "$jsYear,$jsMonth,$jsDay"; ?> -