Skip to content

Commit e2fc352

Browse files
authored
add button functionality
1 parent c422b2f commit e2fc352

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

script.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,22 @@ function originalFunc() {
1313
}
1414

1515
else {
16-
originalHide.innerText = "Hide Original";
1716
original.style.display = "unset";
17+
originalHide.innerText = "Hide Original";
18+
}
19+
20+
}
21+
22+
function compareFunc() {
23+
24+
if (compareHide.innerText === "Hide Compare") {
25+
compare.style.display = "none";
26+
compareHide.innerText = "Show Compare";
27+
}
28+
29+
else {
30+
compare.style.display = "unset";
31+
compareHide.innerText = "Hide Compare";
1832
}
1933

2034
}

0 commit comments

Comments
 (0)