diff --git a/index.html b/index.html index 21e3879..7b2cf90 100644 --- a/index.html +++ b/index.html @@ -88,8 +88,12 @@ } function setTime(time) { - // dateTime = new Date('2022-07-17 00:00:00'); - dateTime = new Date(); + if (debug) { + dateTime = new Date('2022-07-17 ' + document.querySelector('#timeOverride').value); + } + else { + dateTime = new Date(); + } po = dateTime.getMinutes() < 30; oclock = dateTime.getMinutes() == 0; @@ -246,6 +250,12 @@ setActive('.seconds.active', false); } + function toggleDebug() { + setHidden('#timeOverride', debug); + debug = !debug; + localStorage.setItem('debug', JSON.stringify(debug)); + } + function log(text) { document.getElementById('log').innerText = text; } @@ -255,7 +265,9 @@
- +
+ +

TerazXJestSmokDwadzieścia
diff --git a/zegar2.html b/zegar2.html index c1729de..c15ca1e 100644 --- a/zegar2.html +++ b/zegar2.html @@ -60,17 +60,17 @@ text-align: center; } + a { + text-decoration: none; + color: initial; + } + .buttons { float: left; position: absolute; display: inline; } - a { - text-decoration: none; - color: initial; - } - .hidden { display: none; } @@ -235,8 +235,7 @@
- +