This commit is contained in:
catmpeg 2025-01-26 02:01:56 +03:00 committed by GitHub
commit 12299268f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 319 additions and 0 deletions

18
script.js Normal file
View file

@ -0,0 +1,18 @@
function digitalClock() {
const date = new Date();
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
document.getElementById("id_clock").textContent = `${hours}:${minutes}:${seconds}`;
setTimeout(digitalClock, 1000);
}
document.addEventListener('DOMContentLoaded', (event) => {
digitalClock();
// Загрузка счетчика посещений
const script = document.createElement('script');
script.src = "//counter.websiteout.com/js/3/8/0/1";
document.getElementById('visit-counter').appendChild(script);
});