Compare commits
2 Commits
5f5e5f2341
...
a7d623f5ff
| Author | SHA1 | Date | |
|---|---|---|---|
| a7d623f5ff | |||
| 6cdd12d1d8 |
@@ -87,7 +87,7 @@
|
||||
document.getElementById('handChronon').style.transform = `rotate(${cf * 360}deg)`;
|
||||
}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
function initClock() {
|
||||
placeMarkers();
|
||||
updateClock();
|
||||
setInterval(updateClock, 1000);
|
||||
@@ -97,5 +97,11 @@
|
||||
document.body.classList.toggle('fullscreen-clock');
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initClock);
|
||||
} else {
|
||||
initClock();
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user