You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. body {
  6. background-color: black;
  7. }
  8. #globe, #traceout {
  9. display: inline-block;
  10. vertical-align: top;
  11. }
  12. #cmdout {
  13. color: white;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <!--<?php include "php/traceroute.php" ?>-->
  19. <div id="globe">
  20. <!-- This is where our renderer will attach the scene -->
  21. <canvas></canvas>
  22. </div>
  23. <script src="js/points.js"></script>
  24. <script src="js/tracepoints.js"></script>
  25. <script src="js/external/three.js"></script>
  26. <script src="js/external/orbital-controls.js"></script>
  27. <script src="js/animations.js"></script>
  28. <div id="traceout">
  29. <h2>Traceroute from Adelaide, SA to google.com</h2>
  30. <!--
  31. <button id="btnrun">Run Traceroute to google.com</button>
  32. <p id="cmdout"></p>
  33. -->
  34. </div>
  35. <!--
  36. <script>
  37. init();
  38. var runTraceroute = function() {
  39. var rawout = '<?php traceroute(); raw_output() ?>';
  40. var tracepoints = '<?php json_output(); ?>';
  41. document.getElementById('cmdout').innerHTML += rawout;
  42. init.addTracePoints(JSON.parse(tracepoints));
  43. document.getElementById("btnrun").style.display = "none";
  44. };
  45. document.getElementById ("btnrun").addEventListener ("click", runTraceroute, false);
  46. </script>
  47. -->
  48. </body>
  49. </html>