25 lines
766 B
HTML
25 lines
766 B
HTML
{% extends "base.html" %}
|
|
{% block customscript %}
|
|
<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="/list"
|
|
});
|
|
socket.on("finished", function(data){
|
|
alert(data)
|
|
window.location="/list"
|
|
});
|
|
</script>
|
|
{% endblock %}
|