PageSourceSearch

https://cctvbuyersguide.com/wp-content/plugins/advanced-ads-pro/assets/js/advanced-ads-pro.min.js?ver=2.28.3

js cctvbuyersguide.com collected 2026-10-04 08:51:41 UTC 7,844 bytes, 1 lines download raw bytes

1!function(l){var m="advads_procfp",w="advanced_ads_ad_clicks",h=null,g=null;function k(e){try{return JSON.parse(e)}catch(e){return null}}l(document).on("advads-passive-cb-conditions",function(e,a){a.conditions.ad_clicks="check_ad_clicks",a.check_ad_clicks=function(e,a){var t;if(t=advads.cookie_exists(w+"_"+a.id)?k(t=advads.get_cookie(w+"_"+a.id)):t){var d,n=parseInt((new Date).getTime()/1e3);for(d in t)if("_"+e.expiration==d&&t[d].ttl>=n&&t[d].count>=parseInt(e.limit))return!1}return!0}});function a(){this.$elements={},this.currentIFrame=!1,this.focusLost=!1,this.wrappers=[".google-auto-placed"],this.attributes={"data-anchor-status":"displayed","data-vignette-loaded":"true"},this.lastClick=0,this.init()}a.prototype={constructor:a,init:function(){const d=this;let n;l(document).on("click","a[data-cfpa]",function(){d.onClick(parseInt(l(this).attr("data-cfpa")))}),l(window).on("blur",function(e){setTimeout(function(){if(!d.currentIFrame)for(let e=document.activeElement;e&&e!==this&&e!==document&&(d.currentIFrame=d.checkWrappers(e),!d.currentIFrame);e=e.parentNode);d.currentIFrame&&(d.onClick(d.currentIFrame),d.focusLost=!0,top.focus())},0)}),l(document).on("mouseenter","div[data-cfpa]",function(){var e=parseInt(l(this).attr("data-cfpa"));d.addElement(e)}),document.addEventListener("touchmove",function(){n=!0},!1),document.addEventListener("touchstart",function(){n=!1},!1),["click","touchend"].forEach(function(e){document.addEventListener(e,function(a){if(!(n||d.getTimestamp()-d.lastClick<1)){var t;for(let e=a.target;e&&e!==this&&e!==document;e=e.parentNode){if(t=d.checkWrappers(e)){d.onClick(t);break}if(e.hasAttribute("data-cfpa")&&e.hasAttribute("data-cfptl")){t=parseInt(e.getAttribute("data-cfpa"),10),d.onClick(t);break}}}})})},getTimestamp:function(){return Math.floor(Date.now()/1e3)},checkWrappers:function(d){for(let e=0,a=this.wrappers.length,t;e<a;e++)if(t=this.wrappers[e],d.matches&&d.matches(t))return".google-auto-placed"===t?"google-auto-placed":null;for(var[e,a]of Object.entries(this.attributes))if(d.hasAttribute(e)&&d.getAttribute(e)===a)return"google-auto-placed";return null},addElement:function(e){var a=!!(e=!1==e instanceof jQuery?l('div[data-cfpa="'+e+'"]').first():e).find("iframe").length;if(a||e.find("a").length){var t=parseInt(e.attr("data-cfpa"));if((this.$elements[t]=e).removeAttr("data-cfpa"),a?(e.find("iframe").first().attr({"data-cfpa":t}),e.attr("data-cfph")&&e.find("iframe").first().attr({"data-cfph":e.attr("data-cfph")})):(e.find("a").not(".advads-edit-button").first().attr({"data-cfpa":t}),e.attr("data-cfph")&&e.find("a").not(".advads-edit-button").first().attr({"data-cfph":e.attr("data-cfph")})),e.removeAttr("data-cfph"),advads.cookie_exists(w+"_"+t)){var d=advads.get_cookie(w+"_"+t);if(d=k(d)){var n,o=parseInt((new Date).getTime()/1e3),i=!1;for(n in d)if(d.hasOwnProperty(n)&&"exp"!=n&&d[n].ttl<o){for(var r=parseFloat(n.substr(1)),s=d[n].ttl;s<o;)s+=60*r*60;d[n].ttl=s,i=!(d[n].count=0)}i&&(a=new Date(d.exp),advads.set_cookie_sec(w+"_"+t,JSON.stringify(d,"false",!1),parseInt(a.getTime()/1e3),h,g))}}}},_banVisitor:function(){var e,a,t=new Date,d=new Date,d=(d.setTime(d.getTime()+24*advadsCfpInfo.cfpBan*60*60*1e3),(d.getTime()-t.getTime())/1e3);advads.set_cookie_sec("advads_pro_cfp_ban",1,d,h,g),document.querySelectorAll("[data-cfpw]:not([data-cfp-exclude])").forEach(function(e){e.remove()}),this.removeEmptyWrappers(),this.wrappers.forEach(function(e){jQuery(e).remove()});for([e,a]of Object.entries(this.attributes))jQuery("["+e+'="'+a+'"]').remove()},removeEmptyWrappers:function(){document.querySelectorAll("[data-cfptl]:not([data-cfpw])").forEach(function(e){e.querySelectorAll("[data-cfpw]").length||e.remove()})},onClick:function(e){var a=this,t=!1,d=!1;if(this.lastClick=this.getTimestamp(),"google-auto-placed"!==e&&l('[data-cfpa="'+e+'"]').attr("data-cfph")){advads.cookie_exists(w+"_"+e)&&(d=k(advads.get_cookie(w+"_"+e)));var n=k(l('[data-cfpa="'+e+'"]').attr("data-cfph"));if(d){var o=parseInt((new Date).getTime()/1e3,10),i=document.querySelectorAll('[data-cfpw="'+e+'"]');for(f in d)d.hasOwnProperty(f)&&"exp"!==f&&(d[f].count=parseInt(d[f].count,10)+1,d[f].ttl>=o)&&d[f].count>=parseInt(n[f],10)&&(i.forEach(function(e){e.remove()}),a.removeEmptyWrappers());var r=new Date,s=new Date(d.exp),c=parseInt((s.getTime()-r.getTime())/1e3);advads.set_cookie_sec(w+"_"+e,JSON.stringify(d,"false",!1),c,h,g)}else{var f,u={},p=0,v=new Date,r=new Date;for(f in n)f=f.substring(1),parseFloat(f)>p&&(p=parseFloat(f)),u["_"+f]={count:1,ttl:parseInt(r.getTime()/1e3+3600*parseFloat(f),10)};v.setTime(v.getTime()+60*p*60*1e3);var _="expires="+v.toUTCString(),c=parseInt((v.getTime()-r.getTime())/1e3);u.exp=_,advads.set_cookie_sec(w+"_"+e,JSON.stringify(u,"false",!1),c,h,g)}}"1"===advadsCfpInfo.cfpEnabled&&((t=advads.cookie_exists(m+"_"+e)?k(advads.get_cookie(m+"_"+e)):t)?(t.count=parseInt(t.count,10)+1,r=new Date,c=((s=new Date(t.exp)).getTime()-r.getTime())/1e3,advads.set_cookie_sec(m+"_"+e,JSON.stringify(t,"false",!1),c,h,g),advadsCfpInfo.cfpClickLimit<=t.count&&void 0!==advadsCfpInfo.cfpBan&&a._banVisitor()):(v=new Date,r=new Date,v.setTime(v.getTime()+60*advadsCfpInfo.cfpExpHours*60*1e3),_="expires="+v.toUTCString(),c=(v.getTime()-r.getTime())/1e3,advads.set_cookie_sec(m+"_"+e,'{"count":1,"exp":"'+_+'"}',c,h,g),1===advadsCfpInfo.cfpClickLimit&&void 0!==advadsCfpInfo.cfpBan&&a._banVisitor()))}},l(function(){for(var e in window.advadsProCfp=new a,l(document).on("mouseenter","iframe[data-cfpa]",function(e){var a=parseInt(l(this).attr("data-cfpa"));advadsProCfp.currentIFrame=a}).on("mouseenter",".google-auto-placed",function(e){advadsProCfp.currentIFrame="google-auto-placed"}).on("mouseleave mouseout","[data-cfpa], .google-auto-placed",function(){advadsProCfp.currentIFrame=!1,advadsProCfp.focusLost&&(advadsProCfp.focusLost=!1,l(window).trigger("focus"))}),advadsCfpQueue)advadsCfpQueue.hasOwnProperty(e)&&advadsProCfp.addElement(advadsCfpQueue[e]);advadsCfpQueue=[],void 0!==window.advadsCfpInfo.cfpPath&&(""!=advadsCfpInfo.cfpPath&&(h=advadsCfpInfo.cfpPath),""!=advadsCfpInfo.cfpDomain)&&(g=advadsCfpInfo.cfpDomain)})}(window.jQuery);var cookieValue,info,advanced_ads_resizetimeout=1e3,advanced_ads_cookieexpires=30,advanced_ads_browser_width=advanced_ads_get_browser_width();function advanced_ads_resize_window(){advads_resize_delay(function(){var e;advanced_ads_browser_width!==(advanced_ads_browser_width=advanced_ads_get_browser_width())&&(advanced_ads_save_width(advanced_ads_browser_width),e=window.advanced_ads_responsive||{},window.jQuery)&&parseInt(e.reload_on_resize,10)&&jQuery(document).triggerHandler("advanced-ads-resize-window")},advanced_ads_resizetimeout)}function advanced_ads_save_width(e){var a;window.advanced_ads_responsive&&void 0!==window.advads&&((a=(a=advads.get_cookie("advanced_ads_visitor"))?JSON.parse(a):{}).browser_width=e,advads.set_cookie("advanced_ads_visitor",JSON.stringify(a),advanced_ads_cookieexpires,advanced_ads_cookies.cookie_path,advanced_ads_cookies.cookie_domain))}void 0===window.advads||(info=(cookieValue=advads.get_cookie("advanced_ads_visitor"))?JSON.parse(cookieValue):{}).browser_width&&info.browser_width===advanced_ads_browser_width||advanced_ads_save_width(advanced_ads_browser_width),window.addEventListener?window.addEventListener("resize",advanced_ads_resize_window,!1):window.attachEvent&&window.attachEvent("onresize",advanced_ads_resize_window);var advads_resize_delay=function(){var t=0;return function(e,a){clearTimeout(t),t=setTimeout(e,a)}}();function advanced_ads_get_browser_width(){var e;return window.jQuery?jQuery(window).width():(e=0,"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e)}

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.