From 5c602ab16f1f5e46bee5f44cec15860f785039ee Mon Sep 17 00:00:00 2001
From: Aiden Bai <aiden.bai05@gmail.com>
Date: Mon, 02 May 2022 16:04:36 +0000
Subject: [PATCH] Add clarification comments
---
layouts/partials/head.html | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 772153a..ea67a00 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -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
--
Gitblit v1.10.0