mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
display: reindent
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
1268e28a5d
commit
78a0cc300f
@ -1,20 +1,20 @@
|
|||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<script type="text/javascript" src="static/socket.io.slim.js"></script>
|
<script type="text/javascript" src="static/socket.io.slim.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port)
|
var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port)
|
||||||
socket.on('connect', function() {
|
socket.on('connect', function() {
|
||||||
socket.emit('connected');
|
socket.emit('connected');
|
||||||
});
|
});
|
||||||
socket.on('status', function(status) {
|
socket.on('status', function(status) {
|
||||||
$('#led').attr('src', status.led)
|
$('#led').attr('src', status.led)
|
||||||
$('#message').html(status.message)
|
$('#message').html(status.message)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user