codepens/apple-inspired-pride-clock/dist/script.js

7 lines
161 B
JavaScript
Raw Normal View History

2023-10-06 23:12:53 +02:00
var time = new Date();
h = time.getHours();
m = time.getMinutes();
document.getElementById("hour").innerHTML = h;
document.getElementById("min").innerHTML = m;