From daaff72c174168ec4e33a022cdf1b312d4066b7c Mon Sep 17 00:00:00 2001 From: Emmanuel Vo Date: Tue, 17 Jan 2017 14:02:04 -0800 Subject: [PATCH] Implemented clock displaying on screen --- time.js | 3 +++ 1 file changed, 3 insertions(+) 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