Skip to content

Commit f500032

Browse files
authored
Merge pull request wesbos#206 from ElaMoscicka/typosVol2
typos&whitespaces improvements
2 parents 3dd7eaa + a0369a2 commit f500032

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

16 - Mouse Move Shadow/index-finished.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1 contenteditable>🔥WOAH!</h1>
3838
<script>
3939
const hero = document.querySelector('.hero');
4040
const text = hero.querySelector('h1');
41-
const walk = 500; // 100px
41+
const walk = 500; // 500px
4242

4343
function shadow(e) {
4444
const { offsetWidth: width, offsetHeight: height } = hero;

19 - Webcam Fun/scripts-FINISHED.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function takePhoto() {
5353
}
5454

5555
function redEffect(pixels) {
56-
for(let i = 0; i < pixels.data.length; i+=4) {
56+
for (let i = 0; i < pixels.data.length; i+=4) {
5757
pixels.data[i + 0] = pixels.data[i + 0] + 200; // RED
5858
pixels.data[i + 1] = pixels.data[i + 1] - 50; // GREEN
5959
pixels.data[i + 2] = pixels.data[i + 2] * 0.5; // Blue
@@ -62,7 +62,7 @@ function redEffect(pixels) {
6262
}
6363

6464
function rgbSplit(pixels) {
65-
for(let i = 0; i < pixels.data.length; i+=4) {
65+
for (let i = 0; i < pixels.data.length; i+=4) {
6666
pixels.data[i - 150] = pixels.data[i + 0]; // RED
6767
pixels.data[i + 500] = pixels.data[i + 1]; // GREEN
6868
pixels.data[i - 550] = pixels.data[i + 2]; // Blue

22 - Follow Along Link Highlighter/style.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ a {
2727
text-decoration: none;
2828
color:black;
2929
background:rgba(0,0,0,0.05);
30-
border-radius: 20px
30+
border-radius: 20px;
3131
}
3232

3333
.highlight {
@@ -40,7 +40,7 @@ a {
4040
z-index: -1;
4141
border-radius:20px;
4242
display: block;
43-
box-shadow: 0 0 10px rgba(0,0,0,0.2)
43+
box-shadow: 0 0 10px rgba(0,0,0,0.2);
4444
}
4545

4646
.menu {

24 - Sticky Nav/index-FINISHED.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h1>A story about getting lost.</h1>
4949
let topOfNav = nav.offsetTop;
5050

5151
function fixNav() {
52-
if(window.scrollY >= topOfNav) {
52+
if (window.scrollY >= topOfNav) {
5353
document.body.style.paddingTop = nav.offsetHeight + 'px';
5454
document.body.classList.add('fixed-nav');
5555
} else {

0 commit comments

Comments
 (0)