mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-17 16:45:32 +00:00
10 lines
No EOL
350 B
JavaScript
10 lines
No EOL
350 B
JavaScript
document.addEventListener("DOMContentLoaded", () => {
|
|
let content = document.getElementById("content");
|
|
document.getElementById("menu").querySelector("a").addEventListener("click", () => {
|
|
content.classList.add("opened");
|
|
});
|
|
content.addEventListener("click", (e) => {
|
|
if (e.target === content)
|
|
content.classList.remove("opened");
|
|
});
|
|
}); |