summaryrefslogtreecommitdiff
path: root/load-vertical-links.js
diff options
context:
space:
mode:
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.";
+ });
+});