www-thermferm/js/index.js

changeset 256
8c52b09bdecc
parent 208
934d45d9751d
child 305
fc2fae36f4ba
equal deleted inserted replaced
255:fb930d1db5a6 256:8c52b09bdecc
25 setInterval(function(){ 25 setInterval(function(){
26 $.getJSON("getroom.php", function(data) { 26 $.getJSON("getroom.php", function(data) {
27 $("#room_temp").html(data.temperature); 27 $("#room_temp").html(data.temperature);
28 $("#room_hum").html(data.humidity); 28 $("#room_hum").html(data.humidity);
29 }); 29 });
30 }, 10000); 30 }, 60000);
31 // Create jqxTabs. 31 // Create jqxTabs.
32 $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: 'top', theme: 'ui-redmond'}); 32 $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: 'top', theme: 'ui-redmond'});
33 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' }); 33 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' });
34 }); 34 });
35 35

mercurial