From a8fa888a1698eefb64d6c1cd229ccfed015d77f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20de=20Le=C3=A3o?= Date: Fri, 9 Dec 2016 11:52:16 +0800 Subject: [PATCH 1/4] day 1 --- 01 - JavaScript Drum Kit/index-START.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..cf5089ddf9 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,6 +59,28 @@ From e1355a415818b520fdd2dc64d47f4022f79cbf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20de=20Le=C3=A3o?= Date: Mon, 12 Dec 2016 20:32:22 +0800 Subject: [PATCH 2/4] tha clock --- 02 - JS + CSS Clock/index-START.html | 62 +++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 259280d228..2ae7a079bc 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -18,7 +18,7 @@ From 8eaeaef67207b6b49d08b990c64de2615c17103a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20de=20Le=C3=A3o?= Date: Mon, 12 Dec 2016 23:39:49 +0800 Subject: [PATCH 3/4] comment --- 02 - JS + CSS Clock/index-START.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 2ae7a079bc..81362379d3 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -114,7 +114,7 @@ const hours = now.getHours(); const mins = now.getMinutes(); - //90 because we offset + //90 because we offset it by 90degs initially const secondsDegrees = ((seconds / 60) * 360) + 90; const hoursDegrees = ((hours / 12) * 360 ) + 90; const minsDegrees = ((mins / 60 ) * 360) + 90 ; From 2e8b3b81fbfc4092d4310787f61b49d2c6405d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20de=20Le=C3=A3o?= Date: Tue, 13 Dec 2016 00:05:09 +0800 Subject: [PATCH 4/4] oh boy that .dataset was cool --- 03 - CSS Variables/index-START.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index bf0f33e3ba..f8244d6b7f 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -25,7 +25,22 @@

Update CSS Variables with JS

/* misc styles, nothing to do with CSS variables */ + :root{ + --base: #ffc600; + --spacing: 10px; + --blur: 10px + } + + img { + background: var(--base); + padding: var(--spacing); + filter: blur(var(--blur)); + } + + .hl { + color: var(--base); + } body { text-align: center; } @@ -53,6 +68,19 @@

Update CSS Variables with JS