From f93eb8dcbc7c1d159807fad3d7fb30df912dcd8f Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Thu, 31 Mar 2011 15:52:35 +0200 Subject: [PATCH] Changed clocks to be components. --- configuration.txt | 2 + web/css/dynmap_style.css | 29 ++++++++----- web/index.html | 2 - web/js/chatballoon.js | 2 +- web/js/clock.digital.js | 42 ------------------- web/js/clock.timeofday.js | 59 --------------------------- web/js/digitalclock.js | 42 +++++++++++++++++++ web/js/map.js | 44 +++++--------------- web/js/timeofdayclock.js | 86 +++++++++++++++++++++++++++++++++++++++ 9 files changed, 161 insertions(+), 147 deletions(-) delete mode 100644 web/js/clock.digital.js delete mode 100644 web/js/clock.timeofday.js create mode 100644 web/js/digitalclock.js create mode 100644 web/js/timeofdayclock.js diff --git a/configuration.txt b/configuration.txt index a1e371b8..1583f407 100644 --- a/configuration.txt +++ b/configuration.txt @@ -89,6 +89,8 @@ web: messagettl: 5 - type: playermarkers showplayerfaces: true + - type: digitalclock + #- type: timeofdayclock defaultworld: world worlds: diff --git a/web/css/dynmap_style.css b/web/css/dynmap_style.css index 4e3c304c..96ddcef8 100644 --- a/web/css/dynmap_style.css +++ b/web/css/dynmap_style.css @@ -232,27 +232,31 @@ margin-left: 8px; } */ -.clock { - position: relative; - bottom: 16px; +.largeclock.digitalclock { + text-align: center; + font-size: 50px; + font-weight: bold; +} + +.digitalclock { text-align: center; } -.clock.night { +.digitalclock.night { /* background-image: url(../images/clock_night.png); */ color: #dff; } -.clock.day { +.digitalclock.day { /* background-image: url(../images/clock_day.png); */ color: #fd3; } -.clock.night, .clock.day { - -moz-transition: all 8s 8s linear; - -webkit-transition: all 8s 8s linear; - -o-transition: all 8s 8s linear; - transition: all 8s 8s linear; +.digitalclock.night, .digitalclock.day { + -moz-transition: color 8s 8s linear; + -webkit-transition: color 8s 8s linear; + -o-transition: color 8s 8s linear; + transition: color 8s 8s linear; } @@ -285,6 +289,11 @@ background-image: url(../images/moon.png); } +.timeofday.digitalclock { + position: relative; + bottom: 16px; +} + /******************* * map list-specific styling */ diff --git a/web/index.html b/web/index.html index 79bfad8b..a3933bfa 100644 --- a/web/index.html +++ b/web/index.html @@ -24,8 +24,6 @@ - -