mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-11 20:48:16 +08:00
在网页上显示Log
This commit is contained in:
@@ -184,6 +184,12 @@
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="connect">
|
||||
<legend>System Log</legend>
|
||||
<button class="submit_bt" onclick="GetSysLog()">Refresh</button>
|
||||
<pre id="sys_log"></pre>
|
||||
</fieldset>
|
||||
|
||||
<p class="power_by">power by <a href="https://github.com/zogodo/zTC1" target="_blank">github/zTC1</a></p>
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -240,6 +246,8 @@ var info_mask = document.getElementById("mask");
|
||||
var info_gateway = document.getElementById("gateway");
|
||||
var uptime = document.getElementById("uptime");
|
||||
|
||||
var sys_log = document.getElementById("sys_log");
|
||||
|
||||
var mode = -1;
|
||||
var ap_name = "";
|
||||
var ap_pswd = "";
|
||||
@@ -418,6 +426,12 @@ function GetScanResult() {
|
||||
});
|
||||
}
|
||||
|
||||
function GetSysLog() {
|
||||
HttpGet("/log", function (re) {
|
||||
sys_log.innerHTML = re;
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user