-
Notifications
You must be signed in to change notification settings - Fork 10
/
bm.html
28 lines (26 loc) · 803 Bytes
/
bm.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html lang="de" dir="ltr">
<html>
<head>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<title>BotManager</title>
</head>
<body style="background-color: #212121; color:white;">
<div class="container">
<h1 class="text-white">BotManager</h1><br>
<button class="btn btn-primary" onclick="refreshLog();">Refresh Log</button>
</div>
<div class="container-fluid" id="log">
Loading...
</div>
<script>
function refreshLog() {
window.BMWindow.refresh();
}
refreshLog();
window.BMWindow.receive("BMLog", (log) => {
document.getElementById("log").innerHTML = "<pre>"+log+"</pre>";
});
</script>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>