14 lines
677 B
JavaScript
14 lines
677 B
JavaScript
//the header of the site would be handled in this javascript file, so you don't have to copypaste the whole thing onto every page.
|
|
//at the bottom of your page, but before the js script calls and the closing body tag, put an empty div with a class of "writeHeader"
|
|
document.querySelector(".writeHeader").innerHTML = `
|
|
<header align="center">
|
|
<a href="index.html"><img src="./img/logo.webp" alt="" /></a>
|
|
|
|
<div id="nav">
|
|
<a href="index.html">HOME</a> |
|
|
<a href="archive.html">ARCHIVE</a> |
|
|
<a href="about.html">ABOUT</a> |
|
|
<a href="characters.html">CHARACTERS</a>
|
|
</div>
|
|
</header>
|
|
`;
|