Skip to main content
/* Single award */ function getQuery() { var search = location.search.substring(1); return JSON.parse('{"' + decodeURI(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}') } $.ajax({ url: 'https://www.athabascau.ca/scripts/student-academic-services/depts/otr/student-awards/index.php', type: 'POST', data: getQuery(), success: function (response) { /* load results via ajax call */ $("#award-single .container").html(response); /* hide loader now that everything is loaded */ $("#listings-loader").hide(); /* Fade in results */ setTimeout(function(){ $("#award-single").fadeIn(); }, 500); var headings = [ 'Conditions of Eligibility', 'Conditions of Eligibility:', 'Description of Award', 'Description of the Award', ]; $.each(headings, function (index, value) { $("p:contains(" + value + ")").html(function (_, html) { var regex = new RegExp(value, 'g'); return html.replace(regex, '

' + value + '

'); $(this).parent("p").unwrap(); }); }); }, error: function (e) { console.log(e); } });