From 18adbb4f413feeeaec8b71849439921d5fd63fd0 Mon Sep 17 00:00:00 2001 From: laura Date: Mon, 22 May 2017 05:26:58 -0700 Subject: [PATCH] Clock function working --- index.html | 26 ++++++++++++++++---------- index.js | 9 ++++++++- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 191d3cc..23430bf 100644 --- a/index.html +++ b/index.html @@ -1,14 +1,20 @@ - - Clock Tower - - - + + Clock Tower + + + - -
- - + +
+ + + + - + + diff --git a/index.js b/index.js index 877a3aa..628f792 100644 --- a/index.js +++ b/index.js @@ -1 +1,8 @@ -// Your code here +$(document).ready(function() { + var checkTime = setInterval(function() { + var today = new Date(Date.now()); + + console.log(today); + $('#clock').html(today); + }, 1000); +});