Skip to content

Devtools #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 47 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
3826363
added working drum machine
Oct 3, 2017
c26a957
Merge pull request #1 from wcski/drumkit
Oct 4, 2017
9be6f47
removed completed files
Oct 6, 2017
0a73861
Merge pull request #2 from wcski/clock
Oct 6, 2017
ae074b2
added working clock
Oct 6, 2017
56068fb
Merge pull request #3 from wcski/clock
Oct 6, 2017
4518186
removed finished files
Oct 6, 2017
72279fb
Merge pull request #4 from wcski/css_variables
Oct 6, 2017
d35c2a5
added css variables
Oct 7, 2017
bcdc6e0
Merge pull request #5 from wcski/css_variables
Oct 7, 2017
cbf4fff
removed finished files
Oct 7, 2017
eccba0b
Merge pull request #6 from wcski/array-cardio-1
Oct 7, 2017
8e22fe8
added filter function
Oct 10, 2017
e97e0b4
Merge pull request #7 from wcski/array-cardio-1
Oct 10, 2017
727b7f8
mapping function added
Oct 11, 2017
191e41f
Merge pull request #8 from wcski/array-cardio-1
Oct 11, 2017
a61c683
added sort
Oct 11, 2017
2909ad9
added reduce
Oct 11, 2017
6fe424f
another sort
Oct 11, 2017
b4faf6e
Merge pull request #9 from wcski/array-cardio-1
Oct 11, 2017
6cb6a23
gets an aray of dom elements containing specific text
Oct 11, 2017
58b2cd7
added sort with split
Oct 11, 2017
30cc415
added reduce function
Oct 11, 2017
433ae83
Merge pull request #10 from wcski/array-cardio-1
Oct 11, 2017
dcff8b4
removed finished files
Oct 16, 2017
6a14910
Merge pull request #11 from wcski/flex-panel-gallery
Oct 16, 2017
b7baa73
added css and js transitions
Oct 16, 2017
23722b6
Merge pull request #12 from wcski/flex-panel-gallery
Oct 17, 2017
fee74c7
removed finished files
Oct 17, 2017
02b66bb
added type ahead search
Oct 17, 2017
98337d5
Merge pull request #13 from wcski/type-ahead
Oct 17, 2017
9e137f4
removed finished files
Oct 17, 2017
7820a9b
added some function
Oct 17, 2017
46046d7
Merge pull request #14 from wcski/array-cardio-2
Oct 17, 2017
f877ed8
reactored .some function
Oct 18, 2017
ceea0fd
Merge branch 'array-cardio-2'
Oct 18, 2017
d586b88
working on displaying html from js result
Oct 18, 2017
03b0c92
added find and findindex
Oct 31, 2017
1c26a30
Merge pull request #15 from wcski/array-cardio-2
Oct 31, 2017
d349c06
removed finished files
Oct 31, 2017
cfa5ec2
Merge pull request #16 from wcski/html5
Oct 31, 2017
9c6a341
started HTML5 canvas work
Nov 1, 2017
80768ff
added working canvas drawer
Nov 2, 2017
3c1c7c1
Merge pull request #17 from wcski/html5
Nov 2, 2017
12376ee
removed finished files
Nov 2, 2017
60c75a8
Revert "removed finished files"
Nov 2, 2017
d75b081
removed finished files
Nov 2, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "removed finished files"
This reverts commit 12376ee.
  • Loading branch information
William committed Nov 2, 2017
commit 60c75a89feaef7f2a909ebdecc51eeec10c1587c
89 changes: 89 additions & 0 deletions 09 - Dev Tools Domination/index-FINISHED.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Console Tricks!</title>
</head>
<body>

<p onClick="makeGreen()">×BREAK×DOWN×</p>

<script>
const dogs = [{ name: 'Snickers', age: 2 }, { name: 'hugo', age: 8 }];

function makeGreen() {
const p = document.querySelector('p');
p.style.color = '#BADA55';
p.style.fontSize = '50px';
}

// Regular
console.log('hello');

// Interpolated
console.log('Hello I am a %s string!', '💩');

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

// warning!
console.warn('OH NOOO');

// Error :|
console.error('Shit!');

// Info
console.info('Crocodiles eat 3-4 people per year');

// Testing
const p = document.querySelector('p');

console.assert(p.classList.contains('ouch'), 'That is wrong!');

// clearing
console.clear();

// Viewing DOM Elements
console.log(p);
console.dir(p);

console.clear();

// Grouping together
dogs.forEach(dog => {
console.groupCollapsed(`${dog.name}`);
console.log(`This is ${dog.name}`);
console.log(`${dog.name} is ${dog.age} years old`);
console.log(`${dog.name} is ${dog.age * 7} dog years old`);
console.groupEnd(`${dog.name}`);
});

// counting

console.count('Wes');
console.count('Wes');
console.count('Steve');
console.count('Steve');
console.count('Wes');
console.count('Steve');
console.count('Wes');
console.count('Steve');
console.count('Steve');
console.count('Steve');
console.count('Steve');
console.count('Steve');

// timing
console.time('fetching data');
fetch('https://api.github.com/users/wesbos')
.then(data => data.json())
.then(data => {
console.timeEnd('fetching data');
console.log(data);
});

console.table(dogs);

</script>
</body>
</html>