GoalPoint-Inter-Dortmund-Champions-League-201920-Ratings
- Publicidade -
- Publicidade -
`;
}
adslot=document.getElementsByClassName('td-a-rec-id-custom_ad_4');
if(adslot.length>0) {
adslot[0].innerHTML=`
`;
}
adslot=document.getElementsByClassName('td-a-rec-id-custom_ad_5');
if(adslot.length>0) {
adslot[0].innerHTML=``;
}
});
*/ jQuery.extend(true, jQuery.magnificPopup.defaults, {
callbacks: {
beforeOpen : handleMPbeforeOpen
}
});
//jQuery(".tdc-row:has(> div.no-padding)").css("padding-left","0px").css("padding-right","0px");
console.log("init");
if(document.getElementsByClassName("tpodds").length>0) {
oddsBETANO();
}
let otp=jQuery(".gpmdl");
if(otp.length>0) {
jQuery(".td-main-content-wrap .tdc-row").css("padding-left","0px").css("padding-right","0px");
jQuery(".column-1",otp).css("padding-left","5px").css("padding-right","2px");
jQuery(".column-2",otp).css("padding-left","2px").css("padding-right","2px");
jQuery(".column-3",otp).css("padding-left","2px").css("padding-right","5px");
jQuery(".column-4,.column-5,.column-6,.column-7",otp).css("padding-left","5px").css("padding-right","5px");
jQuery(".column-8",otp).css("padding-left","5px").css("padding-right","6px");
}
jQuery(document.body).click(function(event) {
//document.body.addEventListener("click", function(event) {
jQuery(event.target).closest("a").each(function() {
if(block_analytics==0) {
const lnk = new URL(this.href);
if(location.hostname !== lnk.hostname) {
if(jQuery('#sidebar-mrec1').has(this).length) { trackAdLink('AD sidebar-mrec1',this.href); console.log("1");}
else if(jQuery('#sidebar-mrec2').has(this).length) { trackAdLink('AD sidebar-mrec2',this.href); console.log("1");}
else if(jQuery('#footer-lb').has(this).length) { trackAdLink('AD footer-lb',this.href); console.log("1");}
else if(jQuery('#top-lb').has(this).length) { trackAdLink('AD top-lb',this.href); console.log("1");}
else if(jQuery('#expandable').has(this).length) { trackAdLink('AD expandable',this.href); console.log("1");}
else if(jQuery('#td-a-rec-id-custom_ad_1').has(this).length) { trackAdLink('AD td-a-rec-id-custom_ad_1',this.href); console.log("1");}
else if(jQuery('#td-a-rec-id-custom_ad_2').has(this).length) { trackAdLink('AD td-a-rec-id-custom_ad_2',this.href); console.log("1"); }
else if(jQuery('#td-a-rec-id-custom_ad_3').has(this).length) { trackAdLink('AD td-a-rec-id-custom_ad_3',this.href); console.log("1");}
else if(jQuery('#td-a-rec-id-custom_ad_4').has(this).length) { trackAdLink('AD td-a-rec-id-custom_ad_4',this.href); console.log("1");}
else if(jQuery('#td-a-rec-id-header').has(this).length) { trackAdLink('AD td-a-rec-id-header',this.href); console.log("1");}
else {trackOutboundLink(this.href);console.log("0");}
}
}
let o;
if('undefined' !== typeof jQuery(this).attr("href")) {
o= jQuery(this).attr('href');
} else {
o= jQuery(this).href;
}
let t= jQuery(this).closest("table");
if(t.hasClass('tablepress') && t.hasClass('gpmdl')) {
//trackContext='infog-open';
//trackInfographic(o,true);
//trackContext='infog-browse';
if(/.(jpg|png)/.test(o)) {
event.preventDefault();
}
} else {
//trackContext='infog-open-article';
}
});
}); if(!hide_ads) {
console.log("Ads enabled"); googletag.cmd.push(function() {
googletag.pubads().enableAsyncRendering();
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs(false);
googletag.pubads().setCentering(true); if(document.getElementById("div-gpt-ad-1709203078846-0")){
googletag.defineSlot('/1111242/goalpoint_300x600', [[300, 600], [300, 250]], 'div-gpt-ad-1709203078846-0').addService(googletag.pubads());
googletag.display("div-gpt-ad-1709203078846-0");
} lbMapping = googletag.sizeMapping().addSize([1141, 0], [[728, 90],[970,250]]).addSize([1019, 0], [[728, 90], [970, 250]]).addSize([768, 0], [300, 250]).addSize([0, 0], [320, 50]).build(); if (document.getElementById('top-lb')) {
slt1= googletag.defineSlot('/1111242/goalpoint_top_728x90', [[728, 90], [970, 250], [300, 250], [320, 50]], 'top-lb').defineSizeMapping(lbMapping).addService(googletag.pubads());
}
if (document.getElementById('sidebar-mrec1')) {
slt2= googletag.defineSlot('/1111242/goalpoint_sidebar_300x250_1', [300, 250], 'sidebar-mrec1').addService(googletag.pubads());
}
if (document.getElementById('sidebar-mrec2')) {
slt3= googletag.defineSlot('/1111242/goalpoint_sidebar_300x250_2', [300, 250], 'sidebar-mrec2').addService(googletag.pubads());
}
if (document.getElementById('footer-lb')) {
slt4= googletag.defineSlot('/1111242/goalpoint_footer_728x90', [[728, 90], [300, 250], [320, 50]], 'footer-lb').defineSizeMapping(lbMapping).addService(googletag.pubads());
}
googletag.enableServices(); if (document.getElementById('top-lb')) {
googletag.display('top-lb');
}
if (document.getElementById('sidebar-mrec1')) {
googletag.display('sidebar-mrec1');
}
if (document.getElementById('sidebar-mrec2')) {
googletag.display('sidebar-mrec2');
}
if (document.getElementById('footer-lb')) {
googletag.display('footer-lb');
}
}); jQuery.extend( jQuery.magnificPopup.defaults, {
alignTop: true
,callbacks: {
beforeOpen : handleMPbeforeOpen,
imageLoadComplete: function() {
if(reAttach===1) {
jQuery('#top-lb').detach().appendTo(jQuery('#wrap-info-lb'));
} else {
if(document.getElementById('top-lb')) {
jQuery('#top-lb').detach().appendTo(jQuery('#wrap-info-lb'));
} else {
jQuery("").appendTo(jQuery('#wrap-info-lb'));
}
}
jQuery('#wrap-info-lb').detach().appendTo(this.contentContainer);
//jQuery('#wrap-info-lb').css({"width":"100%", "height":"251px", "background-color":"none"});
if (slt1===undefined) {
googletag.cmd.push(function() {
slt1= googletag.defineSlot('/1111242/goalpoint_top_728x90', [[728, 90], [970, 250], [300, 250], [320, 50]], 'top-lb').defineSizeMapping(lbMapping).addService(googletag.pubads());
googletag.display('top-lb');
});
} else {
googletag.cmd.push(function() {
googletag.pubads().refresh([slt1], {changeCorrelator: true});
});
}
},
open: function () {
jQuery(".mfp-img").css('position',"relative");
jQuery("body").swipe({
swipeLeft: function(event, direction, distance, duration, fingerCount) {
jQuery(".mfp-arrow-left").magnificPopup("prev");
},
swipeRight: function() {
jQuery(".mfp-arrow-right").magnificPopup("next");
},
threshold: 50
});
trackInfographic(this.currItem.src);
trackContext = trackContext.replace('open','browse');
},
close: function () {
// Only bother to re-attach top-lb, IF it was attached to something already
if(reAttach===1) {
jQuery('#top-lb').detach().appendTo(jQuery("#wrap-top-lb-main"));
} else {
jQuery('#top-lb').detach().appendTo(jQuery('#wrap-info-lb'));
}
jQuery('#wrap-info-lb').detach().appendTo(jQuery("body"));
googletag.cmd.push(function() {
if (reAttach===1) {
googletag.pubads().refresh([slt1], {changeCorrelator: true});
}
if (document.getElementById('sidebar-mrec1')) {
googletag.pubads().refresh([slt2], {changeCorrelator: true});
}
if (document.getElementById('sidebar-mrec2')) {
googletag.pubads().refresh([slt3], {changeCorrelator: true});
}
if (document.getElementById('footer-lb')) {
googletag.pubads().refresh([slt4], {changeCorrelator: true});
}
});
jQuery("body").swipe("disable");
trackContext=undefined;
}
}
});
jQuery.magnificPopup.instance.next = function() {
jQuery.magnificPopup.proto.next.call(this);
trackInfographic(this.currItem.src);
};
jQuery.magnificPopup.instance.prev = function() {
jQuery.magnificPopup.proto.prev.call(this);
trackInfographic(this.currItem.src);
};
} else {
console.log("Ads disabled");
// Hide Ads
jQuery('div.td-header-header-full.td-banner-wrap-full').hide();
jQuery('.sidebar-mrec1').hide();
jQuery('.sidebar-mrec2').hide();
jQuery('.footer-lb').hide();
jQuery('.top-lb').hide();
//jQuery('.expandable').hide();
jQuery('.td-a-rec-id-custom_ad_1').hide();
jQuery('.td-a-rec-id-custom_ad_2').hide();
jQuery('.td-a-rec-id-custom_ad_3').hide();
jQuery('.td-a-rec-id-custom_ad_4').hide();
jQuery('.td-a-rec-id-header').hide();
jQuery.extend(true, jQuery.magnificPopup.defaults, {
alignTop: true
,callbacks: {
beforeOpen : handleMPbeforeOpen,
open: function () {
jQuery("body").swipe({
swipeLeft: function(event, direction, distance, duration, fingerCount) {
jQuery(".mfp-arrow-left").magnificPopup("prev");
},
swipeRight: function() {
jQuery(".mfp-arrow-right").magnificPopup("next");
},
threshold: 50
});
trackInfographic(this.currItem.src);
trackContext = trackContext.replace('open','browse');
jQuery(".mfp-img").css('position',"relative");
},
close: function () {
jQuery("body").swipe("disable");
trackContext=undefined;
}
}
});
// hide ads
jQuery.magnificPopup.instance.next = function() {
jQuery.magnificPopup.proto.next.call(this);
jQuery(".mfp-img").css('position',"relative");
trackInfographic(this.currItem.src);
};
jQuery.magnificPopup.instance.prev = function() {
jQuery.magnificPopup.proto.prev.call(this);
jQuery(".mfp-img").css('position',"relative")
trackInfographic(this.currItem.src);
};
} // Prep tables
setTimeout(function(){
let addMPtoGroup=function(o) {
const p=jQuery(o).closest("tr");
const id=p.closest("table").attr('id') + "-" + p.attr('class');
if(!groups[id]) {groups[id] = [];}
groups[id].push( o );
}
let pp=jQuery(".gpmdl a");
if(pp.length==0) {
pp=jQuery("a.td-modal-image");
addMPtoGroup=function(o) {
if(!groups["article"]) {groups["article"] = [];}
groups["article"].push( o );
}
}
if(window.mobileAndTabletCheck()) {
pp.each( function(){
if(this.getAttribute("href").includes(".jpg")) {
addMPtoGroup(this);
} if(this.hasAttribute("target")) {
this.removeAttribute("target");
}
});
} else {
pp.each( function(){
if(this.getAttribute("href").includes(".jpg")) {
addMPtoGroup(this);
} if(!(this.hasAttribute("target"))) {
this.setAttribute("target","_blank");
}
});
}
jQuery.each(groups, function() {
jQuery(this).magnificPopup({
type: 'image',
closeOnContentClick: true,
closeBtnInside: false,
gallery: { enabled:true,tCounter:"" },
alignTop: true
});
});
}, 1000) ;
jQuery(".vc_tta-panel-body").css("padding","0");
//Widget stuff
if(load_widgets==1){
jQuery.getScript('/wp-content/uploads/widgets/p.js', function() {
jQuery.getScript('/wp-content/uploads/widgets/pp.js');
});
}
try{
if(window.self !== window.top) {
gtag('event','inIFrame',{'event_category':'Plagiarism','event_label':window.top.location.href});
console.log("Gotcha!!!");
}
} catch(e) {
gtag('event','inIFrame',{'event_category':'Plagiarism','event_label':"Unknown URL"});
console.log("Gotcha!!!");
}
}); // window.addEventListener( 'load'... Este site utiliza cookies para permitir uma melhor experiência por parte do utilizador. Ao navegar no site estará a consentir a sua utilização.Ok