matekasse/Website/templates/change.html

26 lines
766 B
HTML
Raw Normal View History

2024-02-21 22:02:07 +01:00
{% extends "base.html" %}
{% block customscript %}
2023-07-28 23:30:45 +02:00
<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)
2024-03-19 23:54:51 +01:00
window.location="/list"
2023-07-28 23:30:45 +02:00
});
socket.on("finished", function(data){
alert(data)
2024-03-19 23:54:51 +01:00
window.location="/list"
2023-07-28 23:30:45 +02:00
});
</script>
2024-03-19 23:54:51 +01:00
{% endblock %}