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

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");
});