-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (34 loc) · 1.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<head>
<title>Dota 2 Hero Lore Connectivity</title>
<link rel="stylesheet" type="text/css" href="css/lore_index.css">
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
</head>
<div id="title"></div>
<div id="nav">
<a href="https://github.com/youmikoh/dota2_hero_lore_connectivity/">
<img class="nav-img" alt="github" src="img/github.png"></a>
<a href="https://beta.observablehq.com/@youmikoh/dota-2-lore-connectivity">
<img class="nav-img" alt="observable" src="img/observable.png"></a>
<a href="http://nbviewer.jupyter.org/github/youmikoh/dota2-lore-connectivity/blob/master/dota2_hero_lore_connectivity.ipynb">
<img class="nav-img" alt="jupyter" src="img/jupyter.png"></a>
</div>
<div id="graph"></div>
<script type="module">
// Load the Observable runtime and inspector.
import {Runtime, Inspector} from "https://unpkg.com/@observablehq/notebook-runtime?module";
// Your notebook, compiled as an ES module.
import notebook from "https://api.observablehq.com/@youmikoh/dota-2-lore-connectivity.js?key=3cdf6ccebae7853a";
// Load the notebook, observing its cells with a default Inspector
// that simply renders the value of each cell into the provided DOM node.
// Runtime.load(notebook, Inspector.into(document.body));
const renders = {
"title": "#title",
"graph": "#graph"
};
Runtime.load(notebook, (variable) => {
const selector = renders[variable.name];
if (selector) {
return new Inspector(document.querySelector(selector));
}
});
</script>