diff --git a/01 - JavaScript Drum Kit/.vscode/database.json b/01 - JavaScript Drum Kit/.vscode/database.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/01 - JavaScript Drum Kit/.vscode/database.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..33ea3b984a 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -58,7 +58,21 @@ diff --git a/01 - JavaScript Drum Kit/style.css b/01 - JavaScript Drum Kit/style.css index 075578c930..c4bfbbbee9 100644 --- a/01 - JavaScript Drum Kit/style.css +++ b/01 - JavaScript Drum Kit/style.css @@ -32,7 +32,7 @@ body,html { } .playing { - transform: scale(1.1); + transform: scale(1.6); border-color: #ffc600; box-shadow: 0 0 1rem #ffc600; } diff --git a/02 - JS and CSS Clock/.vscode/database.json b/02 - JS and CSS Clock/.vscode/database.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/02 - JS and CSS Clock/.vscode/database.json @@ -0,0 +1 @@ +{} \ 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..2fac0b7187 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -11,7 +11,7 @@
-
+
@@ -62,13 +62,37 @@ background:black; position: absolute; top:50%; + transform-origin: 100%; + transform: rotate(90deg); + transition: all 0.5s; + transition-timing-function: cubic-bezier(0.0, 0, 0.58, 1); } diff --git a/03 - CSS Variables/.vscode/database.json b/03 - CSS Variables/.vscode/database.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/03 - CSS Variables/.vscode/database.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index 8a4f0d556e..9293b76d81 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -21,7 +21,21 @@

Update CSS Variables with JS

diff --git a/04 - Array Cardio Day 1/.vscode/database.json b/04 - Array Cardio Day 1/.vscode/database.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/04 - Array Cardio Day 1/.vscode/database.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/04 - Array Cardio Day 1/.vscode/last.sql b/04 - Array Cardio Day 1/.vscode/last.sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/04 - Array Cardio Day 1/index-START.html b/04 - Array Cardio Day 1/index-START.html index eec0ffc31d..4751ea14ca 100644 --- a/04 - Array Cardio Day 1/index-START.html +++ b/04 - Array Cardio Day 1/index-START.html @@ -31,15 +31,25 @@ // Array.prototype.filter() // 1. Filter the list of inventors for those who were born in the 1500's - + const fifteen = inventors.filter(inventor => (inventor.year > 1499 && inventor.year < 1600)) + console.table(fifteen) // Array.prototype.map() // 2. Give us an array of the inventors' first and last names + const name = inventors.map(inventor => `${inventor.first}, ${inventor.last}`) + console.table(name) // Array.prototype.sort() // 3. Sort the inventors by birthdate, oldest to youngest + const birthDate = inventors.sort((firstPerson,secondPerson) => firstPerson.year >secondPerson.year ? 1 : -1) + console.table (birthDate) // Array.prototype.reduce() // 4. How many years did all the inventors live? + const totalYears = inventors.reduce((total,inventor) => { + return total + (inventor.passed - inventor.year) + },0) + + console.log(totalYears) // 5. Sort the inventors by years lived