Skip to content

Commit

Permalink
use the navbar fetch script!
Browse files Browse the repository at this point in the history
it wasnt created for nothing!
  • Loading branch information
qwertychomp authored Dec 1, 2023
1 parent c0f942f commit 0534a45
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions static/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,16 @@
</head>
<body>
<script src="js/gamesearch.js"></script>
<div class="header">
<a href="index.html"><h2 class="logo">Commander</h2></a>
<div class="container">
<ul class="menu">
<li><a href="index.html">Home</a></li>
<li><a href="games.html">Games</a></li>
<li><a href="browse.html">Browse</a></li>
<li><a href="about.html">About</a></li>
<li><a href="gitdis.html">Discussions</a></li>
</ul>
</div>
</div>
<script>
//use the navabr fetch script, like every part of the site should!
fetch('navbar.html')
.then(response => response.text())
.then(data => {
document.getElementById('content').innerHTML = data;
})
.catch(error => console.error(error));

</script>
<div class="sidenav">
<p id="searchtext">Search</p>
<input type="text" id="search" class="searchgames" placeholder="Search for games"> >
Expand Down

1 comment on commit 0534a45

@vercel
Copy link

@vercel vercel bot commented on 0534a45 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.