PageSourceSearch

https://safesmart.co.uk/wp-content/plugins/announcer-pro/includes/…/js/script-front.js?ver=6.4

js safesmart.co.uk collected 2026-10-04 15:58:01 UTC 3,314 bytes, 1 lines download raw bytes

1var ANCR_VC_Helpers={common:function(e,n,r){return"is"==n?e==r:"is_not"==n?e!=r:"contains"==n?e.includes(r):"not_contains"==n?!e.includes(r):"starts_with"==n?e.startsWith(r):"ends_with"==n?e.endsWith(r):"regex"==n?new RegExp(r).test(e):null},get_cookie:function(e){for(var n=e+"=",r=document.cookie.split(";"),t=0;t<r.length;t++){for(var o=r[t];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(n))return o.substring(n.length,o.length)}return null},get_url_parameter:function(e){var n=n=window.location.href,r=(e=e.replace(/[\[\]]/g,"\\$&"),new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(n));return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null},is_mobile:function(){return/Mobi|Android/i.test(navigator.userAgent)}},ANCR_VC_Rules={referer:function(e,n){return ANCR_VC_Helpers.common(document.referrer,e,n)},cookie:function(e,n){var r;if(n.includes("=")){var t=n.split("=");r=ANCR_VC_Helpers.get_cookie(t[0])==t[1]}else{r=null!=ANCR_VC_Helpers.get_cookie(n)}return"exists"==e?r:"not_exists"==e?!r:void 0},url:function(e,n){return ANCR_VC_Helpers.common(window.location.href,e,n)},query_params:function(e,n){var r;if(n.includes("=")){var t=n.split("=");r=ANCR_VC_Helpers.get_url_parameter(t[0])==t[1]}else{r=null!=ANCR_VC_Helpers.get_url_parameter(n)}return"exists"==e?r:"not_exists"==e?!r:void 0},browser:function(e,n){var r=-1!=navigator.userAgent.indexOf(n);return"is"==e?r:"is_not"==e?!r:void 0},operating_system:function(e,n){var r=-1!=navigator.userAgent.indexOf(n);return"is"==e?r:"is_not"==e?!r:void 0},device_type:function(e,n){var r=!0;return"desktop"==n&&ANCR_VC_Helpers.is_mobile()&&(r=!1),"mobile"!=n||ANCR_VC_Helpers.is_mobile()||(r=!1),"is"==e?r:"is_not"==e?!r:void 0},login_status:function(e,n){return!window.ancr_wp_props||("1"==window.ancr_wp_props.is_user_logged_in&&"logged in"==n||""==window.ancr_wp_props.is_user_logged_in&&"logged out"==n)},login_count:function(e,n){if(!window.ancr_wp_props)return!0;if("0"==window.ancr_wp_props.user_id)return!1;var r=ANCR_VC_Helpers.get_cookie("ancr_user_logins_"+window.ancr_wp_props.user_id);return null==r&&(r=0),"greater_than"==e&&r>n||("lesser_than"==e&&r<n||"equal_to"==e&&r==n)},site_view_count:function(e,n){if(!window.ancr_wp_props)return!0;var r=ANCR_VC_Helpers.get_cookie("ancr_site_views");if(null==r)return!1;var t=r.split("-");if(2!=t.length)return!1;var o=t[0];return"greater_than"==e&&o>n||("lesser_than"==e&&o<n||"equal_to"==e&&o==n)},user_role:function(e,n){if(!window.ancr_wp_props)return!0;var r=window.ancr_wp_props.user_roles.includes(n);return"is"==e?r:!r},user_locale:function(e,n){var r=Intl.DateTimeFormat().resolvedOptions().locale.toLowerCase().includes(n.trim());return"contains"==e?r:!r},timezone:function(e,n){var r=(Intl.DateTimeFormat().resolvedOptions().timeZone+" "+(new Date).toLocaleDateString("en-US",{day:"2-digit",timeZoneName:"long"}).slice(4)+" "+(new Date).toLocaleDateString("en-US",{day:"2-digit",timeZoneName:"short"}).slice(4)).toLowerCase().includes(n.trim());return"contains"==e?r:!r},custom_function:function(e,n){return"function"==typeof window[n]&&window[n]()}};function ANCR_VC_Check_Rules(e){for(var n=!1,r=0;r<e.length;r++){for(var t=e[r],o=!0,i=0;i<t.length;i++){var s=t[i],_=s[0],u=s[1],a=s[2];if("function"==typeof ANCR_VC_Rules[_]){var l=ANCR_VC_Rules[_](u,a);o=o&&l}}n=o||n}return n}

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.