diff options
author | altaf-creator <athaalaa@gmail.com> | 2024-03-16 17:48:01 +0700 |
---|---|---|
committer | altaf-creator <athaalaa@gmail.com> | 2024-03-16 17:48:01 +0700 |
commit | 3d0ccfba34d6371b41e877189b78599ae7b2f98a (patch) | |
tree | ea1acfc1a9c545537144edc18124dd16ed9d5099 /scripts/toc.js | |
parent | 06857f20a528d5e7e5d3d2be5c3d4f836c7f366f (diff) |
new branch! decided to revive this old project. lessons now support markdown, rebrand?
Diffstat (limited to 'scripts/toc.js')
-rw-r--r-- | scripts/toc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/toc.js b/scripts/toc.js index bfdfe42..107c846 100644 --- a/scripts/toc.js +++ b/scripts/toc.js @@ -1,7 +1,7 @@ // i am a C# developer // trying javascript -window.onload = function() { +function toc() { const tocDiv = document.getElementById("toc"); const content = document.getElementById("main"); const headers = content.querySelectorAll('h1, h2, h3, h4, h5, h6'); @@ -43,4 +43,4 @@ window.onload = function() { } } } -}
\ No newline at end of file +} |