index.html 728 B

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