PageSourceSearch

https://aospares.pt/wp-content/cache/min/1/static/build/embed.js?ver=1742302713

js aospares.pt collected 2026-10-02 13:32:58 UTC 5,881 bytes, 1 lines download raw bytes

1"use strict";!function(){var n=window.addEventListener?"addEventListener":"attachEvent",o=window[n],t="attachEvent"==n?["onresize","onscroll"]:["resize","scroll","orientationChange"],s="attachEvent"==n?"onload":"load",e="attachEvent"==n?"onmessage":"message",r=document.getElementsByTagName("IFRAME"),a,l=100,c=333,d,i,p,u=/(http:\/\/localhost:(3000|8000))|((http:|https:)?\/\/(dev\.)?primetag\.net)|((http:|https:)?\/\/ptagservice\.com)|((http:|https:)?\/\/primetagdev\.azureedge\.net)|((http:|https:)?\/\/primetag2\.azureedge\.net)/;function h(e){return e.src.match(/pulse\/(.*)\/embed\//)?e.src.match(/pulse\/(.*)\/embed\//)[1]:e.src.match(/slug=(.*)&/)?e.src.match(/slug=(.*)&/)[1]:void 0}function g(n){o(e,function(e){var t=e.message||e.data,i;if(e.origin.match(u)&&h(n)===t.pulseid)if("heightMessage"===t.message){0===n.height?t.style.display="none":(n.height=t.height+"px",n.style.height=t.height+"px"),(d=window.document.createEvent("UIEvents")).initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(d),f(n);var e=document.getElementById("ptimg_"+h(n));e&&"block"===e.style.display&&-1!==e.parentElement.className.indexOf("primetag-wrapper")&&(e.parentElement.style.cssText+="margin-bottom: 0; height: "+t.height+"px;",n.style.cssText+="margin-top: -"+e.height+"px;")}else if("loadFinished"===t.message){for(i in window.pt_LoadInProgress=!1,window["pt_"+t.pulseid].loaded=!0,window["pt_"+t.pulseid].loading=!1,delete window.pt_loadsQueue[t.pulseid],window.pt_loadsQueue)window.pt_loadsQueue.hasOwnProperty(i)&&y(window.pt_loadsQueue[i],i)}else"loadReceived"===t.message?window["pt_"+t.pulseid].loading=!0:"heightRequestReceived"===t.message&&b(n)})}function m(n,o,s){var r,a;return function(){var e=s||this,t=Date.now(),i=arguments;r&&t<r+o?(clearTimeout(a),a=setTimeout(function(){r=t,n.apply(e,i)},o)):(r=t,n.apply(e,i))}}function w(e){var e=e.getBoundingClientRect();return 0<=e.left&&(e.bottom-e.height/2<=(window.innerHeight||document.documentElement.clientHeight)||e.top+e.height/2>-e.height&&e.top+e.height/2<0)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function v(e){var t=e.getBoundingClientRect();if(e.currentScrollY=window.scrollY,e.currentScrollY>e.previousScrollY?e.scrollDirection="down":e.currentScrollY<e.previousScrollY?e.scrollDirection="up":e.scrollDirection="none",e.previousScrollY=e.currentScrollY,!e.visibilityTriggered)if("down"===e.scrollDirection){if(0<t.top&&t.top<window.innerHeight/2||0<t.bottom&&t.bottom<window.innerHeight)return e.visibilityTriggered=!0}else if("up"===e.scrollDirection&&(0<t.bottom&&t.bottom>window.innerHeight/2||0<t.top))return e.visibilityTriggered=!0;e.visibilityTriggered&&(t.top>window.innerHeight||t.bottom<0)&&(e.visibilityTriggered=!1)}function y(e,t){window.pt_loadsQueue[t]=e,window.pt_LoadInProgress||window["pt_"+t].loaded||window["pt_"+t].loading||(window.pt_LoadInProgress=!0,window["pt_"+t]={loaded:!0},e.contentWindow.postMessage({id:t,referrer:document.querySelector("link[rel='canonical']")?document.querySelector("link[rel='canonical']").getAttribute("href"):window.top.location.href,type:"load"},"*"))}function f(e){var e=h(e),t=document.getElementById("ptimg_"+e);t&&(t.style.cssText+="opacity: 1;-webkit-transition:opacity 1s ease; -moz-transition:opacity 1s ease; -o-transition:opacity 1s ease; transition:opacity 1s ease;",t.style.cssText+="opacity:0;pointer-events:none;",setTimeout(function(){t.style.cssText+="z-index:-1;"},1e3))}function b(i){var e;i.has_events||(e=h(i),window["pt_"+e]={loaded:!1},i.checkInterval=setInterval(function(){a(i)},c),t.forEach(function(e){var t=m(function(){a(i)},l).bind(i);o(e,t)}.bind(this)),i.has_events=!0)}function x(t){var i=document.getElementById("ptimg_"+h(t)),e,n;t.style.cssText+="left:0",i&&(e=i.src,!(n=t.getAttribute("data-template"))&&t.src.match(/embed\/(.*)\.html/)&&(n=t.src.match(/embed\/(.*)\.html/)[1]),i.parentElement.clientWidth<=400&&(i.src="",i.src=e.replace(".jpg","_mob.jpg")),t.style.cssText+="position: absolute;",setTimeout(function(){var e;"basic"!==n?(i.style.cssText+="display:block !important;z-index:1;position:relative;",i.parentElement.style.cssText+="margin-bottom: 35px;",0===i.height?(i.onload=(e=t,void setTimeout(function(){0===i.naturalWi
1dth?(i.style.cssText+="display:none !important;",e.style.cssText+="position:relative;"):e.style.cssText+="margin-top: -"+this.height+"px;"})),i.onerror=void(t.style.cssText+="position:relative;")):setTimeout(function(){0===i.naturalWidth?(i.style.cssText+="display:none !important;",t.style.cssText+="position: relative;"):t.style.cssText+="margin-top: -"+i.height+"px;"})):t.style.cssText+="position: relative;"}))}function E(){for(r=document.getElementsByTagName("IFRAME"),p=0;p<r.length;p++){var e,t,i;r[p].src.match(u)&&(r[p].setAttribute("scrolling","no"),r[p].style.width="1px",r[p].style.minWidth="100%",!r[p].hasSandbox&&r[p].getAttribute("sandbox")&&(r[p].removeAttribute("sandbox"),e=r[p],t=r[p].previousElementSibling,i=r[p].parentElement,r[p].parentNode.removeChild(r[p]),null!==t?t.parentNode.insertBefore(e,t.nextSibling):i.insertBefore(e,i.firstChild),r[p].hasSandbox=!0),-1!==r[p].parentElement.className.indexOf("primetag-wrapper")&&(r[p].parentElement.style.cssText+="position: relative;"),r[p].hasMessageEvent||(x(r[p]),g(r[p]),r[p].hasMessageEvent=!0),r[p][n](s,function(){b(this)}),r[p].has_events||r[p].contentWindow.postMessage({type:"heightRequest"},"*"))}}window.pt_loadsQueue={},a=function(e){var t=h(e);w(e)&&y(e,t),v(e)&&e.contentWindow.postMessage({type:"visibility"},"*")},window.pt_hasEmbedScript||(window.pt_hasEmbedScript=!0,E(),i=setInterval(function(){E()},100),o(s,function(){setTimeout(function(){clearInterval(i)},2e3)}),o(s,function(){for(var e=document.querySelectorAll(".MRG_IntextInactive"),t,i,t=0;t<e.length;t++)e[t].style="",e[t].className="",i=e[t].cloneNode(!0),e[t].parentNode.replaceChild(i,e[t])}))}();

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.