Skip to content

Commit 404f297

Browse files
committed
not working
1 parent 9cfab52 commit 404f297

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Youtube Clone/script.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
document.addEventListener("DOMContentLoaded", function () {
2-
const toggleButton = document.getElementById("toggleButton");
3-
const linksContainer = document.querySelector(".links");
4-
5-
toggleButton.addEventListener("click", function () {
6-
linksContainer.style.maxHeight =
7-
linksContainer.style.maxHeight === "px" ? "200px" : "0px";
8-
});
9-
});
1+
s;

0 commit comments

Comments
 (0)