/** * Created by JetBrains WebStorm. * User: D60NXF * Date: 11-10-9 * Time: 上午10:51 * To change this template use File | Settings | File Templates. */ function QueryString(fieldName) { var urlString = document.location.search; if(urlString != null) { var typeQu = fieldName+"="; var typeQuStart = urlString.indexOf(typeQu); if(typeQuStart != -1) { // var paramsUrl = urlString.substring(urlEnd+typeQu.length); var paramsUrl = urlString.substring(typeQuStart+typeQu.length); var isEnd = paramsUrl.indexOf('&'); if(isEnd != -1) { return paramsUrl.substring(0, isEnd); } else { return paramsUrl; } } else { return null; } } else { return null; } } function submitResult() { // var val; var result; result = QueryString("result"); if(result != null) { //val = result.split('='); if(result != "0") { window.location.href = "pswcheck.html"; } else { ; } } } function loadHeaderhtml(){ document.getElementById("Header").innerHTML = ""+ "
"+ "
"+ "
"+ "
"+ "
"; } function displaynetstatus(){ $.getJSON('./json/get_bar_info', function(data){ var val = ""; val = data.gnet.value; if(val == 1) { document.getElementById("g3").style.display = "block"; } else { document.getElementById("g3").style.display = "none"; } val = data.network.value; if(val == 1) { document.getElementById("ie").style.display = "block"; } else { document.getElementById("ie").style.display = "none"; } val = data.wifi.value; if(val == 1) { document.getElementById("wifi").style.display = "block"; } else { document.getElementById("wifi").style.display = "none"; } }); } function writeInfoEdit() { document.getElementById("infoedit").innerHTML = "

Basic Setting

"+ ""; }