Built with blockbuilder.org
Created
July 20, 2020 01:59
-
-
Save enjalot/ffd71f5ae939caef9939b8334d112c9d to your computer and use it in GitHub Desktop.
coding with fire: stream example
This file contains 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
license: mit |
This file contains 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<style> | |
body { | |
margin:0;position:fixed;top:0;right:0;bottom:0;left:0; | |
} | |
</style> | |
</head> | |
<div id="observablehq-393679bd"> | |
<div class="observablehq-viewof-canvas"></div> | |
</div> | |
<script type="module"> | |
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js"; | |
import define from "https://api.observablehq.com/@codingwithfire/coding-with-doom-fire.js?v=3"; | |
(new Runtime).module(define, name => { | |
if (name === "viewof canvas") return Inspector.into("#observablehq-393679bd .observablehq-viewof-canvas")(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment