diff options
Diffstat (limited to 'usr/local/www/javascript/index')
-rw-r--r-- | usr/local/www/javascript/index/sajax.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/local/www/javascript/index/sajax.js b/usr/local/www/javascript/index/sajax.js index 036b38d..9067b3f 100644 --- a/usr/local/www/javascript/index/sajax.js +++ b/usr/local/www/javascript/index/sajax.js @@ -27,11 +27,10 @@ function updateCPU(x) function updateTemp(x) { - if(document.getElementById("tempmeter")) { - document.getElementById("tempmeter").value = x + '%'; - - document.getElementById("tempwidtha").style.width = x + 'px'; - document.getElementById("tempwidthb").style.width = (100 - x) + 'px'; + if(document.getElementById("tempmeter") != null) { + document.getElementById("tempmeter").value = x + '%'; + document.getElementById("tempwidtha").style.width = x + 'px'; + document.getElementById("tempwidthb").style.width = (100 - x) + 'px'; } } |