www-thermferm/js/index.js

changeset 208
934d45d9751d
parent 134
f05601490415
child 256
8c52b09bdecc
equal deleted inserted replaced
207:8d2ba4126519 208:934d45d9751d
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21 *****************************************************************************/ 21 *****************************************************************************/
22 22
23 23
24 $(document).ready(function () { 24 $(document).ready(function () {
25 setInterval(function(){
26 $.getJSON("getroom.php", function(data) {
27 $("#room_temp").html(data.temperature);
28 $("#room_hum").html(data.humidity);
29 });
30 }, 10000);
25 // Create jqxTabs. 31 // Create jqxTabs.
26 $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: 'top', theme: 'ui-redmond'}); 32 $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: 'top', theme: 'ui-redmond'});
27 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' }); 33 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' });
28 }); 34 });
29 35

mercurial