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
434 B
JavaScript
Raw Normal View History

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