From 80acca5d9907c932d605c4bd21df4eebbe36b3a9 Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Fri, 9 Dec 2016 13:24:46 -0800 Subject: [PATCH 01/21] modify readme --- readme.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 829f4d07f5..4b4cde2b53 100644 --- a/readme.md +++ b/readme.md @@ -2,14 +2,12 @@ # JavaScript30 -Starter Files + Completed solutions for the JavaScript 30 Day Challenge. +Starter Files + Completed solutions for the JavaScript 30 Day Challenge. Grab the course at [https://JavaScript30.com](https://JavaScript30.com) ## Pull Requests -These are meant to be 1:1 copies of what is done in the video. If you found a better / different way to do things, great, but I will be keeping them the same as the videos. +For the sake of convenience, I created 30 branches ordered and named by the each challenge. Please submit a pull request for a challenge to the relevant branch! -The starter files + solutions will be updated if/when the videos are updated. - -Thank! +Happy hacking! From 45c4c03d06bacbb2f7a7494b04dfd810f9b18a2e Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Sun, 11 Dec 2016 10:40:19 -0800 Subject: [PATCH 02/21] finish js drumkit challenge --- 01 - JavaScript Drum Kit/index-START.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..6a2360ec23 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,6 +59,25 @@ From 37d38c161c80c47c580fb701d8a676973322c4ca Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Mon, 12 Dec 2016 22:25:41 -0800 Subject: [PATCH 03/21] add transform, transform-origin, transition animation and transition timing function to hands div --- 02 - JS + CSS Clock/index-START.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 2712384201..e91d03da2f 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -52,7 +52,7 @@ position: relative; width: 100%; height: 100%; - transform: translateY(-3px); /* account for the height of the clock hands */ + transform: translateY(-5px); /* account for the height of the clock hands */ } .hand { @@ -61,6 +61,10 @@ background:black; position: absolute; top:50%; + transform: rotate(90deg); + transform-origin: 100%; + transition: all 0.5s; + transition-timing-function: cubic-bezier(0, 1.58, 0.58, 1); } From 70a2267c8646a7364dcbc969bbc8633bf5f8c052 Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Mon, 12 Dec 2016 22:57:36 -0800 Subject: [PATCH 04/21] add minute and hour hand functionality --- 02 - JS + CSS Clock/index-START.html | 31 +++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index e91d03da2f..e0bf724e49 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -9,9 +9,9 @@
-
-
-
+
hour
+
minute
+
second
@@ -70,7 +70,32 @@ From 3d0d171b89042096a8252598aa5d128d63f248e7 Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Mon, 12 Dec 2016 23:04:49 -0800 Subject: [PATCH 05/21] fix hour hand functionality --- 02 - JS + CSS Clock/index-START.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index e0bf724e49..3221d67628 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -86,9 +86,7 @@ minuteHand.style.transform = `rotate(${minutesDegrees}deg)` const hours = now.getHours() - console.log(hours) - console.log(minutes) - const hourDegrees = (( minutes / 12 ) * 360) + 90; + const hourDegrees = (( hours / 12 ) * 360) + 90; hourHand.style.transform = `rotate(${hourDegrees}deg)` } From 0343f8b910e818635743c914038b3c7ee2d0d07b Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Tue, 13 Dec 2016 10:47:51 -0800 Subject: [PATCH 06/21] finish css variables challenge --- 03 - CSS Variables/index-START.html | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index bf0f33e3ba..82dcb19763 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -9,7 +9,7 @@

Update CSS Variables with JS

- + @@ -21,7 +21,21 @@

Update CSS Variables with JS

From ca0278f52c357259538aa4f1e940ed768ca9a030 Mon Sep 17 00:00:00 2001 From: Sean Lee Date: Wed, 14 Dec 2016 13:57:00 -0800 Subject: [PATCH 07/21] finish array cardio day 1 --- 03 - CSS Variables/index-START.html | 2 +- 04 - Array Cardio Day 1/index-START.html | 56 +++++++++++++++++++++++- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 82dcb19763..e3bb960ff7 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -22,7 +22,7 @@

Update CSS Variables with JS