Skip to content

Commit

Permalink
Set clock face to current date on tick
Browse files Browse the repository at this point in the history
  • Loading branch information
norwd authored Oct 28, 2024
1 parent 30e6b09 commit b24b27a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
</title>
<script type="text/javascript">
function tick() {
console.log(new Date());
var clockFace = document.getElementById("clockFace");
clockFace.innerHTML = new Date().toString();
setTimeout(tick);
}

console.log("Hello World!");
tick();
</script>
</head>
<body>
Expand Down

0 comments on commit b24b27a

Please sign in to comment.