mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-23 00:22:19 +00:00
12 lines
451 B
JavaScript
12 lines
451 B
JavaScript
// Side widget toggler
|
|
const sideWidgetToggle = document.getElementById("sideWidgetToggle")
|
|
sideWidgetToggle.addEventListener("click", function () {
|
|
const sideWidget = document.getElementById("sideWidget")
|
|
if (sideWidget.style.display === "none") {
|
|
sideWidget.style.display = "block"
|
|
sideWidgetToggle.textContent = "»"
|
|
} else {
|
|
sideWidget.style.display = "none"
|
|
sideWidgetToggle.textContent = "«"
|
|
}
|
|
}) |