Skip to content

Instantly share code, notes, and snippets.

@mbostock
Created January 2, 2020 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbostock/c4afa151bcc164085be8c4ff4e6ecb71 to your computer and use it in GitHub Desktop.
Save mbostock/c4afa151bcc164085be8c4ff4e6ecb71 to your computer and use it in GitHub Desktop.
<!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