Skip to content

Commit a0a0f8b

Browse files
committedDec 9, 2016
Fix typos and extra code
1 parent 61b13da commit a0a0f8b

File tree

19 files changed

+17
-22
lines changed

19 files changed

+17
-22
lines changed
 

‎01 - JavaScript Drum Kit/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
function playSound(e) {
6464
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
6565
const key = document.querySelector(`.key[data-key="${e.keyCode}"]`);
66-
if (!audio) return; // stop the fucntion from running all together
66+
if (!audio) return; // stop the function from running all together
6767
audio.currentTime = 0; // rewind to the start
6868
audio.play();
6969
key.classList.add('playing');

‎02 - JS + CSS Clock/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
position: relative;
4343
padding:2rem;
4444
box-shadow:
45-
0 0 0px 4px rgba(0,0,0,0.1),
45+
0 0 0 4px rgba(0,0,0,0.1),
4646
inset 0 0 0 3px #EFEFEF,
4747
inset 0 0 10px black,
4848
0 0 10px rgba(0,0,0,0.2);

‎02 - JS + CSS Clock/index-START.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
position: relative;
4343
padding:2rem;
4444
box-shadow:
45-
0 0 0px 4px rgba(0,0,0,0.1),
45+
0 0 0 4px rgba(0,0,0,0.1),
4646
inset 0 0 0 3px #EFEFEF,
4747
inset 0 0 10px black,
4848
0 0 10px rgba(0,0,0,0.2);

‎02 - JS + CSS Clock/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
position: relative;
4343
padding:2rem;
4444
box-shadow:
45-
0 0 0px 4px rgba(0,0,0,0.1),
45+
0 0 0 4px rgba(0,0,0,0.1),
4646
inset 0 0 0 3px #EFEFEF,
4747
inset 0 0 10px black,
4848
0 0 10px rgba(0,0,0,0.2);

‎04 - Array Cardio Day 1/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
// Array.prototype.filter()
2727
// 1. Filter the list of inventors for those who were born in the 1500's
28-
const fifteen = inventors.filter(inventor => (inventor.year >= 1500 && inventor.year < 1600))
28+
const fifteen = inventors.filter(inventor => (inventor.year >= 1500 && inventor.year < 1600));
2929

3030
console.table(fifteen);
3131

‎04 - Array Cardio Day 1/index-START.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{ first: 'Marie', last: 'Curie', year: 1867, passed: 1934 },
1919
{ first: 'Johannes', last: 'Kepler', year: 1571, passed: 1630 },
2020
{ first: 'Nicolaus', last: 'Copernicus', year: 1473, passed: 1543 },
21-
{ first: 'Max', last: 'Planck', year: 1858, passed: 1947 },
21+
{ first: 'Max', last: 'Planck', year: 1858, passed: 1947 }
2222
];
2323

2424
const flavours = ['Chocolate Chip', 'Kulfi', 'Caramel Praline', 'Chocolate', 'Burnt Caramel', 'Pistachio', 'Rose', 'Sweet Coconut', 'Lemon Cookie', 'Toffeeness', 'Toasted Almond', 'Black Raspberry Crunch', 'Chocolate Brownies', 'Pistachio Almond', 'Strawberry', 'Lavender Honey', 'Lychee', 'Peach', 'Black Walnut', 'Birthday Cake', 'Mexican Chocolate', 'Mocha Almond Fudge', 'Raspberry'];

‎05 - Flex Panel Gallery/index-FINISHED.html

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
background-position:center;
4545
flex: 1;
4646
justify-content: center;
47-
align-items: center;
4847
display: flex;
4948
flex-direction: column;
5049
}

‎06 - Type Ahead/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
const cities = [];
2121
fetch(endpoint)
2222
.then(blob => blob.json())
23-
.then(data => cities.push(...data))
23+
.then(data => cities.push(...data));
2424

2525
function findMatches(wordToMatch, cities) {
2626
return cities.filter(place => {

‎06 - Type Ahead/style.css

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
margin: 0;
2323
text-align: center;
2424
outline:0;
25-
border:0;
2625
border: 10px solid #F7F7F7;
2726
width: 120%;
2827
left: -10%;

‎07 - Array Cardio Day 2/index-START.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{ name: 'Wes', year: 1988 },
1313
{ name: 'Kait', year: 1986 },
1414
{ name: 'Irv', year: 1970 },
15-
{ name: 'Lux', year: 2015 },
15+
{ name: 'Lux', year: 2015 }
1616
];
1717

1818
const comments = [

‎09 - Dev Tools Domination/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
console.log('hello');
2222

2323
// Interpolated
24-
console.log('Hello I am a %s string!', '💩')
24+
console.log('Hello I am a %s string!', '💩');
2525

2626
// Styled
2727
// console.log('%c I am some great text', 'font-size:50px; background:red; text-shadow: 10px 10px 0 blue')

‎11 - Custom Video Player/style.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ input[type=range]::-webkit-slider-runnable-track {
107107
width: 100%;
108108
height: 8.4px;
109109
cursor: pointer;
110-
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0px 0px 1px rgba(13, 13, 13, 0);
110+
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
111111
background: rgba(255,255,255,0.8);
112112
border-radius: 1.3px;
113113
border: 0.2px solid rgba(1, 1, 1, 0);
114114
}
115115
input[type=range]::-webkit-slider-thumb {
116-
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
116+
box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
117117
height: 15px;
118118
width: 15px;
119119
border-radius: 50px;
@@ -130,13 +130,13 @@ input[type=range]::-moz-range-track {
130130
width: 100%;
131131
height: 8.4px;
132132
cursor: pointer;
133-
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0px 0px 1px rgba(13, 13, 13, 0);
133+
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0);
134134
background: #ffffff;
135135
border-radius: 1.3px;
136136
border: 0.2px solid rgba(1, 1, 1, 0);
137137
}
138138
input[type=range]::-moz-range-thumb {
139-
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
139+
box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0);
140140
height: 15px;
141141
width: 15px;
142142
border-radius: 50px;

‎13 - Slide in on Scroll/index-START.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>Slide in on Scroll</h1>
5656
timeout = setTimeout(later, wait);
5757
if (callNow) func.apply(context, args);
5858
};
59-
};
59+
}
6060

6161
const sliderImages = document.querySelectorAll('.slide-in');
6262

‎14 - JavaScript References VS Copying/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
team4[3] = 'heeee hawww';
5252
console.log(team4);
5353

54-
const team5 = Array.from(players)
54+
const team5 = Array.from(players);
5555

5656
// now when we update it, the original one isn't changed
5757

‎15 - LocalStorage/style.css

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
display:flex;
88
justify-content: center;
99
align-items: center;
10-
font-family: sans-serif;
1110
text-align: center;
1211
font-family: Futura,"Trebuchet MS",Arial,sans-serif
1312
}

‎20 - Speech Detection/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
const transcript = Array.from(e.results)
2424
.map(result => result[0])
2525
.map(result => result.transcript)
26-
.join('')
26+
.join('');
2727

2828
const poopScript = transcript.replace(/poop|poo|shit|dump/gi, '💩');
2929
p.textContent = poopScript;

‎22 - Follow Along Link Highlighter/style.css

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ a {
4545

4646
.menu {
4747
padding: 0;
48-
margin: 0;
4948
display: flex;
5049
list-style: none;
5150
justify-content: center;

‎26 - Stripe Follow Along Nav/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ <h2>Cool</h2>
225225
height: dropdownCoords.height,
226226
width: dropdownCoords.width,
227227
top: dropdownCoords.top - navCoords.top,
228-
left: dropdownCoords.left - navCoords.left,
228+
left: dropdownCoords.left - navCoords.left
229229
};
230230

231231
background.style.setProperty('width', `${coords.width}px`);

‎28 - Video Speed Controller/style.css

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ video {
2727
}
2828
.speed-bar {
2929
width:100%;
30-
height:10px;
3130
background:linear-gradient(-170deg, #2376ae 0%, #c16ecf 100%);
3231
text-shadow:1px 1px 0 rgba(0,0,0,0.2);
3332
display: flex;

0 commit comments

Comments
 (0)
Please sign in to comment.