diff options
| author | mion <> | 2026-02-14 15:44:34 +0000 |
|---|---|---|
| committer | mion <> | 2026-02-14 15:44:34 +0000 |
| commit | ef14f5fef073149f23a9d55cd7393704045e233b (patch) | |
| tree | f6697c3bd75558e4111ab6b5cc35dd31f7a17c5d /style.js | |
| parent | 102e0ae2e97cb55665b2547250777f82383ae0a0 (diff) | |
update stylechooser to update style from cookies without waiting for whole document to load, prevents flash
Diffstat (limited to 'style.js')
| -rw-r--r-- | style.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,8 @@ if (typeof currentstyle === "undefined") { loadCSS(currentstyle); } +document.addEventListener('DOMContentLoaded', function() { + var stylechooser = document.createElement("div"); stylechooser.setAttribute("id", "stylechooser"); stylechooser.innerHTML = "Styles: "; @@ -40,3 +42,5 @@ document.getElementById("content").appendChild(stylechooser); addCSS("default", "style.css"); addCSS("moe", "moe.css"); addCSS("simple", "simple.css"); + +}); |
