📄 commands.js
字号:
<? if eq 1 1 '<script language="JavaScript">' '' ?>
<? if eq 1 1 '<? include ../html/js/jsl.js ?>' '<script language="JavaScript" src="../html/js/jsl.js"></script>' ?>
<? if eq 1 1 '<? include ../html/js/error.js ?>' '<script language="JavaScript" src="../html/js/error.js"></script>' ?>
<? if eq 1 1 '' '<script language="JavaScript">' ?>
function uiDoOnLoad()
{
return true;
}
function uiRestart()
{
if(confirm("RESTART? If you have not done a \"Save All Changes\" command, you will lose any changes you have made."))
{
document.getElementById("uiPostVarName").name = "logic:command/reboot";
jslFormSubmit("uiPostForm");
setTimeout("uiDoNextLoc()", 2000);
}
}
function uiRestartAP()
{
if(confirm("RESTART AP? This will restart AP with the new configuration."))
{
document.getElementById("uiPostVarName").name = "ap:status/cli_reboot";
document.getElementById("uiPostForm").submit();
}
}
var maxchars = 10;
var delay_time = 3000; // msecs
var charcount = 0;
function uiDoNextLoc()
{
if (charcount < maxchars)
{
charcount ++;
status = " Progress: " + Math.floor(charcount/maxchars*100) + '%';
setTimeout("uiDoNextLoc()",delay_time);
}
else
{
top.location.href="/cgi-bin/webcm?nextpage=../index.htm";
}
}
function uiRestoreFactoryDefaults()
{
if(confirm("Are you sure you want to restore factory defaults?") )
{
document.getElementById("uiPostVarName").name = "logic:command/defaults";
document.getElementById("uiPostVarName").value = "../gateway/commands/saveconfig.html";
document.getElementById("uiPostForm").submit();
setTimeout("uiDoNextLoc()", 2000);
}
}
function uiSaveAll()
{
document.getElementById("uiPostVarName").name = "logic:command/save";
document.getElementById("uiPostVarName").value = "../gateway/commands/saveconfig.html";
document.getElementById("uiPostForm").submit();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -