Files
TowerOptoSifAndSpectral/html/javascript/config.js

41 lines
705 B
JavaScript
Raw Normal View History

2021-11-11 10:11:47 +08:00
function getConfigRentrun(reson)
{
var aa=JSON.parse(reson);
for (var obj in aa)
{
var temmp=document.getElementById(obj);
temmp.value=aa[obj];
if (obj=="GPS_North")
{
if (aa[obj]=="on")
{
temmp.checked=true;
}else {
temmp.checked=false;
}
}
}
}
2021-12-23 14:09:37 +08:00
function getDevinfoRetrun(retrun)
{
var div=document.getElementById('devinfo');
div.innerHTML=retrun;
init()
}
2021-11-11 10:11:47 +08:00
var datad;
function init()
{
httpget("/php/GetConfig.php",datad,getConfigRentrun)
2021-12-23 14:09:37 +08:00
}
function getinit()
{
httpget("/php/GetIniFile.php",datad,getDevinfoRetrun)
2021-11-11 10:11:47 +08:00
}
2021-12-23 14:09:37 +08:00
window.onload=getinit;