Skip to content
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
working on displaying html from js result
  • Loading branch information
RELIAS\wcoleman committed Oct 18, 2017
commit d586b88c026b8a5d04b6d654162f9a014a861a38
12 changes: 12 additions & 0 deletions 07 - Array Cardio Day 2/index-START.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@

// Array.prototype.every() // is everyone 19 or older?

const ageCheck = people.every(person =>
((new Date()).getFullYear()) - person.year >= 19);

let groupOk = '<div id = "message">Group is OK</div>';
let groupNotOk = '<div id = "message">Group is not OK</div>';

verifyGroup = ageCheck ? document.getElementbyId("body").innerHTML = groupOk : document.getElementbyId("body").innerHTML = groupNotOk;

document.body.appendChild(document.createTextNode(verifyGroup));

console.log(ageCheck);

// 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
Expand Down