mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-02 22:59:00 +03:00
v8.4.0
This commit is contained in:
Binary file not shown.
@@ -9,7 +9,7 @@ function getbasepath(){
|
|||||||
{
|
{
|
||||||
// host = "http://192.168.2.219"; // jomjol interner test
|
// host = "http://192.168.2.219"; // jomjol interner test
|
||||||
// host = "http://192.168.178.46"; // jomjol interner test
|
// host = "http://192.168.178.46"; // jomjol interner test
|
||||||
host = "http://192.168.178.74"; // jomjol interner Real
|
host = "http://192.168.178.22"; // jomjol interner Real
|
||||||
// host = "http://192.168.43.191";
|
// host = "http://192.168.43.191";
|
||||||
// host = "."; // jomjol interner localhost
|
// host = "."; // jomjol interner localhost
|
||||||
|
|
||||||
|
|||||||
@@ -79,23 +79,23 @@ li.dropdown {
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#"onclick="document.getElementById('maincontent').src = '/wasserzaehler_roi.html';">Overview</a></li>
|
<li><a href="#"onclick="document.getElementById('maincontent').src = '/wasserzaehler_roi.html';">Overview</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="javascript:void(0)" class="dropbtn">Configuration</a>
|
<a href="javascript:void(0)" class="dropbtn">Configuration</a>
|
||||||
<div class="dropdown-content">
|
<div class="dropdown-content">
|
||||||
<a href="#"onclick="document.getElementById('maincontent').src = '/prevalue_set.html';">Set preValue</a>
|
<a href="#"onclick="document.getElementById('maincontent').src = '/prevalue_set.html';">Set preValue</a>
|
||||||
<a href="index_configure.html">Edit Configuration</a>
|
<a href="index_configure.html">Edit Configuration</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#"onclick="document.getElementById('maincontent').src = '/wasserzaehler.html?full';">Recognition</a></li>
|
<li><a href="#"onclick="document.getElementById('maincontent').src = '/wasserzaehler.html?full';">Recognition</a></li>
|
||||||
<li><a href="#"onclick="document.getElementById('maincontent').src = '/fileserver/';">File Server</a></li>
|
<li><a href="#"onclick="document.getElementById('maincontent').src = '/fileserver/';">File Server</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="javascript:void(0)" class="dropbtn">System</a>
|
<a href="javascript:void(0)" class="dropbtn">System</a>
|
||||||
<div class="dropdown-content">
|
<div class="dropdown-content">
|
||||||
<a href="#"onclick="document.getElementById('maincontent').src = '/ota_page.html';">OTA Update</a>
|
<a href="#"onclick="document.getElementById('maincontent').src = '/ota_page.html';">OTA Update</a>
|
||||||
<a href="#"onclick="document.getElementById('maincontent').src = '/fileserver/log/message/?readonly=true';">Log Viewer</a>
|
<a href="#"onclick="document.getElementById('maincontent').src = '/fileserver/log/message/?readonly=true';">Log Viewer</a>
|
||||||
<a href="#"onclick="document.getElementById('maincontent').src = '/reboot_page.html';">Reboot</a>
|
<a href="#"onclick="document.getElementById('maincontent').src = '/reboot_page.html';">Reboot</a>
|
||||||
<a href="#"onclick="document.getElementById('maincontent').src = '/info.html';">Info</a>
|
<a href="#"onclick="document.getElementById('maincontent').src = '/info.html';">Info</a>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
@@ -113,22 +113,31 @@ li.dropdown {
|
|||||||
|
|
||||||
|
|
||||||
function LoadHostname() {
|
function LoadHostname() {
|
||||||
_basepath = getbasepath();
|
_basepath = getbasepath();
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
|
||||||
try {
|
|
||||||
url = _basepath + '/version?type=Hostname';
|
|
||||||
xhttp.open("GET", url, false);
|
|
||||||
xhttp.send();
|
|
||||||
hostname = xhttp.responseText;
|
|
||||||
document.title = "jomjol - AI on the edge - " + hostname;
|
|
||||||
document.getElementById("id_title").innerHTML = "Digitizer - AI on the edge - " + hostname;
|
|
||||||
|
|
||||||
}
|
var xhttp = new XMLHttpRequest();
|
||||||
catch (error)
|
xhttp.addEventListener('load', function(event) {
|
||||||
{
|
if (xhttp.status >= 200 && xhttp.status < 300) {
|
||||||
|
hostname = xhttp.responseText;
|
||||||
|
document.title = "jomjol - AI on the edge - " + hostname;
|
||||||
|
document.getElementById("id_title").innerHTML = "Digitizer - AI on the edge - " + hostname;
|
||||||
|
} else {
|
||||||
|
console.warn(request.statusText, request.responseText);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// var xhttp = new XMLHttpRequest();
|
||||||
|
try {
|
||||||
|
url = _basepath + '/version?type=Hostname';
|
||||||
|
xhttp.open("GET", url, true);
|
||||||
|
xhttp.send();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (error)
|
||||||
|
{
|
||||||
// alert("Loading Hostname failed");
|
// alert("Loading Hostname failed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadHostname();
|
LoadHostname();
|
||||||
|
|||||||
Reference in New Issue
Block a user