1var FCLToast = (typeof FCLToast == "undefined" || !FCLToast) ? {} : FCLToast; 2 3//$(".toast").toast({"data-animation" : false}) 4 5FCLToast.defaultIcon = "/CoopCRSThemeStatic/themes/CoopCRSTheme/images/icons/white/Exclamation.svg"; 6 7$(document).ready(function() { 8 $('#fclToast').on('hidden.bs.toast', function () { 9 $(".js-toast").removeClass("fcl-toast-z-index"); 10 }); 11 12 $('#fclToast').on('shown.bs.toast', function () { 13 $(".js-toast").addClass("fcl-toast-z-index"); 14 }); 15}); 16 17FCLToast.setAndShow = (header = "", body = "") => { 18 $("#toastHeader").html(header); 19 $("#toastBody").html(body); 20 $(".toast").toast("show"); 21} 22 23/** 24 * Method to delay the notification being shown to the user until the next page loads. 25 * @param {*} toastType The type of the toast notification. This will map to an entry in the toastConsts file. 26 */ 27FCLToast.delayNotification = (toastType = "", iconOverride = "") => { 28 if (iconOverride.length > 0){ 29 FCLCookies.setCookie('toastIcon', iconOverri
29de) 30 } 31 FCLCookies.setCookie('toastMessage', toastType); 32} 33 34/** 35 * Method to show a delayed notification if one is set in the cookie. 36 */ 37FCLToast.showDelayedNotification = () => { 38 let toastParameter = FCLCookies.getCookie('toastMessage'); 39 if (toastParameter) { 40 let toastDetails = FCLconstants.notifications.find(t => t.id === toastParameter); 41 let iconPath = FCLCookies.getCookie('toastIcon'); 42 if (iconPath && iconPath.length > 0){ 43 document.cookie = 'toastIcon= ; expires=Thu, 01 Jan 1970 00:00:00 UTC;'; 44 $(".fcl-toast-icon").attr('src', iconPath); 45 } else { 46 $(".fcl-toast-icon").attr('src', FCLToast.defaultIcon); 47 48 } 49 if (toastDetails !== undefined) { 50 $("#toastHeader").html(toastDetails.title); 51 $("#toastBody").html(toastDetails.description); 52 $(".toast").toast("show"); 53 } 54 55 //clear the notification cookie 56 document.cookie = 'toastMessage= ; expires=Thu, 01 Jan 1970 00:00:00 UTC;'; 57 } 58}
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.