Created
November 29, 2020 11:59
-
-
Save leostera/d6cc8627f4c90253557ce54af2d82160 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import load_lam from "./fib.js"; | |
| import run_js from "./fib_in_js.js"; | |
| document.onclick = () => { | |
| run_js().then((_) => load_lam().then(lam => { | |
| const run = () => { | |
| lam.step(); | |
| requestAnimationFrame(run); | |
| } | |
| run(); | |
| })); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment