Skip to main content
/*Load Program Listings*/ if (window.location.hostname.indexOf("dev.cms") || window.location.hostname.indexOf("www-dev")) { var $domain = "www-dev"; } else { var $domain = "www"; } $.ajax({ url: 'https://www.athabascau.ca/scripts/university-relations/secondary/faculty-course-program-listings/faculty-program-listings.php', type: 'POST', data: { url: window.location.protocol + "//" + window.location.host + "/" + window.location.pathname.split('/')[1], faculty: "FB" }, success: function (response) { /* load results via ajax call from course-listing.php */ $("#listings-main-content").html(response); /* Get Icon sprite */ $.get('https://www.athabascau.ca/framework/v1/theme/icons/au_icons.svg?v=1.0.1', function(data) { var div = document.createElement('div'); div.setAttribute("aria-hidden", true); div.innerHTML = new XMLSerializer().serializeToString(data.documentElement); document.body.insertBefore(div, document.body.childNodes[0]); }); $.getScript("https://www.athabascau.ca/framework/v1/theme/js/secondary/faculty-cp-listings-min.js").done(function() { /* hide #listing loader now that everything is loaded */ $("#listings-loader").hide(); /* Fade in results */ setTimeout(function(){ $("#listings-main-content").fadeIn(); }, 300); }); }, error: function (e) { console.log(e); } });