2021-05-03 14:51:53 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang=en>
|
|
|
|
<head>
|
|
|
|
<meta charset=utf-8>
|
|
|
|
<title>schnutibox</title>
|
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
|
2021-05-14 09:48:45 +02:00
|
|
|
<link rel="stylesheet" href="/static/normalize.css">
|
|
|
|
<link rel="stylesheet" href="/static/milligram.css">
|
2021-05-03 14:51:53 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1>schnutibox</h1>
|
|
|
|
<h2>logs</h2>
|
|
|
|
<pre>
|
|
|
|
<code>
|
|
|
|
<div id="log"></div>
|
|
|
|
</code>
|
|
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
if(typeof(EventSource) !== "undefined") {
|
|
|
|
var source = new EventSource("/log");
|
|
|
|
source.onmessage = function(event) {
|
|
|
|
var j = JSON.parse(event.data);
|
2021-05-04 10:41:18 +02:00
|
|
|
if (j.hasOwnProperty('message')) {
|
|
|
|
document.getElementById("log").innerHTML += j.message + "<br>";
|
|
|
|
}
|
2021-05-03 14:51:53 +02:00
|
|
|
};
|
|
|
|
} else {
|
|
|
|
document.getElementById("log").innerHTML = "Sorry, your browser does not support server-sent events...";
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|