Skip to content

Commit

Permalink
Implemented clock displaying on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
evo777 committed Jan 17, 2017
1 parent 4f85921 commit daaff72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit daaff72

Please sign in to comment.