Clock, HTML + CSS + JS
HTML, CSS and JS for a extended clock
From the heystacks.com archiveUpdated 426 views
Clock, HTML + CSS + JS
HTML, CSS and JS for a extended clock
idk
HTML
Clock
Today's Date.
CSS
body{
padding: 25px;
}
.title {
color: #800000;
}
JS
function showTime() {
document.getElementById('currentTime').innerHTML = new Date().toUTCString();
}
showTime();
setInterval(function () {
showTime();
}, 1000);
________________
Changing the HEX code in the CSS section (#800000) to another HEX code the color of the words ‘Today’s Date’ will change.
Hex codes:
Maroon - #800000
Blue - #0000FF
Red - #FF0000
Black - #000000
White - #FFFFFF
Yellow - #FF0000
Green - #00FF00
Orange - #FFA500
Purple - #6A0DAD
Pink - #FFC0CB
Discussion 0
No discussion yet. Start it — no sign-up needed.