1function GetParameterValues(param) { 2 let reg = new RegExp("[?&]" + param + "=([^&#]*)", "i") 3 let queryString = reg.exec(window.location.href) 4 return queryString ? queryString[1] : null 5} 6 7function GetParameterByName(name, url) { 8 name = name.replace(/[\[\]]/g, '\\$&'); 9 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), 10 results = regex.exec(url); 11 if (!results) return null; 12 if (!results[2]) return ''; 13 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 14} 15 16function SetCookie(cookieName, cookieValue, cookieExpiryDate) { 17 if (IsCookieAccepted()) { 18 if (cookieExpiryDate) { 19 $.cookie(cookieName, cookieValue, { expires: cookieExpiryDate, path: '/' }); 20 } 21 else { 22 $.cookie(cookieName, cookieValue, { path: '/' }); 23 } 24 } 25} 26 27function GetCookie(cookieName) { 28 // YRI: This method doesn't store new cookies, it only accesses existing cookies. GDPR allows this. 29 return $.cookie(cookieName); 30} 31 32function ShowModalOnLoad(id) { 33 $('#' + id).appendTo("body").modal('show'); 34} 35 36function CloseModal(id) { 37 $('#' + id).modal('hide'); 38} 39 40function GetCookieConsentType() { 41 return GetCookie('cookieConsent') 42} 43 44function SetCookieConsentType(type) { 45 // YRI: This is a special case, we can't use the `SetCookie()` helper as it depends on the `cookieConsent` cookie already existing. 46 $.cookie('cookieConsent', type, { path: '/' }); 47} 48 49function IsCookieAccepted() { 50 return "all" == GetCookie('cookieConsent'); 51}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.