diff --git a/time.js b/time.js index f8bb823..d3322be 100644 --- a/time.js +++ b/time.js @@ -16,4 +16,7 @@ setInterval(function() { if (minutes < 10) { minutes = "0" + minutes; } + var clockTime = hours + ":" + minutes + ":" + seconds + " " + period; + var clock = document.getElementById('time'); + clock.innerText = clockTime; }, 1000); \ No newline at end of file