summaryrefslogtreecommitdiff
path: root/load-vertical-links.js
diff options
context:
space:
mode:
authorsillylaird <sillylaird@fastmail.ca>2026-02-03 21:27:57 -0500
committersillylaird <sillylaird@fastmail.ca>2026-02-03 21:27:57 -0500
commit720d752748b793a2f5cf3cc14cb75ad86e8919c0 (patch)
tree29120103307cb17e7d6c283cc198ec2484f934cd /load-vertical-links.js
First commit
Diffstat (limited to 'load-vertical-links.js')
-rw-r--r--load-vertical-links.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/load-vertical-links.js b/load-vertical-links.js
new file mode 100644
index 0000000..ed2aa0c
--- /dev/null
+++ b/load-vertical-links.js
@@ -0,0 +1,11 @@
+// load-vertical-links.js
+document.addEventListener("DOMContentLoaded", () => {
+ fetch("https://cdn.sillylaird.ca/vertical-links.html")
+ .then(r => r.text())
+ .then(html => {
+ document.getElementById("vertical-links-container").innerHTML = html;
+ })
+ .catch(() => {
+ document.getElementById("vertical-links-container").textContent = "Failed to load menu.";
+ });
+});