-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.js
32 lines (22 loc) · 785 Bytes
/
home.js
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
31
32
const header = document.getElementById('message');
header.style.color = '#FFF'; // Makes color white
header.style.fontWeight = '100'; // makes font thin
const button = document.getElementById('see-review');
button.addEventListener('click', function() {
console.log('click');
const review = document.getElementById('review');
const seeReviewButton = document.getElementById('see-review');
if(review.classList.contains('d-none')) {
showSeeReview("Hide Review");
review.classList.remove('d-none');
} else {
showSeeReview("See Review");
review.classList.add('d-none');
};
});
let price = 49.99,
name = "Hiking Boots",
discounted = false;
let message = "Hello World";
showMessage(message);
changePercentOff(32);