Aiden Bai
2022-05-02 5c602ab16f1f5e46bee5f44cec15860f785039ee
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