diff --git a/01 - JavaScript Drum Kit/index-jayhawk.html b/01 - JavaScript Drum Kit/index-jayhawk.html new file mode 100644 index 0000000000..0e503d30c9 --- /dev/null +++ b/01 - JavaScript Drum Kit/index-jayhawk.html @@ -0,0 +1,75 @@ + + + + + JS Drum Kit + + + +
+
+ A + clap +
+
+ S + hihat +
+
+ D + kick +
+
+ F + openhat +
+
+ G + boom +
+
+ H + ride +
+
+ J + snare +
+
+ K + tom +
+
+ L + tink +
+
+ + + + + + + + + + + + + + diff --git a/01 - JavaScript Drum Kit/index-jayhawk2.html b/01 - JavaScript Drum Kit/index-jayhawk2.html new file mode 100644 index 0000000000..c068077e28 --- /dev/null +++ b/01 - JavaScript Drum Kit/index-jayhawk2.html @@ -0,0 +1,75 @@ + + + + + JS Drum Kit + + + +
+
+ A + clap +
+
+ S + hihat +
+
+ D + kick +
+
+ F + openhat +
+
+ G + boom +
+
+ H + ride +
+
+ J + snare +
+
+ K + tom +
+
+ L + tink +
+
+ + + + + + + + + + + + + + diff --git a/01 - JavaScript Drum Kit/sounds/boom.wav b/01 - JavaScript Drum Kit/sounds/boom.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/clap.wav b/01 - JavaScript Drum Kit/sounds/clap.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/hihat.wav b/01 - JavaScript Drum Kit/sounds/hihat.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/kick.wav b/01 - JavaScript Drum Kit/sounds/kick.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/openhat.wav b/01 - JavaScript Drum Kit/sounds/openhat.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/ride.wav b/01 - JavaScript Drum Kit/sounds/ride.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/snare.wav b/01 - JavaScript Drum Kit/sounds/snare.wav old mode 100755 new mode 100644 diff --git a/01 - JavaScript Drum Kit/sounds/tom.wav b/01 - JavaScript Drum Kit/sounds/tom.wav old mode 100755 new mode 100644 diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index 7a6d27d5bd..2ac8c79425 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -1,12 +1,10 @@ - - - JS + CSS Clock - - - - + + + JS + CSS Clock + +
@@ -15,60 +13,54 @@
+ + .clock { + width: 30rem; + height: 30rem; + border: 20px solid white; + border-radius: 50%; + margin: 50px auto; + position: relative; + padding: 2rem; + box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), inset 0 0 0 3px #efefef, + inset 0 0 10px black, 0 0 10px rgba(0, 0, 0, 0.2); + } - - + + diff --git a/02 - JS and CSS Clock/index-jayhawk.html b/02 - JS and CSS Clock/index-jayhawk.html new file mode 100644 index 0000000000..fc9e41f5cb --- /dev/null +++ b/02 - JS and CSS Clock/index-jayhawk.html @@ -0,0 +1,89 @@ + + + + + JS + CSS Clock + + +
+
+
+
+
+
+
+ + + + + + diff --git a/03 - CSS Variables/.vscode/settings.json b/03 - CSS Variables/.vscode/settings.json new file mode 100644 index 0000000000..6f3a2913e1 --- /dev/null +++ b/03 - CSS Variables/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 6b9b539c09..4871f253a3 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -1,51 +1,64 @@ - - - Scoped CSS Variables and JS - - -

Update CSS Variables with JS

+ + + Scoped CSS Variables and JS + + +

Update CSS Variables with JS

-
- - +
+ + - - + + - - -
+ + +
- + - + .controls { + margin-bottom: 50px; + } - + input { + width: 100px; + } + - + + diff --git a/03 - CSS Variables/index-jayhawk.html b/03 - CSS Variables/index-jayhawk.html new file mode 100644 index 0000000000..111e592f2c --- /dev/null +++ b/03 - CSS Variables/index-jayhawk.html @@ -0,0 +1,91 @@ + + + + + Scoped CSS Variables and JS + + +

Update CSS Variables with JS

+ +
+ + + + + + + + +
+ + + + + + + + diff --git a/04 - Array Cardio Day 1/index-jayhawk.html b/04 - Array Cardio Day 1/index-jayhawk.html new file mode 100644 index 0000000000..b540dc6011 --- /dev/null +++ b/04 - Array Cardio Day 1/index-jayhawk.html @@ -0,0 +1,150 @@ + + + + + Array Cardio ๐Ÿ’ช + + +

Psst: have a look at the JavaScript Console ๐Ÿ’

+ + + diff --git a/05 - Flex Panel Gallery/index-jayhawk.html b/05 - Flex Panel Gallery/index-jayhawk.html new file mode 100644 index 0000000000..874d7ec2b7 --- /dev/null +++ b/05 - Flex Panel Gallery/index-jayhawk.html @@ -0,0 +1,157 @@ + + + + + Flex Panels ๐Ÿ’ช + + + + + +
+
+

Hey

+

Let's

+

Dance

+
+
+

Give

+

Take

+

Receive

+
+
+

Experience

+

It

+

Today

+
+
+

Give

+

All

+

You can

+
+
+

Life

+

In

+

Motion

+
+
+ + + + diff --git a/06 - Type Ahead/index-jayhawk.html b/06 - Type Ahead/index-jayhawk.html new file mode 100644 index 0000000000..f71835ed64 --- /dev/null +++ b/06 - Type Ahead/index-jayhawk.html @@ -0,0 +1,52 @@ + + + + + Type Ahead ๐Ÿ‘€ + + + +
+ + +
+ + + diff --git a/06 - Type Ahead/style.css b/06 - Type Ahead/style.css index 0c8c74e01b..e7a4921c75 100644 --- a/06 - Type Ahead/style.css +++ b/06 - Type Ahead/style.css @@ -1,15 +1,16 @@ html { box-sizing: border-box; background: #ffc600; - font-family: 'helvetica neue'; + font-family: "helvetica neue"; font-size: 20px; font-weight: 200; } -*, *:before, *:after { +*, +*:before, +*:after { box-sizing: inherit; } - input { width: 100%; padding: 20px; @@ -24,7 +25,7 @@ input.search { margin: 0; text-align: center; outline: 0; - border: 10px solid #F7F7F7; + border: 10px solid #f7f7f7; width: 120%; left: -10%; position: relative; @@ -45,7 +46,7 @@ input.search { .suggestions li { background: white; list-style: none; - border-bottom: 1px solid #D8D8D8; + border-bottom: 1px solid #d8d8d8; box-shadow: 0 0 10px rgba(0, 0, 0, 0.14); margin: 0; padding: 20px; @@ -57,12 +58,12 @@ input.search { .suggestions li:nth-child(even) { transform: perspective(100px) rotateX(3deg) translateY(2px) scale(1.001); - background: linear-gradient(to bottom, #ffffff 0%,#EFEFEF 100%); + background: linear-gradient(to bottom, #ffffff 0%, #efefef 100%); } .suggestions li:nth-child(odd) { transform: perspective(100px) rotateX(-3deg) translateY(3px); - background: linear-gradient(to top, #ffffff 0%,#EFEFEF 100%); + background: linear-gradient(to top, #ffffff 0%, #efefef 100%); } span.population { @@ -72,3 +73,6 @@ span.population { .hl { background: #ffc600; } +.name { + background: transparent; +} diff --git a/07 - Array Cardio Day 2/index-jayhawk.html b/07 - Array Cardio Day 2/index-jayhawk.html new file mode 100644 index 0000000000..4a7e7bea98 --- /dev/null +++ b/07 - Array Cardio Day 2/index-jayhawk.html @@ -0,0 +1,52 @@ + + + + + Array Cardio ๐Ÿ’ช๐Ÿ’ช + + +

Psst: have a look at the JavaScript Console ๐Ÿ’

+ + + diff --git a/08 - Fun with HTML5 Canvas/index-jayhawk.html b/08 - Fun with HTML5 Canvas/index-jayhawk.html new file mode 100644 index 0000000000..4d325e76fa --- /dev/null +++ b/08 - Fun with HTML5 Canvas/index-jayhawk.html @@ -0,0 +1,63 @@ + + + + + HTML5 Canvas + + + +<<<<<<< HEAD + +======= + +>>>>>>> f87f846dc6cde2c5437167806be030ee5844e17a + + + + diff --git a/10 - Hold Shift and Check Checkboxes/index-jayhawk.html b/10 - Hold Shift and Check Checkboxes/index-jayhawk.html new file mode 100644 index 0000000000..da2b41da0d --- /dev/null +++ b/10 - Hold Shift and Check Checkboxes/index-jayhawk.html @@ -0,0 +1,125 @@ + + + + + Hold Shift to Check Multiple Checkboxes + + + + +
+
+ +

This is an inbox layout.

+
+
+ +

Check one item

+
+
+ +

Hold down your Shift key

+
+
+ +

Check a lower item

+
+
+ +

Everything in between should also be set to checked

+
+
+ +

Try to do it without any libraries

+
+
+ +

Just regular JavaScript

+
+
+ +

Good Luck!

+
+
+ +

Don't forget to tweet your result!

+
+
+ + + + diff --git a/12 - Key Sequence Detection/index-START.html b/12 - Key Sequence Detection/index-START.html index dc53c4e9e1..0d478cf98e 100644 --- a/12 - Key Sequence Detection/index-START.html +++ b/12 - Key Sequence Detection/index-START.html @@ -1,12 +1,29 @@ - - - Key Detection - - - - - + + + Key Detection + + + + + diff --git a/19 - Webcam Fun/index.html b/19 - Webcam Fun/index.html old mode 100755 new mode 100644 diff --git a/19 - Webcam Fun/package.json b/19 - Webcam Fun/package.json old mode 100755 new mode 100644 diff --git a/19 - Webcam Fun/scripts-FINISHED.js b/19 - Webcam Fun/scripts-FINISHED.js old mode 100755 new mode 100644 diff --git a/19 - Webcam Fun/style.css b/19 - Webcam Fun/style.css old mode 100755 new mode 100644 diff --git a/20 - Speech Detection/package.json b/20 - Speech Detection/package.json old mode 100755 new mode 100644 diff --git a/21 - Geolocation/package.json b/21 - Geolocation/package.json old mode 100755 new mode 100644 diff --git a/notes.md b/notes.md new file mode 100644 index 0000000000..8697577197 --- /dev/null +++ b/notes.md @@ -0,0 +1,45 @@ +# These are some important notes related to each topic each day. + +## Day 1: + +- Get keys pressed in js using event keydown, keyup or keypress +- Get ascii code of pressed key with event.keyCode +- ES6 formatting + ``` + `div[data-key="${code}"]` + ``` +- Add css classes in javascript using .classList.add("classname") +- datasets can be used in js as `this.dataset.dataname` where dataname is declared in HTML as an attribute `data-dataname="anything"` + +## Day 2: + +- use window.setInterval(functioname, timeoutMS) to call a function after every given number of timeout. + +## Day 3: + +### CSS Variables + +- Declaring and using CSS variables + ``` + :root{ + --base: yellow; + --spacing: 10px; + --blur: 10px; + } + img { + padding: var(--spacing); + background: var(--base); + filter: blur(var(--blur)); + } + ``` +- Accessing CSS variables + ``` + document.documentElement.style.setProperty(--`${this.name}` , this.value) + ``` + +## Day 4: + +- filter() : returns array of object under some condition specified in function. +- map() : returns array from an object where you want a specific part of object like first name or last name. +- sort() : sorts the array . takes a compare function as an argument and in that function we pass first and second value of object and compare them on certain value and return 1 or -1. +- reduce() : it takes two params accumulator and reducer . Helpful in creating dictionary from array with key value pairs.