Page MenuHomeGitPull.it

Iubenda possible crapware https://cdn.iubenda.com/iubenda_i_badge.js
ActivePublic

Authored by valerio.bozzolan on Apr 17 2020, 08:17.
Referenced Files
F15661: raw.txt
Apr 17 2020, 08:17
Subscribers
None
var _iub=_iub||[];_iub.ifr=_iub.ifr||[],function(e,t){function i(e){return new r(e)}function n(t){if(!t){if(!e.event)return null;t=e.event}return typeof t.keyCode=="number"?t.keyCode:typeof t.which=="number"?t.which:typeof t.charCode=="number"?t.charCode:null}var r=function(e){return this.linkA=e.linkA,this.embedP=e.embedP,this.iFrUrl=e.iFrUrl,this.inParent=e.inParent,this.cdnBaseUrl=e.cdnBaseUrl,this.straightShow=e.straightShow,this.callback=e.callback,this.closeOn=e.closeOn,this.shortHeightBy=e.shortHeightBy,this.addClass=e.addClass,this.zIndex=e.zIndex||1e4,this.name=e.name,this.overflow=e.overflow==="false"||e.overflow===!1?!1:"html",this.isMobile=!1,this.mainDoc=null,this.mainC=null,this.cOver=null,this.sp=null,this.iPPPup=null,this.ppW=800,this.ppH=800,this.vpWidth=null,this.vpHeight=null,this.scrollX=null,this.scrollY=null,this.mainL=null,this.mainT=null,this.margin=80,this.htmlOvr={},this.checkForMobile(),this.straightShow?this.showPP():this.bindAll(),this};r.prototype.showPP=function(){var i=this;if(this.oldOnKeyDown=t.onkeydown,t.onkeydown=function(e){return i.keyPressed(e),!0},this._iub=this.inParent?parent._iub||e._iub:e._iub,this.mainDoc=this.inParent?parent.parent.document:t,this.wipeOut(),this.mainDoc.getElementsByTagName("html")[0],this.getViewPortSize(),this.overflow&&this.setOverflow(this.vpHeight),this.setSizeAndPosition(),this.getDocHeight(),this.mainC=this.mainDoc.createElement("div"),this.mainC.id="iubenda-pp",this.setStyle(this.mainC,"top:"+this.mainT+"px; left:"+this.mainL+"px; position:absolute; z-index:"+this.zIndex+";"),typeof this.addClass=="string"&&(this.mainC.className=this.addClass),this.iPPPup=this.mainDoc.createElement("div"),this.iPPPup.id="iubenda-pp-popup",this.setStyle(this.iPPPup,"position:relative; display:none"),this.mainC.appendChild(this.iPPPup),typeof parent.IubSpinner!="undefined"){var n={lines:8,length:2,width:2,radius:2,color:"#FFF",speed:1.2,trail:60,shadow:!1};this.sp=new parent.IubSpinner(n).spin(),this.setStyle(this.sp.el,"position:relative; left:"+this.ppW/2+"px; top:"+100+"px;"),this.mainC.appendChild(this.sp.el)}var r=this.mainDoc.createElement("div");r.id="iubenda-pp-content",this.iPPPup.appendChild(r),this.cOver=this.mainDoc.createElement("div"),this.cOver.id="iubenda-pp-overlay";var o=this.isMobile?this.getDocHeight()+"px":"100%";if(this.setStyle(this.cOver,"position:fixed; top:0; left:0; width:100%; height:"+o+"; background-color:black; z-index:"+(this.zIndex-1)+"; opacity:.80; filter:alpha(opacity=80); overflow: hidden"),this.closeOn&&this.closeOn!="overlay"||(this.cOver.onclick=function(){return i.closePP(),!1}),!this.closeOn||this.closeOn=="icon"){var a=this.mainDoc.createElement("a");a.href="#",this.setStyle(a,"background:url('"+this.cdnBaseUrl+"close.png') no-repeat scroll 0 0 transparent; border:medium none; display:block; height:24px; position:absolute; right:-9px; top:-10px; width:23px; z-index:10010;"),this.iPPPup.appendChild(a),a.onclick=function(e){return e.stopPropagation(),i.closePP(),!1}}var s=this.mainDoc.createElement("IFRAME"),l=this.iFrUrl.indexOf("?")!=-1?this.iFrUrl+"&ifr=true&height="+this.ppH:this.iFrUrl+"?ifr=true&height="+this.ppH;s.setAttribute("src",l),s.setAttribute("scrolling","no"),s.setAttribute("frameBorder","0"),s.setAttribute("allowtransparency","true"),s.setAttribute("style","border: 1px solid rgba(0, 0, 0, 0.3); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box;"),s.style.width=this.ppW+"px",s.style.height=this.ppH+"px",r.style.width=this.ppW+"px",r.style.height=this.ppH+"px",this.name&&(s.name=this.name),this._iub.onLoadCall(s,function(){i.ppLoaded()}),r.appendChild(s),this.embedP.appendChild(this.mainC),this.mainC.parentNode.insertBefore(this.cOver,this.mainC.nextSibling)},r.prototype.getViewPortSize=function(){this.isMobile?(this.vpWidth=(this.inParent?parent.window.innerWidth:e.innerWidth)||this.mainDoc.documentElement.clientWidth,this.vpHeight=(this.inParent?parent.window.innerHeight:e.innerHeight)||this.mainDoc.documentElement.clientHeight):(this.vpWidth=this.mainDoc.documentElement.clientWidth,this.vpHeight=this.mainDoc.documentElement.clientHeight)},r.prototype.setSizeAndPosition=function(){this.getViewPortSize(),this.margin=this.vpWidth>768?80:this.vpWidth>480?50:25,this.ppW=Math.min(this.vpWidth-this.margin,800),this.ppH=this.isMobile?Math.min(this.vpHeight-this.margin,800):Math.min(Math.max(this.vpHeight-100,480),800),typeof this.shortHeightBy=="number"&&(this.ppH=this.ppH-this.shortHeightBy),this.scrollX=(this.inParent?parent.window.pageXOffset:e.pageXOffset)||this.mainDoc.documentElement.scrollLeft,this.scrollY=(this.inParent?parent.window.pageYOffset:e.pageYOffset)||this.mainDoc.documentElement.scrollTop,this.mainL=(this.vpWidth-this.ppW)/2+this.scrollX,this.mainT=this.isMobile?this.margin/2+this.scrollY:50+this.scrollY},r.prototype.getIFrameContainer=function(){return this.iPPPup},r.prototype.setStyle=function(e,t){this._iub.setStyle(e,t)},r.prototype.closePP=function(){this.embedP.removeChild(this.mainC),this.embedP.removeChild(this.cOver),this.overflow&&this.resetOverflow(this.mainDoc.getElementsByTagName("html")[0]),t.onkeydown=this.oldOnKeyDown},r.prototype.wipeOut=function(){if(this.mainDoc){if(this.mainDoc.getElementById("iubenda-pp")){var e=this.mainDoc.getElementById("iubenda-pp");e.parentNode.removeChild(e)}if(this.mainDoc.getElementById("iubenda-pp-overlay")){var e=this.mainDoc.getElementById("iubenda-pp-overlay");e.parentNode.removeChild(e)}}},r.prototype.ppLoaded=function(){this.sp&&this.sp.stop(),this.iPPPup.style.display="block",typeof this.callback=="function"&&this.callback()},r.prototype.keyPressed=function(e){n(e)===27&&this.closePP()},r.prototype.getDocHeight=function(){var e=this.mainDoc;return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))},r.prototype.setOverflow=function(e){var t=this.mainDoc.getElementsByTagName("html")[0];this.htmlOvr={general:t.style.overflow.replace("/s*/g"," "),X:t.style.overflowX.replace("/s*/g"," "),Y:t.style.overflowY.replace("/s*/g"," ")};var i=e?e-(this.shortHeightBy||0)>=550?"hidden":"auto":"hidden";t.style.overflow="",t.style.overflowX=i,t.style.overflowY=i},r.prototype.resetOverflow=function(){var e=this.mainDoc.getElementsByTagName("html")[0];e.style.overflow=this.htmlOvr.general,e.style.overflowX=this.htmlOvr.X,e.style.overflowY=this.htmlOvr.Y},r.prototype.checkForMobile=function(){this.isMobile=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase())},r.prototype.bindAll=function(){var t=this;this.linkA.onclick=function(i){"undefined"==typeof i&&(i=e.event),i.ctrlKey||typeof i.metaKey!="undefined"&&i.metaKey||(i.target||(i.target=i.srcElement),i.preventDefault?i.preventDefault():i.returnValue=!1,t.showPP())}},e._iub.ifr.iubendaStartIFrame=function(e){return i(e)}}(window,document);var _iub=_iub||[];_iub.ifr=_iub.ifr||[],function(e,t){function i(e){var e=e||{},i=e.linkA||t.getElementById("i_badge-link"),r=e.embedP||parent.parent.document.getElementsByTagName("body")[0],o=e.iFrUrl||i.href.split("?")[0],a=typeof e.inParent!="undefined"?e.inParent:!0,s=e.cdnBaseUrl,l=e.straightShow||!1,d=e.callback||null,h=e.preventClose||!1,p=e.shortenHeightTo||null,u=typeof e.addClass=="string"?e.addClass:null,c=e.useProtocol||"//",f=parseInt(e.zIndex)||null,m=e.overflow;return o=n(o,c),s=n(s,c),_iub.ifr.iubendaStartIFrame({linkA:i,embedP:r,iFrUrl:o,inParent:a,cdnBaseUrl:s,straightShow:l,callback:d,preventClose:h,shortenHeightTo:p,addClass:u,zIndex:f,overflow:m})}function n(e,t){var i=e.indexOf("//")!==-1?e.split("//")[1]:e;return t.concat(i)}e._iub.ifr.iubendaStartBadge=function(e){return i(e)}}(window,document);