Skip to content

Commit 54e839d

Browse files
authored
Merge pull request #42 from Supravisor/deploy
style buttons
2 parents a736513 + 5835194 commit 54e839d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ function originalFunc() {
1010
if (originalHide.innerText === "Hide Original") {
1111
original.style.display = "none";
1212
originalHide.innerText = "Show Original";
13+
originalHide.style.background = "Blue";
1314
}
1415

1516
else {
1617
original.style.display = "unset";
1718
originalHide.innerText = "Hide Original";
19+
originalHide.style.background = "SkyBlue";
1820
}
1921

2022
}
@@ -24,11 +26,13 @@ function compareFunc() {
2426
if (compareHide.innerText === "Hide Compare") {
2527
compare.style.display = "none";
2628
compareHide.innerText = "Show Compare";
29+
compareHide.style.background = "Red";
2730
}
2831

2932
else {
3033
compare.style.display = "unset";
3134
compareHide.innerText = "Hide Compare";
35+
compareHide.style.background = "Pink";
3236
}
3337

3438
}

styles.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,18 @@ textarea {
4747
width: 200px;
4848
gap: 40px;
4949
}
50+
51+
52+
button {
53+
font-size: 1.2em;
54+
border-radius: 7px;
55+
padding: 5px;
56+
}
57+
58+
#button-original {
59+
background: SkyBlue;
60+
}
61+
62+
#button-compare {
63+
background: Pink;
64+
}

0 commit comments

Comments
 (0)