From ba706ca82295faaebe0527e55b3393ca7e336243 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Sun, 11 Dec 2016 19:01:42 -0800 Subject: [PATCH 01/36] adding placements for finished pages --- readme.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 6c4ee28eea..349f3b8964 100644 --- a/readme.md +++ b/readme.md @@ -2,14 +2,10 @@ # JavaScript30 -Starter Files + Completed solutions for the JavaScript 30 Day Challenge. +This is forked from the eponomous 30-day coding challenge. Grab the course at [https://JavaScript30.com](https://JavaScript30.com) -## Pull Requests +## Finished Pages -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. - -The starter files + solutions will be updated if/when the videos are updated. - -Thanks! +* [JS Drum Kit](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/01%20-%20JavaScript%20Drum%20Kit/index-START.html) From e83a6b6ba3e8e635e9d36b828f1e90a8aa13f02a Mon Sep 17 00:00:00 2001 From: John Stilley Date: Sun, 11 Dec 2016 19:02:44 -0800 Subject: [PATCH 02/36] adding a list of finished pages --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 349f3b8964..80ff87249e 100644 --- a/readme.md +++ b/readme.md @@ -8,4 +8,6 @@ Grab the course at [https://JavaScript30.com](https://JavaScript30.com) ## Finished Pages -* [JS Drum Kit](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/01%20-%20JavaScript%20Drum%20Kit/index-START.html) +What follows are finished pages from the coding challenge. + +1. [JS Drum Kit](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/01%20-%20JavaScript%20Drum%20Kit/index-START.html) From 28462db30ed9035cb4a8bcfa3a6fddf2b55d40fc Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sun, 11 Dec 2016 22:27:10 -0800 Subject: [PATCH 03/36] finished num1 - as intended --- 01 - JavaScript Drum Kit/index-START.html | 25 +++++++++++++++++++++++ 01 - JavaScript Drum Kit/style.css | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..0d2c457fef 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,6 +59,31 @@ diff --git a/01 - JavaScript Drum Kit/style.css b/01 - JavaScript Drum Kit/style.css index 3e0a320b37..4c51018c84 100644 --- a/01 - JavaScript Drum Kit/style.css +++ b/01 - JavaScript Drum Kit/style.css @@ -34,7 +34,7 @@ body,html { .playing { transform:scale(1.1); border-color:#ffc600; - box-shadow: 0 0 10px #ffc600; + box-shadow: 0 0 25px #ffc600; } kbd { From effa951bd062e8c37754848c077f560ae8bfd940 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Sun, 11 Dec 2016 22:29:33 -0800 Subject: [PATCH 04/36] cleanup --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 80ff87249e..a416f0ef5c 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -![](https://javascript30.com/images/JS3-social-share.png) +![JavaScript 30 logo](https://javascript30.com/images/JS3-social-share.png) # JavaScript30 @@ -10,4 +10,4 @@ Grab the course at [https://JavaScript30.com](https://JavaScript30.com) What follows are finished pages from the coding challenge. -1. [JS Drum Kit](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/01%20-%20JavaScript%20Drum%20Kit/index-START.html) +1. [Drum Kit](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/01%20-%20JavaScript%20Drum%20Kit/index-START.html) From 3a3755382570b286e337dee748448a6f5660a06f Mon Sep 17 00:00:00 2001 From: John Stilley Date: Sun, 11 Dec 2016 22:30:23 -0800 Subject: [PATCH 05/36] spelling error --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a416f0ef5c..f527ef7abe 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ # JavaScript30 -This is forked from the eponomous 30-day coding challenge. +This is forked from the eponymous 30-day coding challenge. Grab the course at [https://JavaScript30.com](https://JavaScript30.com) From 216401125f023ec21e095256af08ea8cde4160b5 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Mon, 12 Dec 2016 13:08:59 -0800 Subject: [PATCH 06/36] rotating hand to 12 oclock --- 02 - JS + CSS Clock/index-START.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 2712384201..8104ae3cea 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -61,6 +61,12 @@ background:black; position: absolute; top:50%; + -ms-transform: rotate(90deg); /* IE 9 */ + -ms-transform-origin: 100%; /* IE 9 */ + -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ + -webkit-transform-origin: 100%; /* Chrome, Safari, Opera */ + transform: rotate(90deg); + transform-origin: 100%; } From 382df0361dd9bd5207dc23e14b81c5a0a8e58ec5 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Mon, 12 Dec 2016 22:17:59 -0800 Subject: [PATCH 07/36] finished second project --- 02 - JS + CSS Clock/index-START.html | 60 ++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 8104ae3cea..2c22684826 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -9,9 +9,12 @@
-
-
-
+
+
+
+
+
+
@@ -67,12 +70,63 @@ -webkit-transform-origin: 100%; /* Chrome, Safari, Opera */ transform: rotate(90deg); transform-origin: 100%; + -webkit-transition-timing-function: cubic-bezier(.46,.53,.88,1.26); + transition-timing-function: cubic-bezier(.46,.53,.88,1.26); + -webkit-transition-duration: 0.1s; /* Safari */ + transition-duration: 0.1s; + } + .hour-hand-total { + height: 8px; + border: 0; + background:0; + } + .hour-hand-left { + height: 0px; + width: 25%; + float: left; + border: 0; + background:0; + } + .hour-hand-right { + height: 8px; + width: 75%; + float: right; + background:black; + } + .second-hand { + height: 4px; } From 5f66cbbfff183d7ec159e906983187bbe817da11 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Mon, 12 Dec 2016 23:16:54 -0800 Subject: [PATCH 08/36] finished day 3 --- 03 - CSS Variables/index-START.html | 30 +++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 7171607a8b..a14a9e49a9 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -15,13 +15,29 @@

Update CSS Variables with JS

- + From c9ca7f9f30ef78b6c90481a278a25016e636aa40 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Mon, 12 Dec 2016 23:20:06 -0800 Subject: [PATCH 09/36] adding finished days --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index f527ef7abe..9ff643d24e 100644 --- a/readme.md +++ b/readme.md @@ -11,3 +11,5 @@ Grab the course at [https://JavaScript30.com](https://JavaScript30.com) What follows are finished pages from the coding challenge. 1. [Drum Kit](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/01%20-%20JavaScript%20Drum%20Kit/index-START.html) +2. [Clock](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/02%20-%20JS%20%2B%20CSS%20Clock/index-START.html) +3. [CSS Variables](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/03%20-%20CSS%20Variables/index-START.html) From 685e67ded8fe4598160c5ad8fc193ff82a4cb089 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Tue, 13 Dec 2016 13:52:49 -0800 Subject: [PATCH 10/36] adding game idea --- 01 - JavaScript Drum Kit/index-START.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 0d2c457fef..d15774c399 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,6 +59,8 @@ From ad7806e7b51aa565736a8f48d0cef4460ad385c1 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 17 Dec 2016 11:07:54 -0800 Subject: [PATCH 12/36] need to learn more about flex boxes --- 05 - Flex Panel Gallery/index-START.html | 63 ++++++++++++++++++------ 1 file changed, 48 insertions(+), 15 deletions(-) diff --git a/05 - Flex Panel Gallery/index-START.html b/05 - Flex Panel Gallery/index-START.html index e1d643ad5c..5659a88641 100644 --- a/05 - Flex Panel Gallery/index-START.html +++ b/05 - Flex Panel Gallery/index-START.html @@ -24,6 +24,7 @@ .panels { min-height:100vh; overflow: hidden; + display: flex; } .panel { @@ -41,6 +42,11 @@ font-size: 20px; background-size:cover; background-position:center; + flex:1; + justify-content: center; + align-items: center; + display: flex; + flex-direction: column; } @@ -54,8 +60,17 @@ margin:0; width: 100%; transition:transform 0.5s; + flex:1 0 auto; + display:flex; + justify-content:center; + align-items:center; } + .panel > *:first-child {transform:translateY(-100%);} + .panel.open-active > *:first-child {transform:translateY(0);} + .panel > *:last-child {transform:translateY(100%);} + .panel.open-active > *:last-child {transform:translateY(0);} + .panel p { text-transform: uppercase; font-family: 'Amatic SC', cursive; @@ -68,6 +83,7 @@ .panel.open { font-size:40px; + flex: 5; } .cta { @@ -80,34 +96,51 @@
-

Hey

-

Let's

-

Dance

+

Also

+

Think

+

About Others

-

Give

-

Take

-

Receive

+

Work

+

Hard

+

Most Days

-

Experience

-

It

-

Today

+

Think

+

About

+

The World

-

Give

-

All

-

You can

+

It's

+

Your

+

Future

-

Life

-

In

-

Motion

+

The

+

Future

+

Is Change

From 5e8c57cdebc372e223bbd5fbec9fabffe4c397cf Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 17 Dec 2016 13:27:03 -0800 Subject: [PATCH 13/36] finished city drop down bit --- 06 - Type Ahead/index-START.html | 66 ++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 3 deletions(-) diff --git a/06 - Type Ahead/index-START.html b/06 - Type Ahead/index-START.html index 1436886918..cbd3a5c78b 100644 --- a/06 - Type Ahead/index-START.html +++ b/06 - Type Ahead/index-START.html @@ -10,12 +10,72 @@
    -
  • Filter for a city
  • -
  • or a state
  • +
  • Filter by city
  • +
  • or state
From a465ea0e1bc63d34bb98a27abb31055b5f360981 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sun, 18 Dec 2016 09:19:20 -0800 Subject: [PATCH 14/36] playing with arrays --- 07 - Array Cardio Day 2/index-START.html | 25 ++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/07 - Array Cardio Day 2/index-START.html b/07 - Array Cardio Day 2/index-START.html index b80ab6b650..3fdde2a8b5 100644 --- a/07 - Array Cardio Day 2/index-START.html +++ b/07 - Array Cardio Day 2/index-START.html @@ -23,17 +23,38 @@ { text: 'Nice Nice Nice!', id: 542328 } ]; + var thisYear = (new Date()).getFullYear(); + // Some and Every Checks - // Array.prototype.some() // is at least one person 19? - // Array.prototype.every() // is everyone 19? + // Array.prototype.some() // is at least one person 18? + var supervision = people.some(function(person){ + return (thisYear - person.year) > 17; + }); + console.log('At least one adult? ' + supervision.toString()); + + // Array.prototype.every() // is everyone 18? + var adultParty = people.every(function(person){ + return (thisYear - person.year) > 17; + }); + console.log('All adults? ' + adultParty.toString()); // Array.prototype.find() // Find is like filter, but instead returns just the one you are looking for // find the comment with the ID of 823423 + var isSuperGood = comments.find(function(comment){ + return comment.id === 823423; + }); + console.table(isSuperGood); // Array.prototype.findIndex() // Find the comment with this ID // delete the comment with the ID of 823423 + var superIndex = comments.find(function(comment){ + return comment.id === 823423; + }); + console.log('We want to remove index: ' + superIndex.toString()); + comments.splice(superIndex, 1); + console.table(comments); From 3d8481f30e38c92f9ba4fa7d1a173bf01c5a4e6d Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sun, 18 Dec 2016 10:22:07 -0800 Subject: [PATCH 15/36] very simple paint brush --- 08 - Fun with HTML5 Canvas/index-START.html | 59 +++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/08 - Fun with HTML5 Canvas/index-START.html b/08 - Fun with HTML5 Canvas/index-START.html index 37c148df07..f0a19bdc10 100644 --- a/08 - Fun with HTML5 Canvas/index-START.html +++ b/08 - Fun with HTML5 Canvas/index-START.html @@ -7,6 +7,65 @@ From 4812997b26903e5bf02a5fba65a6bc8689ce04a1 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 24 Dec 2016 07:36:12 -0800 Subject: [PATCH 27/36] calc total time --- 17 - Sort Without Articles/index-START.html | 23 ++++++++++++- .../index-START.html | 34 ++++++++++++++++++- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/17 - Sort Without Articles/index-START.html b/17 - Sort Without Articles/index-START.html index cfaf3e0440..5bfffb5ccd 100644 --- a/17 - Sort Without Articles/index-START.html +++ b/17 - Sort Without Articles/index-START.html @@ -43,8 +43,29 @@
    diff --git a/18 - Adding Up Times with Reduce/index-START.html b/18 - Adding Up Times with Reduce/index-START.html index 3eaee0f3ef..5beea42c38 100644 --- a/18 - Adding Up Times with Reduce/index-START.html +++ b/18 - Adding Up Times with Reduce/index-START.html @@ -5,6 +5,7 @@ Codestin Search App +

    Total Time:

    • Video 1 @@ -177,11 +178,42 @@
    • Video 57
    • -
    • +
    • Video 58
    • +
    From 8640227c9c63dc9421180122d4351b2c6d9901fd Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 24 Dec 2016 14:37:28 -0800 Subject: [PATCH 28/36] highlighting games --- 15 - LocalStorage/style.css | 2 ++ .../index-START.html | 17 ++++++++++++++++- 22 - Follow Along Link Highlighter/style.css | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/15 - LocalStorage/style.css b/15 - LocalStorage/style.css index ea5bab179c..e95fb87dfc 100644 --- a/15 - LocalStorage/style.css +++ b/15 - LocalStorage/style.css @@ -65,6 +65,7 @@ .plates input:checked + label:before { content: '๐ŸŒฎ'; + /*content: "X";*/ } .add-items { @@ -73,6 +74,7 @@ .add-items input { padding:10px; + margin:1px; outline:0; border:1px solid rgba(0,0,0,0.1); } diff --git a/22 - Follow Along Link Highlighter/index-START.html b/22 - Follow Along Link Highlighter/index-START.html index 8476112b5e..88eb10b06d 100644 --- a/22 - Follow Along Link Highlighter/index-START.html +++ b/22 - Follow Along Link Highlighter/index-START.html @@ -26,7 +26,22 @@ diff --git a/22 - Follow Along Link Highlighter/style.css b/22 - Follow Along Link Highlighter/style.css index 222e27ae68..dbf96e3f1d 100644 --- a/22 - Follow Along Link Highlighter/style.css +++ b/22 - Follow Along Link Highlighter/style.css @@ -38,7 +38,7 @@ a { background:white; left:0; z-index: -1; - border-radius:20px; + border-radius:10px; display: block; box-shadow: 0 0 10px rgba(0,0,0,0.2) } From 34d538aa6cd3b2501c5b826c382b615f5af994a8 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 24 Dec 2016 15:13:22 -0800 Subject: [PATCH 29/36] smart nav bar --- 24 - Sticky Nav/index-START.html | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/24 - Sticky Nav/index-START.html b/24 - Sticky Nav/index-START.html index 4982537eea..f30de9c76c 100644 --- a/24 - Sticky Nav/index-START.html +++ b/24 - Sticky Nav/index-START.html @@ -54,20 +54,23 @@

    A story about getting lost.

    From 895eba5b8b65cc34b7e70e0d73f925497b15ad02 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 24 Dec 2016 15:13:48 -0800 Subject: [PATCH 30/36] smart nav bar --- 24 - Sticky Nav/index-START.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/24 - Sticky Nav/index-START.html b/24 - Sticky Nav/index-START.html index f30de9c76c..54be3aba73 100644 --- a/24 - Sticky Nav/index-START.html +++ b/24 - Sticky Nav/index-START.html @@ -60,11 +60,11 @@

    A story about getting lost.

    var handleNavBar = function() { if (window.scrollY > headerHeight) { - //document.body.style.paddingTop = nav.offsetHeight + 'px'; + document.body.style.paddingTop = nav.offsetHeight + 'px'; document.body.classList.add('fixed-nav'); } else { document.body.classList.remove('fixed-nav'); - //document.body.style.paddingTop = 0; + document.body.style.paddingTop = 0; } }; From d5bcb0ff863eab291f9732a5de6d5023f359bdf5 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sat, 24 Dec 2016 15:53:40 -0800 Subject: [PATCH 31/36] only so many fart jokes --- .../index-START.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/25 - Event Capture, Propagation, Bubbling and Once/index-START.html b/25 - Event Capture, Propagation, Bubbling and Once/index-START.html index 98f5e070c4..5200223173 100644 --- a/25 - Event Capture, Propagation, Bubbling and Once/index-START.html +++ b/25 - Event Capture, Propagation, Bubbling and Once/index-START.html @@ -37,9 +37,25 @@ } - + From 3ea6bbb6347fbe93136e6514051097d68b5b6af9 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Sun, 1 Jan 2017 17:25:58 -0800 Subject: [PATCH 32/36] click-and-drag working --- 27 - Click and Drag/index-START.html | 28 ++++++++++++++++++++++++++++ 27 - Click and Drag/style.css | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/27 - Click and Drag/index-START.html b/27 - Click and Drag/index-START.html index b8609315f7..708f42d252 100644 --- a/27 - Click and Drag/index-START.html +++ b/27 - Click and Drag/index-START.html @@ -35,6 +35,34 @@ diff --git a/27 - Click and Drag/style.css b/27 - Click and Drag/style.css index 209b32cae5..f25d7ff690 100644 --- a/27 - Click and Drag/style.css +++ b/27 - Click and Drag/style.css @@ -19,7 +19,7 @@ body { } .items { - height:800px; + height:400px; padding: 100px; width:100%; border:1px solid white; From 0515ccfabb29758f9d05077ca0ca56850a495616 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Mon, 2 Jan 2017 11:08:04 -0800 Subject: [PATCH 33/36] count down timer working --- 29 - Countown Timer/index.html | 10 ++--- 29 - Countown Timer/scripts-START.js | 62 ++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 5 deletions(-) diff --git a/29 - Countown Timer/index.html b/29 - Countown Timer/index.html index d54f447dd9..742cbe177b 100644 --- a/29 - Countown Timer/index.html +++ b/29 - Countown Timer/index.html @@ -9,11 +9,11 @@
    - - - - - + + + + +
    diff --git a/29 - Countown Timer/scripts-START.js b/29 - Countown Timer/scripts-START.js index e69de29bb2..a9022bc91b 100644 --- a/29 - Countown Timer/scripts-START.js +++ b/29 - Countown Timer/scripts-START.js @@ -0,0 +1,62 @@ + + +var Timer = (function() { + var mainTimer = document.getElementsByClassName("display__time-left")[0]; + var timeForm = document.customForm.minutes; + var countDown; + var startTime; + var endTime; + + var timer = function() { + var secondsLeft = Math.round((endTime - Date.now()) / 1000); + if (secondsLeft < 0) { + clearInterval(countDown); + return; + } + displayTimeLeft(secondsLeft); + }; + + var displayTimeLeft = function(seconds) { + var hr = Math.floor(seconds / 3600); + var min = Math.floor(seconds / 60); + var sec = seconds % 60; + if (hr > 0) { + min = min > 9 ? min.toString() : '0' + min; + } + sec = sec > 9 ? sec.toString() : '0' + sec; + var timeString = hr > 0 ? hr + ':' + min + ':' + sec : min + ':' + sec; + mainTimer.textContent = timeString; + document.title = timeString; + }; + + return { + startTimer: function(seconds) { + clearInterval(countDown); + startTime = Date.now(); + endTime = startTime + seconds * 1000; + displayTimeLeft(seconds); + countDown = setInterval(timer, 1000); + }, + attachHandlers: function() { + // handle pre-set buttons + var buttons = document.getElementsByClassName('timer__button'); + for (var i=0; i < buttons.length; i += 1){ + buttons[i].addEventListener('click', function() { + Timer.startTimer(this.dataset['time']); + }); + } + + // handle user-entry box + document.customForm.addEventListener('submit', function(e){ + e.preventDefault(); + var runTime = Math.round(this.minutes.value * 60); + if (!isNaN(runTime)) { + Timer.startTimer(runTime); + } + this.reset(); + }); + } + }; +}()); + +Timer.attachHandlers(); From eb2e54227f8811c320c7dcd8638120f863874689 Mon Sep 17 00:00:00 2001 From: theJollySin Date: Mon, 2 Jan 2017 13:30:07 -0800 Subject: [PATCH 34/36] finished the class! --- 30 - Whack A Mole/index-START.html | 91 ++++++++++++++++++++++++++---- 30 - Whack A Mole/style.css | 11 ++++ readme.md | 27 ++++----- 3 files changed, 103 insertions(+), 26 deletions(-) diff --git a/30 - Whack A Mole/index-START.html b/30 - Whack A Mole/index-START.html index 2014ff458c..1d02e87052 100644 --- a/30 - Whack A Mole/index-START.html +++ b/30 - Whack A Mole/index-START.html @@ -9,33 +9,104 @@

    Whack-a-mole! 0

    - +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    -
    +
    diff --git a/30 - Whack A Mole/style.css b/30 - Whack A Mole/style.css index 8fec3f5d8e..d04bb1ef03 100644 --- a/30 - Whack A Mole/style.css +++ b/30 - Whack A Mole/style.css @@ -21,6 +21,17 @@ h1 { margin-bottom: 0; } +button { + display:flex; + flex-wrap:wrap; + margin:0 auto; + text-align: center; + font-size: 2rem; + background:rgba(255,255,255,0.2); + border-radius: 5px; + margin-top: 1em; +} + .score { background:rgba(255,255,255,0.2); padding:0 3rem; diff --git a/readme.md b/readme.md index f9e586cca0..1e8a768ff0 100644 --- a/readme.md +++ b/readme.md @@ -20,23 +20,18 @@ What follows are finished pages from the coding challenge. 8. [HTML Canvas](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/08%20-%20Fun%20with%20HTML5%20Canvas/index-START.html) 9. [Console Fun](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/09%20-%20Dev%20Tools%20Domination/index-START.html) 10. [Checkbox Shifting](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/10%20-%20Hold%20Shift%20and%20Check%20Checkboxes/index-START.html) -11. MP4 Video Player 12. [The Konami Code](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/12%20-%20Key%20Sequence%20Detection/index-START.html) 13. [Slide in on Scroll](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/13%20-%20Slide%20in%20on%20Scroll/index-START.html) -14. JavaScript References VS Copying -15. LocalStorage -16. Mouse Move Shadow -17. Sort Without Articles -18. Adding Up Times with Reduce -19. Webcam Fun -20. Speech Detection -21. Geolocation -22. Follow Along Link Highlighter +14. [JavaScript References VS Copying](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/14 - JavaScript References VS Copying/index-START.html) +15. [LocalStorage](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/15 - LocalStorage/index-START.html) +16. [Mouse Move Shadow](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/16 - Mouse Move Shadow/index-start.html) +17. [Sort Without Articles](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/17 - Sort Without Articles/index-START.html) +18. [Adding Up Times with Reduce](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/18 - Adding Up Times with Reduce/index-START.html) +22. [Follow Along Link Highlighter](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/22 - Follow Along Link Highlighter/index-START.html) 23. Speech Synthesis -24. Sticky Nav -25. Event Capture, Propagation, Bubbling and Once -26. Stripe Follow Along Nav -27. Click and Drag +24. [Sticky Nav](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/24 - Sticky Nav/index-START.html) +25. [Event Capture, Propagation, Bubbling and Once](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/25 - Event Capture%2C Propagation%2C Bubbling and Once/index-START.html) +27. [Click and Drag](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/27 - Click and Drag/index-START.html) 28. Video Speed Controller -29. Countown Timer -30. Whack A Mole +29. [Countown Timer](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/29 - Countown Timer/index.html) +30. [Whack A Mole](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/30 - Whack A Mole/index-START.html) From 3d60a9a04021cf0479ac268e9716b542dc1666a7 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Wed, 4 Jan 2017 08:04:21 -0800 Subject: [PATCH 35/36] removing unused projects --- readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/readme.md b/readme.md index 1e8a768ff0..537e119123 100644 --- a/readme.md +++ b/readme.md @@ -28,10 +28,8 @@ What follows are finished pages from the coding challenge. 17. [Sort Without Articles](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/17 - Sort Without Articles/index-START.html) 18. [Adding Up Times with Reduce](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/18 - Adding Up Times with Reduce/index-START.html) 22. [Follow Along Link Highlighter](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/22 - Follow Along Link Highlighter/index-START.html) -23. Speech Synthesis 24. [Sticky Nav](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/24 - Sticky Nav/index-START.html) 25. [Event Capture, Propagation, Bubbling and Once](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/25 - Event Capture%2C Propagation%2C Bubbling and Once/index-START.html) 27. [Click and Drag](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/27 - Click and Drag/index-START.html) -28. Video Speed Controller 29. [Countown Timer](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/29 - Countown Timer/index.html) 30. [Whack A Mole](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/30 - Whack A Mole/index-START.html) From 1a02b3ea45f39e62d72c89e2f611b2b7cac83186 Mon Sep 17 00:00:00 2001 From: John Stilley Date: Thu, 23 Mar 2017 14:58:17 -0700 Subject: [PATCH 36/36] fixing link formatting --- readme.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/readme.md b/readme.md index 537e119123..b33b65741e 100644 --- a/readme.md +++ b/readme.md @@ -22,14 +22,14 @@ What follows are finished pages from the coding challenge. 10. [Checkbox Shifting](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/10%20-%20Hold%20Shift%20and%20Check%20Checkboxes/index-START.html) 12. [The Konami Code](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/12%20-%20Key%20Sequence%20Detection/index-START.html) 13. [Slide in on Scroll](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/13%20-%20Slide%20in%20on%20Scroll/index-START.html) -14. [JavaScript References VS Copying](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/14 - JavaScript References VS Copying/index-START.html) -15. [LocalStorage](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/15 - LocalStorage/index-START.html) -16. [Mouse Move Shadow](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/16 - Mouse Move Shadow/index-start.html) -17. [Sort Without Articles](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/17 - Sort Without Articles/index-START.html) -18. [Adding Up Times with Reduce](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/18 - Adding Up Times with Reduce/index-START.html) -22. [Follow Along Link Highlighter](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/22 - Follow Along Link Highlighter/index-START.html) -24. [Sticky Nav](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/24 - Sticky Nav/index-START.html) -25. [Event Capture, Propagation, Bubbling and Once](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/25 - Event Capture%2C Propagation%2C Bubbling and Once/index-START.html) -27. [Click and Drag](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/27 - Click and Drag/index-START.html) -29. [Countown Timer](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/29 - Countown Timer/index.html) -30. [Whack A Mole](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/30 - Whack A Mole/index-START.html) +14. [JavaScript References VS Copying](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/14%20-%20JavaScript%20References%20VS%20Copying/index-START.html) +15. [LocalStorage](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/15%20-%20LocalStorage/index-START.html) +16. [Mouse Move Shadow](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/16%20-%20Mouse%20Move%20Shadow/index-start.html) +17. [Sort Without Articles](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/17%20-%20Sort%20Without%20Articles/index-START.html) +18. [Adding Up Times with Reduce](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/18%20-%20Adding%20Up%20Times%20with%20Reduce/index-START.html) +22. [Follow Along Link Highlighter](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/22%20-%20Follow%20Along%20Link%20Highlighter/index-START.html) +24. [Sticky Nav](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/24%20-%20Sticky%20Nav/index-START.html) +25. [Event Capture, Propagation, Bubbling and Once](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/25%20-%20Event%20Capture%2C%20Propagation%2C%20Bubbling%20and%20Once/index-START.html) +27. [Click and Drag](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/27%20-%20Click%20and%20Drag/index-START.html) +29. [Countown Timer](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/29%20-%20Countown%20Timer/index.html) +30. [Whack A Mole](http://htmlpreview.github.io/?https://github.com/theJollySin/JavaScript30/blob/master/30%20-%20Whack%20A%20Mole/index-START.html)