diff --git a/index.css b/index.css index ec4a909..310c99b 100644 --- a/index.css +++ b/index.css @@ -5,7 +5,7 @@ body { #clock { height: 100px; width: 800px; - margin: auto; + margin: 10px; position: absolute; top: 0; left: 0; bottom: 0; right: 0; padding-top: 70px; diff --git a/index.html b/index.html index 191d3cc..0f706e8 100644 --- a/index.html +++ b/index.html @@ -1,14 +1,22 @@ - - Clock Tower - - - - - -
- - + + Clock Tower + + + + + +

Is it time for fun?

+
+ + - + + + + + diff --git a/index.js b/index.js index 877a3aa..0f93d5b 100644 --- a/index.js +++ b/index.js @@ -1 +1,14 @@ -// Your code here +// console.log("TEST, TEST"); +$(document).ready(function() { // anonymous function + + console.log("ANOTHER TEST"); + + var getTime = function(){ + console.log("Hey I'm in a clock"); + timenow = $('
' + new Date() + '
'); + $('#clock').replaceWith(timenow); + }; + + + var myTimer = setInterval(getTime, 1000); +});