aboutsummaryrefslogtreecommitdiff
path: root/header.html
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-07 12:16:28 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-07 12:16:28 +0100
commit69033ecacc726a9bc7532afdf97260109f4b6c1c (patch)
tree8aa8c1ab3607ab1b399702c5cad46f39c4980d7a /header.html
downloadgit.zue.dev-69033ecacc726a9bc7532afdf97260109f4b6c1c.tar
git.zue.dev-69033ecacc726a9bc7532afdf97260109f4b6c1c.tar.gz
git.zue.dev-69033ecacc726a9bc7532afdf97260109f4b6c1c.tar.bz2
git.zue.dev-69033ecacc726a9bc7532afdf97260109f4b6c1c.tar.xz
git.zue.dev-69033ecacc726a9bc7532afdf97260109f4b6c1c.zip
initial commit
Diffstat (limited to 'header.html')
-rw-r--r--header.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/header.html b/header.html
new file mode 100644
index 0000000..5054151
--- /dev/null
+++ b/header.html
@@ -0,0 +1,25 @@
+<!-- import DarkReader -->
+<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.125/darkreader.min.js"></script>
+
+<!-- import hljs -->
+<link
+ rel="stylesheet"
+ href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css"
+/>
+<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
+
+<!-- run main script -->
+<script>
+ document.addEventListener("DOMContentLoaded", (event) => {
+ // apply syntax highlighting to all code blocks
+ document.querySelectorAll("pre code").forEach((block) => {
+ hljs.highlightElement(block);
+ });
+
+ // set fetch method for DarkReader to use the same origin policy
+ DarkReader.setFetchMethod(window.fetch);
+
+ // auto-enable dark mode if user has set it as their preference
+ DarkReader.auto();
+ });
+</script>