diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..b3113e579e 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -1,10 +1,12 @@ + Codestin Search App + @@ -57,10 +59,28 @@ - + function playSample(key) { + let sample = document.querySelector(`audio[data-key="${key}"]`) + if (!sample) return; + sample.currentTime = 0; + sample.play(); + } + + function coolEffect(key) { + let selectedKey = document.querySelector(`div[data-key="${key}"]`); + if (!selectedKey) return; + selectedKey.classList.add("playing"); + setTimeout(() => selectedKey.classList.remove('playing'), 200) + } + - + + \ No newline at end of file diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index ee7eaefb1f..e3396f5afd 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -1,26 +1,28 @@ + Codestin Search App + -
-
-
-
-
-
+
+
+
+
+
+
- + + \ No newline at end of file diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 8a4f0d556e..bf86700e1a 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -1,9 +1,11 @@ + Codestin Search App +

Update CSS Variables with JS

@@ -21,11 +23,25 @@

Update CSS Variables with JS

- + + \ No newline at end of file diff --git a/04 - Array Cardio Day 1/index-START.html b/04 - Array Cardio Day 1/index-START.html index eec0ffc31d..6949af06d5 100644 --- a/04 - Array Cardio Day 1/index-START.html +++ b/04 - Array Cardio Day 1/index-START.html @@ -1,9 +1,11 @@ + Codestin Search App +

Psst: have a look at the JavaScript Console 💁

- + + \ No newline at end of file diff --git a/05 - Flex Panel Gallery/index-START.html b/05 - Flex Panel Gallery/index-START.html index 31c9167e16..110b5e158b 100644 --- a/05 - Flex Panel Gallery/index-START.html +++ b/05 - Flex Panel Gallery/index-START.html @@ -1,75 +1,122 @@ + Codestin Search App + @@ -102,10 +149,24 @@
- + + \ No newline at end of file diff --git a/06 - Type Ahead/index-START.html b/06 - Type Ahead/index-START.html index 1436886918..7d7b34d668 100644 --- a/06 - Type Ahead/index-START.html +++ b/06 - Type Ahead/index-START.html @@ -1,10 +1,12 @@ + Codestin Search App +
@@ -14,9 +16,47 @@
  • or a state
  • - + - - - + \ No newline at end of file diff --git a/07 - Array Cardio Day 2/index-START.html b/07 - Array Cardio Day 2/index-START.html index 969566ff78..5065185953 100644 --- a/07 - Array Cardio Day 2/index-START.html +++ b/07 - Array Cardio Day 2/index-START.html @@ -1,9 +1,11 @@ + Codestin Search App +

    Psst: have a look at the JavaScript Console 💁

    - + + \ No newline at end of file diff --git a/08 - Fun with HTML5 Canvas/index-START.html b/08 - Fun with HTML5 Canvas/index-START.html index 37c148df07..e121ada0cd 100644 --- a/08 - Fun with HTML5 Canvas/index-START.html +++ b/08 - Fun with HTML5 Canvas/index-START.html @@ -1,19 +1,69 @@ + Codestin Search App + - - + + + + - + + \ No newline at end of file diff --git a/09 - Dev Tools Domination/index-START.html b/09 - Dev Tools Domination/index-START.html index 196fffd719..c6d9c4c76d 100644 --- a/09 - Dev Tools Domination/index-START.html +++ b/09 - Dev Tools Domination/index-START.html @@ -1,9 +1,11 @@ + Codestin Search App +

    ×BREAK×DOWN×

    @@ -18,29 +20,56 @@ } // Regular + console.log('hello') // Interpolated + console.log('hello I am a %s string!', 'terrible') // Styled + //console.log('%c Cool text', 'font-size:50px;background:red;') // warning! + console.warn('oh dear'); // Error :| + console.error('uh oh'); // Info + console.info('some sort of fun fact') // Testing + console.assert(1 === 2, 'something failed') // clearing + console.clear(); // Viewing DOM Elements + console.log(document.querySelector('p')) + console.dir(document.querySelector('p')) // Grouping together + console.clear(); + dogs.forEach(dog => { + console.group(`${dog.name}`); + console.log('This is ' + dog.name); + console.log(`${dog.name} is ${dog.age} years old`); + console.groupEnd(`${dog.name}`); + }) // counting + console.count('Wes'); + console.count('Wes'); + console.count('Rob'); + console.count('Wes'); + console.count('Wes'); // timing + console.time('fetching data'); + setTimeout(() => console.timeEnd('fetching data') && console.log('long running'), 1000); + // table + console.table(dogs); - + + \ No newline at end of file diff --git a/10 - Hold Shift and Check Checkboxes/index-START.html b/10 - Hold Shift and Check Checkboxes/index-START.html index aeac48e7f9..18b49ab9a5 100644 --- a/10 - Hold Shift and Check Checkboxes/index-START.html +++ b/10 - Hold Shift and Check Checkboxes/index-START.html @@ -1,59 +1,58 @@ + Codestin Search App + -