/index.html Secret
Created
August 11, 2018 21:47
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"> | |
<title>United States Active Fire Perimeters</title> | |
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@observablehq/notebook-inspector@1/dist/notebook-inspector-style.css"> | |
<style> | |
#mapContainer { | |
} | |
</style> | |
<body> | |
<div class="wrapper"> | |
<div id="mapContainer"></div> | |
<div id="mapboxCss"></div> | |
</div> | |
<script type="module"> | |
import {Inspector, Runtime} from "https://unpkg.com/@observablehq/notebook-runtime?module"; | |
import notebook from "https://api.observablehq.com/d/fba227dd70679935.js?key=c0ca20dda200b774"; | |
const notebookCellsToRender = { | |
"mapContainer": "#mapContainer", | |
"mapboxCss": "#mapboxCss" | |
}; | |
Runtime.load(notebook, (cell) => { | |
const selector = notebookCellsToRender[cell.name]; | |
if (selector) { | |
return new Inspector(document.querySelector(selector)); | |
} else { | |
return true; | |
} | |
}); | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment