From e5ba0b3a88474084e8dfc6419665c9bb9c59aa7e Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 18 Apr 2024 19:51:12 -0500 Subject: [PATCH] Discord Widget because cool --- index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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"; + } + }

+ +