mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Close tutorial ToC after clicking a link
This commit is contained in:
parent
74b3d14277
commit
1fc8f1df37
2 changed files with 6 additions and 0 deletions
5
www/public/site.js
Normal file
5
www/public/site.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
document.querySelectorAll("#tutorial-toc li a").forEach((elem) => {
|
||||
elem.addEventListener("click", (event) => {
|
||||
document.querySelector("#tutorial-toc-toggle").checked = false;
|
||||
})
|
||||
});
|
|
@ -1859,5 +1859,6 @@ For example, <code>[Foo Str][Bar Bool][Baz (List Str)]</code> is equivalent to <
|
|||
</table>
|
||||
</main>
|
||||
<footer>Made by people who like to make nice things. © 2022</footer>
|
||||
<script src="/site.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue