kinda start index page, add email verify and request route, add session updating
This commit is contained in:
parent
b24b1484cb
commit
cc4ebfbdd0
12 changed files with 287 additions and 0 deletions
8
public/js/global.js
Normal file
8
public/js/global.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
const htmlElement = document.documentElement;
|
||||
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");
|
||||
|
||||
const currentTheme =
|
||||
localStorage.getItem("theme") ||
|
||||
(prefersDarkScheme.matches ? "dark" : "light");
|
||||
|
||||
htmlElement.setAttribute("data-theme", currentTheme);
|
Loading…
Add table
Add a link
Reference in a new issue