From 64d7f835a8879f6047f5658a50614777bcb536e2 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 17 Jun 2025 14:11:10 +0200 Subject: [PATCH] change common.js --- public/scripts/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/common.js b/public/scripts/common.js index a98817c..f010964 100644 --- a/public/scripts/common.js +++ b/public/scripts/common.js @@ -3,12 +3,12 @@ const footerElement = document.querySelector('footer'); async function loadHeaderFooter() { try { - const headerResponse = await fetch('/header-snippet.html'); + const headerResponse = await fetch('https://commonhtml.thepenguinontheweb.tech/header-snippet.html'); if (!headerResponse.ok) throw new Error('Failed to load header'); const headerHTML = await headerResponse.text(); headerElement.innerHTML = headerHTML; - const footerResponse = await fetch('/footer-snippet.html'); + const footerResponse = await fetch('https://commonhtml.thepenguinontheweb.tech/footer-snippet.html'); if (!footerResponse.ok) throw new Error('Failed to load footer'); const footerHTML = await footerResponse.text(); footerElement.innerHTML = footerHTML;