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