Add clarification comments

This commit is contained in:
Aiden Bai 2022-05-02 09:04:36 -07:00
parent bcb166c21c
commit 5c602ab16f
No known key found for this signature in database
GPG key ID: D37584388675FF3A
3 changed files with 7 additions and 3 deletions
layouts/partials

View file

@ -57,9 +57,12 @@
</script>
<script type="module">
import { router, navigate } from "https://unpkg.com/million/dist/router.mjs";
// SPA navigation for access later
window.navigate = navigate;
// We only mutate document.title and content within .singlePage element
router(".singlePage");
const callback = () => {
// requestAnimationFrame()
const draw = () => {
const container = document.getElementById("graph-container");
// retry if the graph is not ready