PageSourceSearch

https://phaply.net.vn/themes/tinhte/public/js/ads-static.js?ver=1786608826

js phaply.net.vn collected 2026-09-25 00:20:48 UTC 4,220 bytes, 1 lines download raw bytes

1!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=3)}({3:function(e,t,n){e.exports=n("Qwp0")},Qwp0:function(e,t){!function(e){"use strict";var t={config:{containerClass:"qc_static",loadedClass:"qc_loaded",debug:!1},log:function(){this.config.debug&&console&&console.log&&console.log.apply(console,["[WnAdsStatic]"].concat(Array.prototype.slice.call(arguments)))},init:function(){this.log("Initializing..."),this.renderAllAds()},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},toArray:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},renderAllAds:function(){var t=document.querySelectorAll("."+this.config.containerClass+":not(."+this.config.loadedClass+")"),n=this.toArray(t);if(this.log("Found",n.length,"containers"),0!==n.length){var o=this.isMobile();this.log("Device type:",o?"Mobile":"Desktop");for(var i=0;i<n.length;i++)this.renderContainer(n[i],o);e.lazyLoadInstance&&e.lazyLoadInstance.update()}},renderContainer:function(e,t){var n,o=e.getAttribute("data-position"),i=e.getAttribute("data-display-type")||"rotation",a=t?"data-mobile-ads":"data-desktop-ads",s=e.getAttribute(a);if(this.log("Rendering position:",o,"Display type:",i),!s)return this.log("No ads data for position:",o),void(e.style.display="none");try{n=JSON.parse(s)}catch(t){return console.error("WnAdsStatic: Failed to parse ads data",t),void(e.style.display="none")}if(!n||0===n.length)return this.log("No ads available for position:",o),void(e.style.display="none");this.log("Rendering",n.length,"ads");var r=this.generateAdsHtml(n,i);e.innerHTML=r,e.style.display="",e.classList.add(this.config.loadedClass),"rotation"===i&&n.length>1&&this.initRotation(e)},generateAdsHtml:function(e,t){var n="";e.length>1&&"rotation"===t&&(n+='<div class="qc_rotation">');for(var o=0;o<e.length;o++){var i=e[o];if("gg_ads"===i.type||"custom_code"===i.type)n+='<div class="qc_gg">'+(i.gg_ads||"")+"</div>";else if("google_adsense"===i.type)n+='<div class="qc_gg">',n+='<ins class="adsbygoogle" style="display:block" data-ad-slot="'+(i.google_adsense_slot_id||"")+'"></ins>',n+="</div>";else if(i.image){var a=0===o||1===e.length?"visible":"hidden",s=i.open_in_new_tab?"_blank":"_self";n+='<a href="'+(i.link||"#")+'" class="promotions '+a+'" target="'+s+'" rel="nofollow" title="'+(i.name||"")+'">',n+='<img src="'+i.image+'" alt="'+(i.name||"")+'" loading="lazy">',n+="</a>"}}return e.length>1&&"rotation"===t&&(n+="</div>"),n},initRotation:function(e){var t=e.querySelectorAll(".promotions");if(!(t.length<=1)){var n=0;setInterval((function(){t[n].classList.remove("visible"),t[n].classList.add("hidden"),n=(n+1)%t.length,t[n].classList.remove("hidden"),t[n].classList.add("visible")}),5e3)}},refresh:function(){for(var e=document.querySelectorAll("."+this.config.loadedClass),t=0;t<e.length;t++)e[t].classList.remove(this.config.loadedClass),e[t].innerHTML="";this.renderAllAds()},enableDebug:function(){this.config.debug=!0,console.log("[WnAdsStatic] Debug mode enabled")}};e.WnAdsStatic=t;var n=function e(n){n=n||0;document.querySelectorAll("."+t.config.containerClass).length>0?t.init():n<5&&setTimeout((function(){e(n+1)}),200)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){setTimeout((function(){n()}),100)})):setTimeout((function(){n()}),100)}(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.