From c023d8d33189245a2ed164210001c65190aa86d6 Mon Sep 17 00:00:00 2001 From: yourUsername Date: Sun, 27 Nov 2016 22:22:10 -0500 Subject: [PATCH] attempted js --- style.css | 3 +-- timers.js | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 6ddb643..ecd5224 100644 --- a/style.css +++ b/style.css @@ -12,7 +12,7 @@ h1 { } button { - background: #4479BA; + background: #ff96ca; color: #FFF; font-family: Josefin Slab; font-size: 50px; @@ -27,4 +27,3 @@ button { button:hover{ background: #356094; } - diff --git a/timers.js b/timers.js index fd40910..cdedba2 100644 --- a/timers.js +++ b/timers.js @@ -1,4 +1,39 @@ +//Javascript selectors for timer buttons +let reset = document.getElementById('Reset'); +let start = document.getElementById('Start'); +let pause = document.getElementById('pause'); +// let reset = $("reset"); +// let start = $("start"); +// let pause = $("pause"); +// function Timer(reset,start,pause) { +// this.reset = "reset"; +// this.start = "start"; +// this.pause = "pause"; +// } +//Click handlers for each timer button +$("#reset").click(function() { + alert( "#" ); +}); + +$( "#start" ).click(function() { + alert( "#" ); +}); + +$( "#pause" ).click(function() { + alert( "#" ); +}); + +//Instantiate 'seconds' and 'timerId' variables +let seconds = 0; +let timerId; + +//updateTime() function incrementing 'seconds' counter and inserts +//value into the

element with 'id="timer"' + + + +}