| function updateObserverStatus() { |
| console.log("fetching observer status url " + url); |
| success: function(newData) { |
| if (newData.health==":-)") { |
| html = '<span style="margin-left: 16px;" title="last observer run time = ' + Math.floor(newData.last_duration) + ' seconds"><img src="/static/img/green-cloud.gif" width=16 height=16></span>'; |
| html = '<span style="margin-left: 16px;" title="observer is offline"><img src="/static/img/red-cloud.gif" width=16 height=16></span>'; |
| $("#observer-status").html(html); |
| setTimeout(function() { updateObserverStatus(); }, 60000); |
| setTimeout(function() { updateObserverStatus(); }, 60000); |
| $( document ).ready(function() { |