/* This is the uncompressed version of the script in httpd-fs/sensordata.shtml */ var start, d = document; i = new Image(50,60); i.src = "spin.gif"; function load() { var img = d.getElementById("spin"); img.innerHTML = ' '; loadData(); } function loadData() { var r; try { r = new XMLHttpRequest(); } catch(e) { try { r = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { r = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { alert("Your browser does not support AJAX!"); return false; } } } r.onreadystatechange = function() { if(r.readyState == 1) { var img = d.getElementById("spin"); img.innerHTML = ''; } if(r.readyState == 4) { var img = d.getElementById("spin"); img.innerHTML = 'took ' + ((new Date()).getTime() - start.getTime()) / 1000 + ' seconds'; eval(r.responseText); } }; start = new Date(); r.open("GET", "/sensordata.shtml", true); r.send(null); } function e(el) { if(d.getElementById) { return d.getElementById(el); } if (d.all) { return d.all[el]; } } function s(el,n,max,text) { e(el).innerHTML = '
' + text + ' | ' + '' + ' | ' + ' |