index.html 728 Bytes
Newer Older
Ivan Bogatyy's avatar
Ivan Bogatyy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <script type="text/javascript" src="bundle.js" charset="utf-8"></script>
        <div id="foo" style="width: 100%; height: 100%; min-width: 600px; min-height: 700px;"></div>
        <!-- Some minimal JS for loading sample_master_state.json. In practice,
        clients will inline (codegen) the master trace JSON using IPython. -->
        <script type="text/javascript">
        var xhr = new XMLHttpRequest();
        xhr.open('GET', 'sample_master_state.json');
        xhr.onload = function() {
          visualizeToDiv(JSON.parse(xhr.responseText), "foo");
        };
        xhr.send();
        </script>
    </body>
</html>