First Commit

This commit is contained in:
2023-09-12 22:52:05 +02:00
commit 1cf7f82eda
3 changed files with 97 additions and 0 deletions

17
templates/index.html Normal file
View File

@@ -0,0 +1,17 @@
<html>
<head>
<title>Hello Asso</title>
</head>
<body>
<div id="p">TEST</div>
<script>
const websocket = new WebSocket('ws://'+ location.host + '/notify');
websocket.addEventListener('message', ev => {
console.log(ev.data);
let div = document.createTextNode(ev.data);
document.body.append(div);
});
</script>
</body>
</html>