forked from facebookresearch/hiplot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (42 loc) · 1.46 KB
/
index.html
File metadata and controls
43 lines (42 loc) · 1.46 KB
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
41
42
43
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>HiPlot</title>
<link rel="icon" href="static/icon.png" />
</head>
<body style="margin: 0px">
<div id="hiplot_element_id" style="background-color: white">
<div style="text-align: center">Loading HiPlot...</div>
<noscript> HiPlot needs JavaScript to run </noscript>
</div>
<script src="static/built/hiplot.bundle.js" type="text/javascript">
/*BUNDLE_FILE*/
</script>
<script type="text/javascript">
function _hiplot_setup() {
if (typeof hiplot == "undefined") {
console.info("waiting for HiPlot bundle to be loaded...");
setTimeout(_hiplot_setup, 1000);
return;
}
var options = {};
var _sp = new URLSearchParams(location.search);
var _provider = _sp.get("provider");
if (_provider) {
options.dataProviderName = _provider;
}
/*ON_LOAD_SCRIPT_INJECT*/
var hiplot_instance = hiplot.render(document.getElementById("hiplot_element_id"), options);
Object.assign(window, { hiplot_last_instance: hiplot_instance }); // For debugging
/*AFTER_SETUP_SCRIPT_INJECT*/
}
if (document.readyState == "loading") {
document.addEventListener("DOMContentLoaded", _hiplot_setup);
} else {
// Either "complete" or "interactive"
_hiplot_setup();
}
</script>
</body>
</html>