index_configure.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="icon" href="favicon.ico" type="image/x-icon">
  5. <title>jomjol - AI on the edge</title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <style>
  9. .h_iframe iframe {width:995px;height:765px;}
  10. .h_iframe {width:995px;height:765px;}
  11. h1 {font-size: 2em; margin-block-end: 0.3em;}
  12. h2 {font-size: 1.5em;margin-block-start: 0.3em;}
  13. h3 {font-size: 1.2em;}
  14. p {font-size: 1em;}
  15. ul {
  16. list-style-type: none;
  17. margin: 0;
  18. padding: 0;
  19. overflow: hidden;
  20. background-color: #333;
  21. width:1000px;
  22. }
  23. li {
  24. float: left;
  25. font-family: arial;
  26. font-size: 18px;
  27. }
  28. li a, .dropbtn {
  29. display: inline-block;
  30. color: white;
  31. text-align: center;
  32. padding: 14px 16px;
  33. text-decoration: none;
  34. }
  35. li a:hover, .dropdown:hover .dropbtn {
  36. background-color: red;
  37. }
  38. li.dropdown {
  39. display: inline-block;
  40. }
  41. .dropdown-content {
  42. display: none;
  43. position: absolute;
  44. background-color: #f9f9f9;
  45. min-width: 160px;
  46. box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  47. z-index: 1;
  48. font-family: arial;
  49. }
  50. .dropdown-content a {
  51. color: black;
  52. padding: 12px 16px;
  53. text-decoration: none;
  54. display: block;
  55. text-align: left;
  56. }
  57. .dropdown-content a:hover {background-color: #f1f1f1;}
  58. .dropdown:hover .dropdown-content {
  59. display: block;
  60. }
  61. </style>
  62. <body style="font-family: arial">
  63. <table style="border: none">
  64. <tr><td style="padding-right: 10px;"><img src="favicon.ico"></td>
  65. <td><h1 id="id_title"> Digitizer - Configure</h1>
  66. <h2>An ESP32 all inclusive neural network recognition system for meter digitalization</h2>
  67. </td></tr>
  68. </table>
  69. <ul>
  70. <li aria-current="page"><a href="index.html">Main Page</a>
  71. <li><a href="#"onclick="document.getElementById('maincontent').src = 'edit_config_param.html';">Configuration</a></li>
  72. <li class="dropdown">
  73. <a href="javascript:void(0)" class="dropbtn">Alignment</a>
  74. <div class="dropdown-content">
  75. <a href="#"onclick="document.getElementById('maincontent').src = 'edit_reference.html';">Reference Image</a>
  76. <a href="#"onclick="document.getElementById('maincontent').src = 'edit_alignment.html';">Alignment Marks</a>
  77. </div>
  78. </li>
  79. <li class="dropdown">
  80. <a href="javascript:void(0)" class="dropbtn">Regions Of Interest (ROI)</a>
  81. <div class="dropdown-content">
  82. <a href="#"onclick="document.getElementById('maincontent').src = 'edit_digits.html';">Digital ROIs</a>
  83. <a href="#"onclick="document.getElementById('maincontent').src = 'edit_analog.html';">Analog ROIs</a>
  84. </div>
  85. </li>
  86. </ul>
  87. <p>
  88. <div class="h_iframe">
  89. <iframe width="1020px" height="650px" name="maincontent" id ="maincontent" src="edit_config_param.html" title="fileserver"></iframe>
  90. </div>
  91. <script type="text/javascript" src="./gethost.js"></script>
  92. <script type="text/javascript">
  93. var basepath = "http://192.168.178.22";
  94. function LoadHostname() {
  95. _basepath = getbasepath();
  96. var xhttp = new XMLHttpRequest();
  97. xhttp.addEventListener('load', function(event) {
  98. if (xhttp.status >= 200 && xhttp.status < 300) {
  99. hostname = xhttp.responseText;
  100. document.title = hostname + " - Configure";
  101. document.getElementById("id_title").innerHTML = "Configure - " + hostname;
  102. } else {
  103. console.warn(request.statusText, request.responseText);
  104. }
  105. });
  106. // var xhttp = new XMLHttpRequest();
  107. try {
  108. url = _basepath + '/version?type=Hostname';
  109. xhttp.open("GET", url, true);
  110. xhttp.send();
  111. }
  112. catch (error)
  113. {
  114. // alert("Loading Hostname failed");
  115. }
  116. }
  117. LoadHostname();
  118. </script>
  119. </body>
  120. </html>