Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
linsaftw committed Dec 23, 2023
1 parent 5dd7afe commit d654fda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</script>
</head>
<body>
<script type="module" src="https://raw.githubusercontent.com/arkflame/FlameCord-Page/main/scripts/navbar.js?v=1"></script>
<script type="text/javascript" src="https://raw.githubusercontent.com/arkflame/FlameCord-Page/main/scripts/load-navbar.js"></script>
<section class="hero">
<navigation-bar></navigation-bar>
<div class="hero-content">
Expand Down
9 changes: 9 additions & 0 deletions scripts/load-navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fetch('https://raw.githubusercontent.com/arkflame/FlameCord-Page/main/scripts/navbar.js')
.then(response => response.text())
.then(data => {
const script = document.createElement('script');
script.type = 'module';
script.textContent = data;
document.head.appendChild(script);
})
.catch(error => console.error('Error loading script:', error));

0 comments on commit d654fda

Please sign in to comment.