PageSourceSearch

https://www.communitycare.co.uk/scripts/jquery.dfp.min.js

js communitycare.co.uk collected 2026-09-25 15:26:12 UTC 6,815 bytes, 20 lines download raw bytes

1/*
2 jQuery DFP v2.4.2
3 http://github.com/coop182/jquery.dfp.js
4
5 Copyright 2016 Matt Cooper
6 Released under the MIT license
7*/
8(function(m,w){(function(f){"function"===typeof define&&define.amd?define(["jquery"],f):"object"===typeof exports?f(require("jquery")):f(m.jQuery||m.Zepto)})(function(f){var n=this||{},r="",t=0,x=0,u=0,y=!1,z=!1,G=function(a,e,b){u=t=0;r=a;var c=f(e);n.shouldCheckForAdBlockers=function(){return b?"function"===typeof b.afterAdBlocked:!1};C(b,c).then(function(){b=D(b);n.dfpOptions=b;f(function(){E(b,c);F(b,c)})})},D=function(a){var e={setTargeting:{},setCategoryExclusion:"",setLocation:"",enableSingleRequest:!0,
9collapseEmptyDivs:"original",enableLazyLoad:!0,refreshExisting:!0,disablePublisherConsole:!1,disableInitialLoad:!1,setCentering:!1,noFetch:!1,namespace:w,sizeMapping:{}};if("undefined"===typeof a.setUrlTargeting||a.setUrlTargeting){var b=H(a.url);f.extend(!0,e.setTargeting,{UrlHost:b.Host,UrlPath:b.Path,UrlQuery:b.Query})}f.extend(!0,e,a);e.googletag&&m.googletag.cmd.push(function(){f.extend(!0,m.googletag,e.googletag)});return e},E=function(a,e){var b=m.googletag;e.each(function(){var c=f(this);
10t++;var d=I(c,a),h=J(c,d),l=K(c);c.data("existingContent",c.html());c.html("").addClass("display-none");b.cmd.push(function(){var g=c.data("googleAdUnit");if(g)var k=g;else g=""===r?d:"/"+r+"/"+d,c.data("outofpage")?k=b.defineOutOfPageSlot(g,h):(k=b.defineSlot(g,l,h),c.data("companion")&&(k=k.addService(b.companionAds()))),k=k.addService(b.pubads());(g=c.data("targeting"))&&f.each(g,function(v,p){k.setTargeting(v,p)});if(g=c.data("exclusions")){g=g.split(",");var q;f.each(g,function(v,p){q=f.trim(p);
110<q.length&&k.setCategoryExclusion(q)})}if((g=c.data("size-mapping"))&&a.sizeMapping[g]){var A=b.sizeMapping();f.each(a.sizeMapping[g],function(v,p){A.addSize(p.browser,p.ad_sizes)});k.defineSizeMapping(A.build())}c.data("googleAdUnit",k);"function"===typeof a.beforeEachAdLoaded&&a.beforeEachAdLoaded.call(this,c)})});b.cmd.push(function(){var c=b.pubads();c.enableLazyLoad({fetchMarginPercent:500,renderMarginPercent:200,mobileScaling:2});a.enableSingleRequest&&c.enableSingleRequest();f.each(a.setTargeting,
12function(l,g){c.setTargeting(l,g)});var d=a.setLocation;"object"===typeof d&&("number"===typeof d.latitude&&"number"===typeof d.longitude&&"number"===typeof d.precision?c.setLocation(d.latitude,d.longitude,d.precision):"number"===typeof d.latitude&&"number"===typeof d.longitude&&c.setLocation(d.latitude,d.longitude));if(0<a.setCategoryExclusion.length){d=a.setCategoryExclusion.split(",");var h;f.each(d,function(l,g){h=f.trim(g);0<h.length&&c.setCategoryExclusion(h)})}a.collapseEmptyDivs&&c.collapseEmptyDivs();
13a.enableLazyLoad&&c.enableLazyLoad({fetchMarginPercent:500,renderMarginPercent:200,mobileScaling:2});a.disablePublisherConsole&&c.disablePublisherConsole();a.companionAds&&(b.companionAds().setRefreshUnfilledSlots(!0),a.disableInitialLoad||c.enableVideoAds());a.disableInitialLoad&&c.disableInitialLoad();a.noFetch&&c.noFetch();a.setCentering&&c.setCentering(!0);c.addEventListener("slotRenderEnded",function(l){u++;var g=f("#"+l.slot.getSlotId().getDomId()),k=l.isEmpty?"none":"block",q=g.data("existingContent");
14"none"===k&&0<f.trim(q).length&&"original"===a.collapseEmptyDivs&&(g.show().html(q),k="block display-original");g.removeClass("display-none").addClass("display-"+k);"function"===typeof a.afterEachAdLoaded&&a.afterEachAdLoaded.call(this,g,l);"function"===typeof a.afterAllAdsLoaded&&u===t&&a.afterAllAdsLoaded.call(this,e)});n.shouldCheckForAdBlockers()&&!b._adBlocked_&&setTimeout(function(){var l=c.getSlots?c.getSlots():[];0<l.length&&f.get(l[0].getContentUrl()).always(function(g){200!==g.status&&f.each(l,
15function(){var k=f("#"+this.getSlotId().getDomId());a.afterAdBlocked.call(n,k,this)})})},0);b.enableServices()})},F=function(a,e){var b=m.googletag;if(n.shouldCheckForAdBlockers()&&!b._adBlocked_&&b.getVersion){var c="//securepubads.g.doubleclick.net/gpt/pubads_impl_"+b.getVersion()+".js";f.getScript(c).always(function(d){d&&"error"===d.statusText&&f.each(e,function(){a.afterAdBlocked.call(n,f(this))})})}e.each(function(){var d=f(this),h=d.data("googleAdUnit");b._adBlocked_&&n.shouldCheckForAdBlockers()&&
16a.afterAdBlocked.call(n,d);a.refreshExisting&&h&&d.hasClass("display-block")?b.cmd.push(function(){b.pubads().refresh([h])}):b.cmd.push(function(){b.display(d.attr("id"))})})},H=function(a){var e=(a||m.location.toString()).match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);a=e[4]||"";var b=(e[5]||"").replace(/(.)\/$/,"$1");e=(e[7]||"").replace(/=/ig,":").split("&");return{Host:a,Path:b,Query:e}},J=function(a,e){x++;return a.attr("id")||a.attr("id",e.replace(/[^A-z0-9]/g,"_")+"-auto-gen-id-"+
17x).attr("id")},I=function(a,e){var b=a.data("adunit")||e.namespace||a.attr("id")||"";"function"===typeof e.alterAdUnitName&&(b=e.alterAdUnitName.call(this,b,a));return b},K=function(a){var e=[],b=a.data("dimensions");b?(a=b.split(","),f.each(a,function(c,d){var h=d.split("x");e.push([parseInt(h[0],10),parseInt(h[1],10)])})):e.push([a.width(),a.height()]);return e},C=function(a,e){function b(){n.shouldCheckForAdBlockers()&&f.each(e,function(){a.afterAdBlocked.call(n,f(this))})}if(z=z||f('script[src*="securepubads.g.doubleclick.net/tag/js/gpt.js"]').length)return y&&
18b(),f.Deferred().resolve();var c=f.Deferred();m.googletag=m.googletag||{};m.googletag.cmd=m.googletag.cmd||[];var d=document.createElement("script");d.async=!0;d.type="text/javascript";d.onerror=function(){B();c.resolve();y=!0;b()};d.onload=function(){googletag._loadStarted_||(googletag._adBlocked_=!0,b());c.resolve()};d.src=("https:"===document.location.protocol?"https:":"http:")+"//securepubads.g.doubleclick.net/tag/js/gpt.js";var h=document.getElementsByTagName("script")[0];h.parentNode.insertBefore(d,
19h);"none"===d.style.display&&B();return c},B=function(){var a=m.googletag,e=a.cmd,b=function(c,d,h,l){a.ads.push(h);a.ads[h]={renderEnded:function(){},addService:function(){return this}};return a.ads[h]};a={cmd:{push:function(c){c.call(n)}},ads:[],pubads:function(){return this},noFetch:function(){return this},disableInitialLoad:function(){return this},enableLazyLoad:function(){return this},disablePublisherConsole:function(){return this},enableSingleRequest:function(){return this},setTargeting:function(){return this},
20collapseEmptyDivs:function(){return this},enableServices:function(){return this},defineSlot:function(c,d,h){return b(c,d,h,!1)},defineOutOfPageSlot:function(c,d){return b(c,[],d,!0)},display:function(c){a.ads[c].renderEnded.call(n);return this}};f.each(e,function(c,d){a.cmd.push(d)})};f.dfp=f.fn.dfp=function(a,e){e=e||{};a===w&&(a=r);"object"===typeof a&&(e=a,a=e.dfpID||r);var b=this;"function"===typeof this&&(b=".adunit");G(a,b,e);return this}})})(window);

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.