This repository has been archived on 2024-08-25. You can view files and clone it, but cannot push or open issues or pull requests.
hectabit-website/sidebar.js

9 lines
452 B
JavaScript
Raw Normal View History

2024-02-13 17:14:45 +00:00
document.getElementById("sidebutton").addEventListener("click", function() {
var sidecontainer = document.querySelector(".sidecontainer");
2024-02-13 17:14:45 +00:00
var content = document.querySelector(".content");
var closebar = document.querySelector(".closebar");
closebar.classList.toggle("expanded");
sidecontainer.classList.toggle("hidden");
2024-02-13 17:14:45 +00:00
content.classList.toggle("expanded");
});