From 255b62a3b3be2cd8915d39eac1bde4aca276d01a Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Mon, 16 Dec 2024 15:05:25 -0500 Subject: [PATCH] dark by default --- Views/Shared/_Layout.cshtml | 2 +- wwwroot/js/site.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Views/Shared/_Layout.cshtml b/Views/Shared/_Layout.cshtml index 2a4e856..c75bd53 100644 --- a/Views/Shared/_Layout.cshtml +++ b/Views/Shared/_Layout.cshtml @@ -8,7 +8,7 @@ - + @RenderBody() diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 7b4d354..a7092fa 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -63,11 +63,6 @@ $(function () { }); }); - // set dark mode - if (window.location.hash == '#dark') { - $('body').addClass('dark'); - } - let timer = null; const ignoredKeyCodes = [17, 18, 20, 27, 37, 38, 39, 40, 91];