mirror of
https://github.com/dhewm/dhewm.github.io.git
synced 2024-11-10 07:11:47 +00:00
22 lines
453 B
Text
22 lines
453 B
Text
</main>
|
|
<br><br>
|
|
<script>
|
|
// add clickable anchor-link to headings
|
|
for(h=1; h<=6; ++h)
|
|
{
|
|
var hs = document.getElementsByTagName('h'+h);
|
|
for(i=0; i<hs.length; ++i)
|
|
{
|
|
if(hs[i].id)
|
|
{
|
|
var l = document.createElement("a");
|
|
l.href = "#" + hs[i].id;
|
|
l.innerHTML = "# ";
|
|
l.className = "headinglink";
|
|
hs[i].insertBefore(l, hs[i].firstChild);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|