Office of Information Technology
Clone of Office of Information Technology
Popular Links
There are no events to show at this time.
jQuery(document).ready(function() {
var weekday = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
jQuery.get('https://gh0qlffm0t9l.statuspage.io/api/v2/incidents.json', function(data) {
var shownCount = 0;
for (var i = 0; i < data.incidents.length; i++) {
if (shownCount >= 3) break;
var incident = data.incidents[i];
var status = incident.status;
if (status === "resolved" || status === "scheduled") {
continue; // Skip these
}
var date = new Date(incident.updated_at);
var formattedDate = weekday[date.getDay()] + ', ' + monthNames[date.getMonth()] + ' ' + date.getDate();
var link = incident.shortlink;
var title = incident.name;
var update = incident.incident_updates[0].body;
var icon;
switch (status) {
case "resolved": icon = 'check'; status = "Resolved"; break;
case "identified": icon = 'file-lines'; status = "Identified"; break;
case "investigating": icon = 'bell'; status = "Investigating"; break;
case "scheduled": icon = 'calendar-check'; status = "Scheduled"; break;
case "postmortem": icon = 'file-text'; status = "Postmortem"; break;
case "monitoring": icon = 'signal'; status = "Monitoring"; break;
case "major_outage": icon = 'ban'; status = "Major Outage"; break;
case "in_progress": icon = 'file-lines'; status = "In Progress"; break;
case "partial_outage": icon = 'circle-half-stroke'; status = "Partial Outage"; break;
default: icon = 'info-circle'; break;
}
var str = update.length > 150 ? update.substring(0, 150) + '... Read More' : update;
jQuery('.oit-status').append(
' '
);
shownCount++;
}
if (shownCount === 0) {
jQuery('.oit-status').append('Currently, there are no outages to report. ');
}
});
});
'+formattedDate+'
' +
'' +
' ' +
''+status+' - '+str+'