1
0
Fork 0
forked from bton/matekasse
This commit is contained in:
2000-Trek 2023-05-31 20:33:45 +02:00
commit 77b504fe76
5 changed files with 205 additions and 0 deletions

26
templates/change.html Normal file
View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
<script type="text/javascript" charset="utf-8">
var socket = io();
var change = {{change}}
socket.on('connect', function() {
socket.emit('addtag', {data: user});
});
socket.on("besetzt", function(){
document.write('<p>besetzt</p>')
socket.emit('addtag', {data: user})
});
socket.on("wait", function(){
document.write('<p>wait</p>')
});
socket.on("error", function(data) {
alert(data)
window.location="http://localhost:5000/"
});
socket.on("finished", function(data){
alert(data)
window.location="http://localhost:5000/"
});
</script>
</html>