diff --git a/index-test.html b/index-test.html index 041ac48..436890c 100644 --- a/index-test.html +++ b/index-test.html @@ -73,22 +73,18 @@ uhr.setTheme(theme); $('#layoutswitcher').val(layout); uhr.setLayout(layout); - if (status == 'on') { - uhr.start(); if(!isOn()) { - uhr.stop(); $('#onoffswitch').click(); } + uhr.start(); } else { - uhr.stop(); if(isOn()) { - uhr.start(); $('#onoffswitch').click(); } + uhr.stop(); } }); - diff --git a/index.html b/index.html index ebbee8b..0313b1c 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ Die Zeit als Wort - in HTML, CSS und JS + @@ -35,7 +36,7 @@
- +

Created by fritteli, inspired by QLOCKTWO. diff --git a/uhr-object.js b/uhr-object.js index bccb01b..36e5378 100644 --- a/uhr-object.js +++ b/uhr-object.js @@ -136,6 +136,7 @@ UhrRenderer.prototype.render = function(uhr) { renderer.renderarea.append('
'); } } + uhr.currentMinute = -1; uhr.update(); renderer.renderarea.fadeIn('fast'); });