aboutsummaryrefslogtreecommitdiffstats
path: root/load-vertical-links.js
diff options
context:
space:
mode:
authorsillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
committersillylaird <sillyfanboy@gmail.com>2026-09-03 00:33:59 +0000
commit898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch)
tree85c6ee5ad58b860144551184d4cf86b560c62b91 /load-vertical-links.js
downloadwww-main.tar.gz
www-main.zip
import live www.sillylaird.ca webrootHEADmain
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.";
+ });
+});