mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 03:49:42 +08:00
config
This commit is contained in:
@ -23,7 +23,10 @@ function getDevinfoRetrun(retrun)
|
||||
div.innerHTML=retrun;
|
||||
init()
|
||||
}
|
||||
|
||||
function getstataRetrun(retrun){
|
||||
var div=document.getElementById('statid');
|
||||
div.innerHTML=retrun;
|
||||
}
|
||||
|
||||
|
||||
var datad;
|
||||
@ -36,10 +39,23 @@ function init()
|
||||
function getinit()
|
||||
{
|
||||
httpget("/php/GetIniFile.php",datad,getDevinfoRetrun)
|
||||
httpget("/php/GetSata.php",datad,getstataRetrun)
|
||||
}
|
||||
|
||||
function rebootclicked()
|
||||
{
|
||||
alert("reboot")
|
||||
|
||||
httpget("/php/reboot.php",datad,getrebootRentrun)
|
||||
var div=document.getElementById('statid');
|
||||
div.innerHTML="";
|
||||
|
||||
}
|
||||
function getrebootRentrun(ret)
|
||||
{
|
||||
alert(ret)
|
||||
|
||||
setTimeout(() => {
|
||||
location.reload()
|
||||
}, 100);
|
||||
}
|
||||
window.onload=getinit;
|
||||
|
Reference in New Issue
Block a user