index.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>MTU Calculator</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="robots" content="index, follow">
  8. <link rel="stylesheet" href="assets/css/style.css">
  9. <!-- <link rel="stylesheet" href="https://mk16.de/assets/css/normalize.css" integrity="sha384-M86HUGbBFILBBZ9ykMAbT3nVb0+2C7yZlF8X2CiKNpDOQjKroMJqIeGZ/Le8N2Qp"> -->
  10. </head>
  11. <body>
  12. <noscript>
  13. <div class="noscript">
  14. <p><b>Warning: There is no JavaScript available. Please enable JavaScript or use a JavaScript-compatible browser!</b></p>
  15. <p>JavaScript is needed to make a website dynamic without having to reload it. This page dynamically displays content visually and performs calculations dynamically. Therefore, this website requires JavaScript.</p>
  16. </div>
  17. </noscript>
  18. <div class="nocss">
  19. <b>Warning: There is no CSS available. Please enable CSS or use CSS-compatible browser!</b>
  20. </div>
  21. <div class="table">
  22. <div class="tr">
  23. <div class="td">
  24. <!-- Begin Sidebar -->
  25. <div id="sidebar"><ul id="sidebar_list"></ul></div>
  26. <!-- End Sidebar -->
  27. </div>
  28. <div class="td">
  29. <div class="table">
  30. <div class="tr"><div class="td">
  31. <!-- Begin Visualization -->
  32. <div id="visualization">
  33. <div class="visualization_block">
  34. <span>GRE</span>
  35. </div>
  36. </div>
  37. <!-- End Visualization -->
  38. </div></div>
  39. <div class="tr"><div class="td">
  40. <!-- Begin Listing -->
  41. <div id="listing"><ul id="listing_list"></ul></div>
  42. <!-- End Listing -->
  43. </div></div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <!-- Include JavaScript -->
  49. <script src="assets/js/jquery-3.7.0.min.js"></script>
  50. <script src="assets/js/utilities.js"></script>
  51. <script src="assets/js/encapsulations.js"></script>
  52. <script src="assets/js/visualization.js"></script>
  53. <script src="assets/js/sidebar.js"></script>
  54. <script src="assets/js/listing.js"></script>
  55. <script>
  56. create_encapsulation('Ethernet');
  57. create_encapsulation('IPv6');
  58. create_encapsulation('Ethernet', {"VLAN": "802.1q VLAN"});
  59. recalulates_mtus();
  60. redraw_visualization();
  61. redraw_listing();
  62. console.log(calculate_mtu(encapsulations[2]));
  63. </script>
  64. </body>
  65. </html>