|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <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" /> |
6 | 4 | </head> |
7 | | - |
8 | 5 | <body> |
9 | 6 |
|
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> |
27 | 11 |
|
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> |
29 | 13 |
|
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> |
31 | 16 |
|
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> |
42 | 18 |
|
43 | | - <script> |
| 19 | + <!-- helper functions to manipulate graph div --> |
| 20 | + <script> |
44 | 21 | var Tabs = { |
45 | | - get: function() { |
| 22 | + getGraph: function() { |
46 | 23 | return document.getElementById('embedded-graph').children[0]; |
47 | 24 | }, |
48 | 25 | fresh: function() { |
49 | 26 | 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(); |
57 | 28 |
|
58 | | - Tabs.getGraph = Tabs.get; |
| 29 | + if(graphDiv) anchor.removeChild(graphDiv); |
| 30 | + graphDiv = document.createElement('div'); |
| 31 | + anchor.appendChild(graphDiv); |
59 | 32 |
|
60 | | - var Themes = { |
61 | | - reTileLock: null |
| 33 | + return graphDiv; |
| 34 | + } |
62 | 35 | }; |
63 | | - </script> |
64 | | - |
| 36 | + </script> |
65 | 37 |
|
66 | 38 | </body> |
67 | 39 | </html> |
0 commit comments