From 318af764eb349dc94428336ab494c941f06e1def Mon Sep 17 00:00:00 2001 From: Chen Yang Date: Sat, 21 Jun 2025 19:02:44 +0800 Subject: [PATCH] Add dynamic toggle icon --- index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index adac003..5082a35 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,8 @@ var elements = document.getElementsByClassName("style-one"); for (const element of elements) element.classList.toggle("dark_mode_style-one"); + var icon = document.getElementById("toggleICON"); + icon.classList.toggle("fas fa-sun"); } } @@ -51,7 +53,7 @@ Teaching Research Service - +
@@ -541,6 +543,12 @@
+ \ No newline at end of file