mirror of
https://github.com/GenShibe/website.git
synced 2025-02-12 18:14:50 +00:00
oops LOL
This commit is contained in:
parent
2c97ec7272
commit
b3d1c54818
1 changed files with 1 additions and 13 deletions
14
index.html
14
index.html
|
@ -62,19 +62,7 @@
|
||||||
</select>
|
</select>
|
||||||
</footer>
|
</footer>
|
||||||
</main>
|
</main>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
|
||||||
const selector = document.querySelector(".theme-selector");
|
|
||||||
selector.value = localStorage.getItem("theme") || "frappe";
|
|
||||||
document.documentElement.setAttribute("theme", selector.value);
|
|
||||||
selector.addEventListener("change", function () {
|
|
||||||
localStorage.setItem("theme", this.value);
|
|
||||||
document.documentElement.setAttribute("theme", this.value);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
document.querySelector(".last-updated").innerHTML =
|
|
||||||
document.lastModified;
|
|
||||||
|
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
window.addEventListener("DOMContentLoaded", () => {
|
||||||
const selector = document.querySelector(".theme-selector");
|
const selector = document.querySelector(".theme-selector");
|
||||||
selector.value = localStorage.getItem("theme") || window.matchMedia('(prefers-color-scheme: light)').matches ? "latte" : "frappe";
|
selector.value = localStorage.getItem("theme") || window.matchMedia('(prefers-color-scheme: light)').matches ? "latte" : "frappe";
|
||||||
|
|
Loading…
Add table
Reference in a new issue