mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 03:56:57 +03:00
22 lines
589 B
JavaScript
22 lines
589 B
JavaScript
|
|
function getbasepath(){
|
|
var host = window.location.hostname;
|
|
if (host == "127.0.0.1")
|
|
{
|
|
host = "http://192.168.178.26"; // jomjol interner test
|
|
// host = "http://192.168.178.22"; // jomjol interner Real
|
|
// host = "."; // jomjol interner localhost
|
|
}
|
|
else
|
|
{
|
|
host = "http://" + host;
|
|
}
|
|
return host;
|
|
}
|
|
|
|
function UpdatePage(){
|
|
var zw = location.href;
|
|
zw = zw.substr(0, zw.indexOf("?"));
|
|
window.location = zw + '?session=' + Math.floor((Math.random() * 1000000) + 1);
|
|
}
|