'+ this["text"];}var serviceStatus = "";var currentService = ""; var hashtags = this["entities"]["hashtags"];var currentHash; $.each(hashtags, function () { currentHash = this["text"]; if (itsServices.indexOf(currentHash)> -1) {currentService = currentHash; var index = itsServices.indexOf(currentService);if (index > -1) { itsServices.splice(index, 1); //remove the service since we had a match}} if (currentHash.toLowerCase() === "green" || currentHash.toLowerCase() === "red" || currentHash.toLowerCase() === "yellow" ) { serviceStatus = this["text"].toLowerCase(); if((currentService!="") && (serviceStatus!="")){ $("#"+currentService).removeClass("green"); $("#"+currentService).addClass(serviceStatus); } } }); if((currentService!="") && (serviceStatus!="") && (showMessage)){$("#"+currentService+ " div.serviceMessage").html(serviceMessage);$("#"+currentService+ " div.moreInfo").show(); }}); } });};updateServices();setInterval(updateServices, 100000);
Green = functioning normally
Yellow = minor issue
Red = major issue