From 20d478c7fc5d223d9b3a11f35a31cfa27a1e4f11 Mon Sep 17 00:00:00 2001 From: StockiP Date: Wed, 20 Apr 2022 20:30:55 +0200 Subject: [PATCH] trying out something --- js/app.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/app.ts b/js/app.ts index 5cdfdf6..0831ab0 100644 --- a/js/app.ts +++ b/js/app.ts @@ -1,7 +1,5 @@ $(document).ready(function() { - $('#top_nav_bar').load('../components/top_nav.html'); - $('#main_nav_bar').load('../components/main_nav.html'); - $('#marmeladenladen_footer').load('../components/footer.html'); - $('#productdetail').hide(); - $('#backbutton').hide(); + $('#top_nav_bar').load(document.location.hostname + '/components/top_nav.html'); + $('#main_nav_bar').load(document.location.hostname + '/components/main_nav.html'); + $('#marmeladenladen_footer').load(document.location.hostname + '/components/footer.html'); }); \ No newline at end of file