1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-23 17:52:20 +00:00
ghostream/web/static/js/sideWidget.js

12 lines
451 B
JavaScript
Raw Normal View History

2020-09-22 20:08:14 +00:00
// 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 = "«"
}
})