mirror of
https://github.com/catmpeg/catmpeg.github.io.git
synced 2026-02-20 15:50:57 +03:00
sosiski
This commit is contained in:
commit
12299268f6
7 changed files with 319 additions and 0 deletions
18
script.js
Normal file
18
script.js
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue