Skip to content

Commit d6795c6

Browse files
committed
Use nav-bar.ts
1 parent 70109b2 commit d6795c6

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

site/index.html

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,7 @@
8585
</head>
8686

8787
<body>
88-
<header>
89-
<nav>
90-
<div class="nav-container">
91-
<div class="logo">SWGoH Updates</div>
92-
<button class="menu-toggle" aria-label="Toggle menu"></button>
93-
<ul class="nav-links">
94-
<li><a href="javascript:history.back()">Back</a></li>
95-
<li><a href="/">Home</a></li>
96-
<li><a href="/swgoh-portrait-maker/">SWGoH Portrait Maker</a></li>
97-
<li><a href="/swgoh-updates/">SWGoH Updates</a></li>
98-
<li><a href="/about/">About</a></li>
99-
</ul>
100-
</div>
101-
</nav>
102-
<div style="height: 25px;"></div>
103-
</header>
88+
<nav></nav>
10489
<h1>Welcome to LegoFan9's SWGoH Tools</h1>
10590
<p>Select an app below to get started:</p>
10691
<div class="app-list">
@@ -123,11 +108,7 @@ <h1>Welcome to LegoFan9's SWGoH Tools</h1>
123108
</a>
124109
<div style="height: 20px"></div>
125110
<p>By using this site you agree to allow useage of Google Analytics</p>
126-
<script>
127-
document.querySelector(".menu-toggle").addEventListener("click", () => {
128-
document.querySelector(".nav-links").classList.toggle("show");
129-
});
130-
</script>
111+
<script type="module" src="/src/nav-bar.ts"></script>
131112
</body>
132113

133114
</html>

0 commit comments

Comments
 (0)