Skip to main content
/*Site Search 360*/ var urlParams = new URLSearchParams(window.location.search); if (urlParams.has('set_as_sitesearch') == true) { var $group = "under " + urlParams.get('set_as_sitesearch'), $button = ''; } else { var $group = "", $button = ''; } window.ss360Config = { siteId: "www.athabascau.ca", searchBox: { selector: '#search-box', searchButton: "#ss360SearchButton", placeholder: "Start your search", searchButton: '#search-button', searchButtonLabel: 'Search' }, suggestions: { show: true }, style: { themeColor: '#1b365d', searchBox: { text: { color: "#39414e", size: "16px" }, background: { color: "#ffffff" }, border: { color: "#d3d8e6", radius: "0px" }, padding: "8px", }, loaderType: "skeleton", animationSpeed: 250 }, tracking: { providers: [ "GA", "GTM" ] }, contentGroups: { include: [urlParams.get('set_as_sitesearch')] }, results: { embedConfig: { 'url': 'https://www.athabascau.ca/search/index.html', contentBlock: "#embedSearch" }, caption: "Found #COUNT# search results for #QUERY# " + $group + " " + $button, noResultsText: 'Sorry, we did not find any matches for your query.', group: false, showContentGroupHeadings: false, num: 100, highlightQueryTerms: true, moreResultsButton: "Show more results", queryCorrectionText: "Did you mean \"#CORRECTION#\"?", lazyLoadImages: true, moreResultsPagingSize: 20, highlightQueryTerms: true, placeholderImage: null }, smart404: { /* The caption of the search results. */ caption: 'These links might be useful', /* The string in the title that identifies the page as a 404 page. */ identifier: 'Page Not Found : Athabasca University', resultSelector: '#ss360-404' }, voiceSearch: { enabled: false }, layout: { /*below 992px*/ mobile: { showUrl: true }, /*992 px and larger*/ desktop: { showUrl: true }, }, navigation: { type: 'scroll' }, filters: { "enabled": false }, callbacks: { postSearch: function () { /*unwrap a tag from caption*/ unwrap(document.querySelector('.ss360-layer__heading-anchor')); } } }; /*search all website function if current search is limited to a specfic site*/ function searchAll() { window.location = window.location.href.split('&')[0]; } /*function to unwrap tags from elements*/ function unwrap(wrapper) { var docFrag = document.createDocumentFragment(); while (wrapper.firstChild) { var child = wrapper.removeChild(wrapper.firstChild); docFrag.appendChild(child); } wrapper.parentNode.replaceChild(docFrag, wrapper); } var e=document.createElement("script"); e.type="text/javascript"; e.defer=!0; e.src="https://cdn.sitesearch360.com/v14/sitesearch360-v14.min.js"; document.getElementsByTagName("body")[0].appendChild(e);