-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
30 lines (24 loc) · 919 Bytes
/
Copy pathmain.js
File metadata and controls
30 lines (24 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
console.log('Nothing to see here.');
// comments
var boats = '';
var num = 0;
for (var i = 0; i < 10000; i += 1){
boats += '#prayforBoaty';
}
document.querySelector('.paragraph-boaty').innerHTML = num + ' Likes';
document.querySelector('.button-tone-down').onclick = function() {
num += 1;
document.querySelector('.paragraph-boaty').innerHTML = num + ' Likes';
if (num > 9){
document.querySelector('.paragraph-boaty').innerHTML = num + ' Likes' + ' WOOOOHOOOOO';
}
if (num > 19){
document.querySelector('.paragraph-boaty').innerHTML = num + ' Likes' + ' HELL YEAHHHHH';
}
if (num > 29){
document.querySelector('.paragraph-boaty').innerHTML = num + ' Likes' + ' THANK YOU VERY MUCH';
}
}
// document.querySelector('.site-header').classList.add('site-header-tall');
// There is also toggle and remove instead of add
// document.querySelector('.link-google').href = 'https://bing.com';