Move all Javascript to static
This commit is contained in:
parent
a81d1211b1
commit
5c6121e630
2 changed files with 21 additions and 22 deletions
|
@ -90,13 +90,4 @@
|
||||||
|
|
||||||
<script src="/js/devices.js"></script>
|
<script src="/js/devices.js"></script>
|
||||||
|
|
||||||
<script>
|
|
||||||
showdevices();
|
|
||||||
{% for device in devices %}
|
|
||||||
updateStatus({{ device.id }});
|
|
||||||
setInterval(updateStatus, 10000, {{ device.id }});
|
|
||||||
{% endfor %}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -82,3 +82,11 @@ function showusers() {
|
||||||
$("#wifipart").hide();
|
$("#wifipart").hide();
|
||||||
$("#userpart").show();
|
$("#userpart").show();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
showdevices();
|
||||||
|
|
||||||
|
$("div[id$='-indicator']").each(function() {
|
||||||
|
device_id = this.id.split("-")[0];
|
||||||
|
updateStatus(device_id);
|
||||||
|
setInterval(updateStatus, 10000, device_id);
|
||||||
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue