-
-
Save mbostock/c4afa151bcc164085be8c4ff4e6ecb71 to your computer and use it in GitHub Desktop.
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> | |
<meta charset="utf-8"> | |
<body> | |
<div> | |
<div id="titr_expan"></div> | |
<div class="my-3" id="zhmap_expan"></div> | |
</div> | |
<div> | |
<div id="titr_expro"></div> | |
<div class="my-3" id="zhmap_expro"></div> | |
<div class="my-3" id="aide"></div> | |
</div> | |
<script type="module"> | |
import define from "https://api.observablehq.com/@jipexu/expedition-speleologique-en-chine-par-annee.js?v=3"; | |
import {Runtime, Library, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4.6.4/dist/runtime.js"; | |
const runtime = new Runtime(); | |
const renders = { | |
titr_expan: "#titr_expan", | |
zhmap_expan: "#zhmap_expan" | |
}; | |
const main = runtime.module(define, name => { | |
if (renders[name]) { | |
return new Inspector(document.querySelector(renders[name])); | |
} | |
}) | |
</script> | |
<script type="module"> | |
import define from "https://api.observablehq.com/@jipexu/untitled.js?v=3"; | |
import {Runtime, Library, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@4.6.4/dist/runtime.js"; | |
const runtime = new Runtime(); | |
const renders = { | |
titr_expro: "#titr_expro", | |
zhmap_expro: "#zhmap_expro", | |
aide: "#aide" | |
}; | |
const main = runtime.module(define, name => { | |
if (renders[name]) { | |
return new Inspector(document.querySelector(renders[name])); | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment