From 532caed328c0014fefb1cb5edcb874bc85442b9e Mon Sep 17 00:00:00 2001 From: Monica-CodingWorld Date: Tue, 9 Jun 2026 11:22:27 +0530 Subject: [PATCH] fix: enable theme toggle functionality on 403 and 405 pages --- static/script.js | 3 ++- templates/403.html | 1 + templates/405.html | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/script.js b/static/script.js index 577a5c2..b156a00 100644 --- a/static/script.js +++ b/static/script.js @@ -707,6 +707,7 @@ updateProfileWidgets(); span.className = "project-tag project-tag--" + normalize(type).replace(/[^a-z0-9_-]/g, "-"); span.textContent = text; return span; + } //takes the array of projects from the api and draws them on the page as cards //if array is empty it shows the "no results" message instead @@ -1246,4 +1247,4 @@ updateProfileWidgets(); window.scrollTo({ top: atBottom ? 0 : document.body.scrollHeight, behavior: "smooth" }); }); update(); -})(); +})(); \ No newline at end of file diff --git a/templates/403.html b/templates/403.html index 7249552..23e9df7 100644 --- a/templates/403.html +++ b/templates/403.html @@ -31,5 +31,6 @@

Forbidden

Back to Home + diff --git a/templates/405.html b/templates/405.html index 1bfd912..43352e2 100644 --- a/templates/405.html +++ b/templates/405.html @@ -31,5 +31,6 @@

Method Not Allowed

Back to Home +