mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Start working on new landing page
Remove old code
This commit is contained in:
11
docker/nginx/dist/html/assets/js/clock.js
vendored
Normal file
11
docker/nginx/dist/html/assets/js/clock.js
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
function updateClock() {
|
||||
const now = new Date();
|
||||
const hours = ('0' + now.getHours()).slice(-2);
|
||||
const minutes = ('0' + now.getMinutes()).slice(-2);
|
||||
const day = ('0' + now.getDate()).slice(-2);
|
||||
const month = ('0' + (now.getMonth() + 1)).slice(-2);
|
||||
const year = now.getFullYear();
|
||||
document.getElementById('clock').textContent = hours + ':' + minutes + ' | ' + day + '/' + month + '/' + year;
|
||||
setTimeout(updateClock, 1000);
|
||||
}
|
||||
updateClock();
|
Reference in New Issue
Block a user