Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
contextnet committed Apr 10, 2024
1 parent 5cd486b commit 58a36da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,21 @@ <h1 id="Long Video Generation" >Long Video Genereation</h1>
</tr>
</table>

<script>
// Get the navbar element
const navbar = document.getElementById("navbar");

// Get all h1 elements on the page
const headings = document.getElementsByTagName("h1");

// Loop through all h1 elements and create a link for each one
for (const heading of headings) {
const link = document.createElement("a");
link.href = "#" + heading.id;
link.textContent = heading.textContent;
navbar.appendChild(link);
}
</script>
</body>
</html>
</div>

0 comments on commit 58a36da

Please sign in to comment.