Skip to content

Commit 823b508

Browse files
committed
feat(CSS): toggle visibilty on element with class computation-history element
1 parent 0cef269 commit 823b508

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

index.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,15 @@ body {
4444
}
4545

4646
.computation-history {
47-
4847
height: 530px;
4948
width: 400px;
50-
49+
display: flex;
50+
display: flex;
51+
visibility: hidden;
52+
}
53+
54+
.computation-history.visility {
55+
visibility: visible;
5156
}
5257

5358

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ console.log(slidingPart)
1616

1717
historyBtn.addEventListener("click", () => {
1818
slidingPart.classList.toggle("slide")
19+
computationHistory.classList.toggle("visility")
1920
})
2021

2122

0 commit comments

Comments
 (0)