Skip to main content
/*Load Current Time*/ $.ajax({ url: 'https://www.athabascau.ca/scripts/university-relations/mainsite/contact/current-time.php', type: 'POST', data: {}, success: function (response) { $("#athabasca-current-time").html(response); $.getScript("https://www.athabascau.ca/framework/v1/theme/js/vendor/jquery-autocomplete-min.js"); }, error: function (e) { console.log(e); } }); /* /*Load System Status Image*/ $.ajax({ url: 'https://itss.athabascau.ca/systemstatus/statusimg.inc.php', type: 'POST', data: {}, success: function (response) { $("#itss").html(response); }, error: function (e) { console.log(e); } }); /* Contact page pilot ITSS status script =====================================================================*/ $( document ).ready(function() { var $issueName = $('#itss a img').prop('alt'), $systemMessage = $('.system .msg'); if ($issueName == "System Status: yellow") { $systemMessage.addClass('warning').find('p').append('IT System Status: Issue or Alert - A system is currently unavailable or undergoing maintenance. [More Details]'); } else if ($issueName == "System Status: red") { $systemMessage.addClass('error').find('p').append('IT System Status: Warning - Our automated monitoring has detected potential issues/outages with one or more systems. [More Details]'); } else if ($issueName == "System Status: success") { $systemMessage.addClass('success').find('p').append('IT System Status: Optimal - There are currently no known issues or outages.'); } else if ($issueName == "System Status: warning") { $systemMessage.addClass('warning').find('p').append('IT System Status: Potential Issue: - We have detected potential issues/outages with one or more systems. [More Details]'); } else { $systemMessage.addClass('info').find('p').append('IT System Status: No system information available. [More Details]'); } console.log($issueName); });