-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
38 lines (28 loc) · 967 Bytes
/
script.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
33
34
35
36
37
38
const compare = document.getElementById("div-compare");
const original = document.getElementById("div-original");
const originalHide = document.getElementById("button-original");
const compareHide = document.getElementById("button-compare");
function originalFunc() {
if (originalHide.innerText === "Hide Original") {
original.style.display = "none";
originalHide.innerText = "Show Original";
originalHide.style.background = "Blue";
}
else {
original.style.display = "unset";
originalHide.innerText = "Hide Original";
originalHide.style.background = "SkyBlue";
}
}
function compareFunc() {
if (compareHide.innerText === "Hide Compare") {
compare.style.display = "none";
compareHide.innerText = "Show Compare";
compareHide.style.background = "Red";
}
else {
compare.style.display = "unset";
compareHide.innerText = "Hide Compare";
compareHide.style.background = "Pink";
}
}