From b3c7e7cc2b9af16cc9e542c4e056c1166770baa7 Mon Sep 17 00:00:00 2001 From: iankhor Date: Fri, 9 Dec 2016 15:30:04 +1100 Subject: [PATCH 1/2] completed day 1 challenge --- 01 - JavaScript Drum Kit/index-START.html | 33 ++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..ba93500711 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -1,10 +1,12 @@ + JS Drum Kit + @@ -57,10 +59,35 @@ - + audio.currentTime = 0; + audio.play(); + key.classList.add('playing'); + + // console.log('key:', key); + // console.log('audio:', audio); + + }; + + function removeTransition(e) { + if (e.propertyName !== 'transform') return; + this.classList.remove('playing'); + // console.log('this : ', this); + }; + - + + \ No newline at end of file From 0f4b4509eab384d7c0caa3d10815c8bf2a8e03fb Mon Sep 17 00:00:00 2001 From: iankhor Date: Sat, 10 Dec 2016 12:20:24 +1100 Subject: [PATCH 2/2] completed day 2 challenge --- 02 - JS + CSS Clock/index-START.html | 100 ++++++++++++++++++--------- 1 file changed, 69 insertions(+), 31 deletions(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 259280d228..b7af2adb42 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -1,73 +1,111 @@ + Document + -
-
-
-
-
-
+
+
+
+
+
+
- + + \ No newline at end of file