This commit is contained in:
2022-01-12 14:14:42 +08:00
parent fd5859e21e
commit 96c9a58288
11 changed files with 158 additions and 34 deletions

View File

@ -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;