Skip to content

Commit 3a874e5

Browse files
committed
clean up test_dashboard index
1 parent 6bca872 commit 3a874e5

File tree

1 file changed

+19
-47
lines changed

1 file changed

+19
-47
lines changed

devtools/test_dashboard/index.html

+19-47
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,39 @@
11
<!DOCTYPE html>
22
<head>
3-
4-
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT" />
5-
3+
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT" />
64
</head>
7-
85
<body>
96

10-
<div id="plot-list" style="overflow:auto; height: 100px;"></div>
11-
<div id="status-info" style="display: block; position: absolute; top: 150px;"></div>
12-
<div id="embedded-graph"></div>
13-
<div id="embedded-image"style="
14-
display: block;
15-
position: absolute;
16-
top: 800px;
17-
">
18-
</div>
19-
20-
<script type="text/javascript" src="./../shelly/shelly/static/js/plugins/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
21-
22-
<script>
23-
PLOTLYENV = {
24-
TOPOJSON_URL: '../shelly/plotlyjs/static/plotlyjs/src/geo/topojson/'
25-
};
26-
</script>
7+
<div id="plot-list" style="overflow:auto; height:100px;"></div>
8+
<div id="status-info" style="display:block; position:absolute; top:150px;"></div>
9+
<div id="embedded-graph"></div>
10+
<div id="embedded-image" style="display:block; position:absolute; top:800px;"></div>
2711

28-
<script type="text/javascript" src="./../shelly/plotlyjs/static/plotlyjs/build/plotlyjs-bundle.js" charset="utf-8"></script>
12+
<script type="text/javascript" src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
2913

30-
<script type="text/javascript" src="test-bundle.js"></script>
14+
<script type="text/javascript" src="../../dist/plotly.js" charset="utf-8"></script>
15+
<script>PLOTLYENV = { TOPOJSON_URL: '../../src/assets/topojson/' };</script>
3116

32-
<script>
33-
MathJax.Hub.Config({
34-
messageStyle: 'none',
35-
skipStartupTypeset: true,
36-
displayAlign: "left",
37-
tex2jax: {
38-
inlineMath: [["$","$"],["\\(","\\)"]]
39-
}
40-
});
41-
</script>
17+
<script type="text/javascript" src="../../build/test_dashboard-bundle.js"></script>
4218

43-
<script>
19+
<!-- helper functions to manipulate graph div -->
20+
<script>
4421
var Tabs = {
45-
get: function() {
22+
getGraph: function() {
4623
return document.getElementById('embedded-graph').children[0];
4724
},
4825
fresh: function() {
4926
var anchor = document.getElementById('embedded-graph'),
50-
plotDiv = Tabs.get();
51-
if(plotDiv) anchor.removeChild(plotDiv);
52-
plotDiv = document.createElement('div');
53-
anchor.appendChild(plotDiv);
54-
return plotDiv;
55-
}
56-
};
27+
graphDiv = Tabs.getGraph();
5728

58-
Tabs.getGraph = Tabs.get;
29+
if(graphDiv) anchor.removeChild(graphDiv);
30+
graphDiv = document.createElement('div');
31+
anchor.appendChild(graphDiv);
5932

60-
var Themes = {
61-
reTileLock: null
33+
return graphDiv;
34+
}
6235
};
63-
</script>
64-
36+
</script>
6537

6638
</body>
6739
</html>

0 commit comments

Comments
 (0)