Skip to content

Commit

Permalink
add suspend button
Browse files Browse the repository at this point in the history
  • Loading branch information
creamlike1024 committed Jun 28, 2023
1 parent 56db433 commit 4cd1a55
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions template_log.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ <h2 id="收信日志">收信日志</h2>
document.getElementById('server-logs').scrollTop = document.getElementById('server-logs').scrollHeight
}
</script>
<button onclick="document.getElementById('server-logs').innerHTML = ''">清除收信日志</button>
<button onclick="document.getElementById('server-logs').innerHTML = ''">清空收信日志</button>
<button onclick="copyLogs('server-logs')">复制日志</button>
<button onclick="ws1.close(); alert('收信日志已暂停,如需重连请刷新页面')">暂停</button>
<button onclick="location.reload()">刷新页面</button>

<h2 id="送信日志">送信日志</h2>
<pre id="worker-logs" style="overflow-y: scroll; font-family: monospace; height: 30em"></pre>
Expand All @@ -27,8 +29,10 @@ <h2 id="送信日志">送信日志</h2>
document.getElementById('worker-logs').scrollTop = document.getElementById('worker-logs').scrollHeight
}
</script>
<button onclick="document.getElementById('worker-logs').innerHTML = ''">清除送信日志</button>
<button onclick="document.getElementById('worker-logs').innerHTML = ''">清空送信日志</button>
<button onclick="copyLogs('worker-logs')">复制日志</button>
<button onclick="ws2.close(); alert('送信日志已暂停,如需重连请刷新页面')">暂停</button>
<button onclick="location.reload()">刷新页面</button>

<!-- 复制按钮 -->
<script>
Expand All @@ -38,4 +42,4 @@ <h2 id="送信日志">送信日志</h2>
alert('复制成功!')
})
}
</script>
</script>

0 comments on commit 4cd1a55

Please sign in to comment.