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