diff --git a/index.html b/index.html index d294067..37e6b97 100644 --- a/index.html +++ b/index.html @@ -357,9 +357,26 @@ } return ret; } + + function toggleDiscordWidget() { + var widget = document.getElementById("DiscordWidget"); + var button = document.getElementById("DiscordButton"); + if (widget.style.display === "none") { + widget.style.display = "block"; + button.textContent="Hide Discord Widget"; + + } else { + widget.style.display = "none"; + button.textContent="Show Discord Widget"; + } + }

+ +