www-thermferm/js/index.js

changeset 305
fc2fae36f4ba
parent 256
8c52b09bdecc
child 693
3518c07737d8
equal deleted inserted replaced
304:c1be51c076c9 305:fc2fae36f4ba
1 /***************************************************************************** 1 /*****************************************************************************
2 * Copyright (C) 2014 2 * Copyright (C) 2014-2015
3 * 3 *
4 * Michiel Broek <mbroek at mbse dot eu> 4 * Michiel Broek <mbroek at mbse dot eu>
5 * 5 *
6 * This file is part of ThermFerm 6 * This file is part of ThermFerm
7 * 7 *
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 }, 60000); 30 }, 60000);
31 // Create jqxTabs. 31 // Create jqxTabs.
32 $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: 'top', theme: 'ui-redmond'}); 32 var index = $.jqx.cookie.cookie("jqxTabs_jqxWidget");
33 if (undefined == index) index = 0;
34 $("#jqxTabs").jqxTabs({ selectedItem: index, width: 978, height: 428, position: 'top', theme: 'ui-redmond'});
35 $("#jqxTabs").on('selected', function (event) {
36 $.jqx.cookie.cookie("jqxTabs_jqxWidget", event.args.item);
37 });
33 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' }); 38 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' });
34 }); 39 });
35 40

mercurial