Skip to main content
/*Site Search 360*/ (function () { const urlParams = new URLSearchParams(window.location.search); const myParam = urlParams.get('ss360Query'); window.ss360Config = { "suggestions": { "showImages": false }, "style": { "themeColor": '#1b365d', "searchBox": { "text": { "color": "#39414e", "size": "16px" }, "background": { "color": "#ffffff" }, "border": { "color": "#d3d8e6", "radius": "0px" }, "padding": "8px", }, "loaderType": "skeleton", "animationSpeed": "250" }, "searchBox": { "injectTo": "header", "injectPosition": "pre", "placeholder": "Start your search. Using quotes: \"your search\" will show only exact matches.", "selector": "#search-box", "searchButton": "#search-button", "searchButtonLabel": "Search" }, "results": { "embedConfig": { "contentBlock": "#embedSearch", "url": "https://www.athabascau.ca/search/index.html" }, "integrationType": "embed", "group": "false", "navigationBackScrollOffset" : -90 }, "queryTerm": { "highlightColor": "#ffe16f", "highlightMatchedContent": true, "tokenize": true }, "contentGroups": { "exclude": [ "Ask AU" ], "ignoreOther": false }, "layout": { "desktop": { "showImages": true, "showDataPoints": false, "showUrl": true }, "mobile": { "showImages": false, "showDataPoints": false, "showUrl": true }, "navigation": { "showAllResultsTab": true, "preventDropdown": true } }, "filters": { "enabled": true, "position": 'left', "label": "Filter", "showQuickDelete": true, "showCounts": true, "deleteAllLabel": 'Reset All', "clearGroupLabel": "Reset", "multiSelectSearchThreshold": 100, "multiSelectShowMoreThreshold": 15 }, "smart404": { "identifier": 'Page Not Found', "resultSelector": '#ss360-404', "caption": 'We couldn\'t find what you were looking for but these results might help:' }, "callbacks": { "postSearch": function() { $(".ss360-suggests__link.ss360-ac-c").each(function(){ let replaceChar = $(this).text().replace(/-/g, " ").replace(/_/g, " ").replace(myParam, '' + myParam + ''); $(this).html(replaceChar); if ($(this).attr("href").indexOf(".pdf") != -1) { $(this).addClass("pdf-link"); } if ($(this).attr("href").indexOf(".docx") != -1) { $(this).addClass("word-link"); } }); }, "moreResults": function() { $(".ss360-suggests__link.ss360-ac-c").each(function(){ let replaceChar = $(this).text().replace(/-/g, " ").replace(/_/g, " ").replace(myParam, '' + myParam + ''); $(this).html(replaceChar); if ($(this).attr("href").indexOf(".pdf") != -1) { $(this).addClass("pdf-link"); } if ($(this).attr("href").indexOf(".docx") != -1) { $(this).addClass("word-link"); } }); }, "filterRendered": function() { const WRAPPER_ID = "ss360-exact-match"; const WRAPPER_SELECTOR = "#" + WRAPPER_ID; const params = new URLSearchParams(document.location.search); const query = params.get("ss360Query"); if (!query || (query.startsWith('"') && query.endsWith('"'))) { if (document.querySelector(WRAPPER_SELECTOR)) { document.querySelector(WRAPPER_SELECTOR).style.display='none'; } } else { if (!document.querySelector(WRAPPER_SELECTOR)) { let c = document.querySelector("#ss360-search-result-heading"); const section = document.createElement("section"); section.setAttribute('class', 'ss360-n-section ss360-filter__group ss360-multiselect-filter ss360-multiselect-filter--left ss360-filter__group--active ss360-filter__group--mounted'); const button = document.createElement("button"); button.setAttribute('class','btn btn-primary btn-md exact-match'); button.innerText = "Show only exact matches"; section.setAttribute('id', WRAPPER_ID); section.append(button); c.append(section); button.addEventListener('click', () => { console.log("listener"); const queryWithQuotes = '"'+query+'"'; SS360.showResults(queryWithQuotes); }); } else { document.querySelector(WRAPPER_SELECTOR).style.display='block'; } } } }, "siteId": "www.athabascau.ca", }; var e = document.createElement("script"); e.src = "https://cdn.sitesearch360.com/v14/sitesearch360-v14.frozen.b7f180e4cf21d908ac93a7c28ebb001a.js"; e.setAttribute("defer", "defer"); document.getElementsByTagName("body")[0].appendChild(e); })();