matekasse/Website/templates/removetag.html

26 lines
888 B
HTML
Raw Normal View History

2024-02-21 21:02:07 +00:00
{% extends "base.html" %}
{% block customscript %}
<script type="text/javascript" charset="utf-8">
2023-07-28 21:30:45 +00:00
var socket = io();
var user = {{ user }}
socket.on('connect', function() {
socket.emit('removetag', {data: user});
});
socket.on("busy", function(){
document.write('<p>the nfc reader is busy at the moment. Pleas Wait ...</p>')
socket.emit('addtag', {data: user})
});
socket.on("wait", function(){
document.write('<p>Pleas hold your tag on to the nfc reader</p>')
});
socket.on("error", function(data) {
alert(data)
window.location="http://matekasse.server.c3h/"
});
socket.on("finished", function(data){
alert(data)
window.location="http://matekasse.server.c3h/"
});
</script>
2024-02-21 21:02:07 +00:00
{% endblock %}