26 lines
No EOL
1.1 KiB
HTML
26 lines
No EOL
1.1 KiB
HTML
<!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 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>
|
|
</html> |