mirror of
https://github.com/ADElectronics/RTL00_WEB_VS.git
synced 2024-11-25 18:54:16 +00:00
34 lines
946 B
HTML
34 lines
946 B
HTML
|
<!DOCTYPE html>
|
||
|
<html><head>
|
||
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||
|
<title>RTL871X</title>
|
||
|
<link rel="stylesheet" href="/style.css">
|
||
|
<script src="/site.js"></script>
|
||
|
</head>
|
||
|
<body onload="allowAJAX=true;" onunload="allowAJAX=false;">
|
||
|
~inc:menu.inc~
|
||
|
<div class="content">
|
||
|
<h2 class="title">Test DeepSleep</h2>
|
||
|
<table class="form">
|
||
|
</tr>
|
||
|
<td class="label">DeepSleep Time(ms):</td>
|
||
|
<td><input type="text" id="ds_time" size="12" maxlength="10" value="3000"></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="label">DeepSleep Mode:</td>
|
||
|
<td class="left"><input type="button" onclick="DeepSleep()" value="Go" class="button"></td>
|
||
|
</tr>
|
||
|
</form>
|
||
|
</table>
|
||
|
</div>
|
||
|
~inc:footer.inc~
|
||
|
<script type="text/javascript">
|
||
|
function DeepSleep(){
|
||
|
var dstim = parseInt(document.getElementById('ds_time').value,10);
|
||
|
newAJAXCommand('/web.cgi?sys_dsleep=0x' + dstim.toString(16), null, 0);
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|
||
|
|