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://eir6fexp0m.execute-api.us-west-2.amazonaws.com/Prod/GetAwards', type: 'GET', 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(); }); }); $("p:contains(awardsinfo@athabascau.ca)").html(function (_, html) { return html.replace('awardsinfo@athabascau.ca', 'awardsinfo@athabascau.ca'); }); }, error: function (e) { console.log(e); } });