
SOSTIENICI CON UNA DONAZIONE LIBERA SU


Stop all’esclusiva dei contenuti Dazn su TimVision. Dalla prossima settimana, prima della partenza del campionato fissata per sabato 13 agosto, l’app del gruppo inglese sarà disponibile su Sky con la creazione di un canale satellitare. Agli abbonati sarà necessario comunque un doppio abbonamento per vedere tutto il calcio.
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
window.addEventListener('click', function(e){for(const z of document.querySelectorAll('.site-header__menu')){if(z.querySelector('.js--toggle-site-header__menu')){if(z.querySelector('.js--toggle-site-header__menu').contains(e.target)){z.classList.add("site-header__menu--active");}else{z.classList.remove("site-header__menu--active");}}}});
function magictoggle(X){var d = document.querySelector(X);if (d.style.display == '' || d.style.display == 'none') {d.style.display = 'block';} else {d.style.display = 'none'}}
document.querySelector(".js--toggle-sidebar").addEventListener("click", function() {document.querySelector("body").classList.toggle("sidebar--active"); });
for(const w of document.querySelectorAll('.js--toggle-search')){if(w){w.addEventListener('click', function() {magictoggle('.site-header__search-dropdown');});}} if(document.querySelector('.site-header__overlay')){document.querySelector('.site-header__overlay').addEventListener('click', function() {document.querySelector('body').classList.remove('site-header__container--search-open');document.querySelector('.site-header__search-dropdown').style.display='none';document.querySelector('.site-header__overlay').style.display='none';});}
document.querySelector(".site-header__dropdown").addEventListener("click", function (e) { e.stopPropagation();});
if(document.querySelector(".site-header__menu-label--guardaci")){document.querySelector(".site-header__menu-label--guardaci").addEventListener("click", function() {document.querySelector(".site-header__dropdown-item--podcast, .site-header__dropdown-item--video").classList.add("site-header__dropdown-item--hidden");});}
if(document.querySelector(".site-header__dropdown-item--7-7")){document.querySelector(".site-header__dropdown-item--7-7").addEventListener("click", function() {document.querySelector(".site-header__dropdown-item--podcast, .site-header__dropdown-item--video").classList.toggle("site-header__dropdown-item--hidden");});}
window.addEventListener("load", function(){ setTimeout(function(){ putRightURLsOnProfile(); }, 1000); });
function putRightURLsOnProfile(){ let profileURL = document.querySelector(".main-menu-item--my_page a"), profileLink = document.getElementById("dedicated-area-link");
if(profileURL!=null){ profileURL = profileURL.getAttribute('href'); profileLink && profileLink.setAttribute('href', profileURL); } }
});
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '922014154625678'); fbq('track', 'PageView');
document.addEventListener('consentGranted', function() { // call google analytics // call nielsen // call comscore // call whomever });
});
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
let S = document.createElement('script');
S.src = "https://www.laverita.info/static/js/roar/laverita/video.min.js"; document.body.appendChild(S);
S.src = "//imasdk.googleapis.com/js/sdkloader/ima3.js"; document.body.appendChild(S);
S.src = "/static/js/roar/laverita/video-contrib.min.js"; document.body.appendChild(S);
S.src = "/static/js/roar/laverita/videojs.ima.min.js"; document.body.appendChild(S);
S.src = "/static/js/roar/laverita/video-yt.min.js"; document.body.appendChild(S);
});
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
var sidebar = document.querySelector('.sticky-sidebar'); if(sidebar){ $tresholdContainer = document.querySelector('.main-content-stream'), $mainContent = document.querySelector('.main-content-stream .main-column'), iTopSpacing = 57, // height of shrinked top menu iBottomSpacing = 40; // spacing to bottom of page
console.log(sidebar); var sidebarReset = function () { sidebar.classList.remove('sidebar--fixed'); sidebar.removeAttribute('style'); };
var sidebarFixed = function (top, bottom, width) { sidebar.classList.add('sidebar--fixed'); sidebar.style.top=top; sidebar.style.bottom=bottom; sidebar.style.width=width; } // TODO: we need to add debounce window.addEventListener('scroll', function() { if( !sidebar.classList.contains(':visible') ) {return false;}
var iOffsetTop = sidebar.scrollTop, iHeaderHeight = $tresholdContainer.offset().top, iSidebarHeight = sidebar.offsetHeight, iWindowHeight = document.querySelector(window).offsetHeight, iSidebarWidth = $tresholdContainer.width() - $mainContent.outerWidth - 50;
if( iSidebarHeight + iBottomSpacing + iTopSpacing < iWindowHeight ){ var topTreshold = iHeaderHeight - iOffsetTop; if( topTreshold <= iTopSpacing ){ sidebarFixed(iTopSpacing, 'auto', iSidebarWidth); } else { sidebarReset(); } } else { var bottomTreshold = iHeaderHeight + iSidebarHeight + iBottomSpacing - iWindowHeight; if( bottomTreshold < iOffsetTop ){ sidebarFixed('auto', iBottomSpacing, iSidebarWidth); } else { sidebarReset(); } } }); } window.addEventListener('resize', function(event){ window.scrollTo(window.scrollX, window.scrollY - 1); window.scrollTo(window.scrollX, window.scrollY + 1); }); }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ for(var i of document.querySelectorAll('.post-video')){if(i){ i.addEventListener('click',function(){ if (!i.classList.contains("active")) { var vid = "vid-" + new Date().getTime(), video_url= i.attr('data-src'), isS3 = video_url.indexOf("s3.amazonaws.com") > -1, techOrder = isS3 ? '["html5"]' : '["youtube"]', sourceType = isS3 ? '"video/mp4"' : '"video/youtube"', player; var siteUrl = window.location.hostname; var pageUrl = document.location; var description = encodeURIComponent(pageUrl); var refPageUrl = document.referrer; var correlatorVal = Date.now(); i.classList.toggle("active"); i.html(''); player = videojs(vid, {}, function(){ !device.isiOS && this.play(); }); player.ima({ id: vid, adTagUrl: 'https://pubads.g.doubleclick.net/gampad/ads?iu=/150134580/laverita-Preroll&description_url="+description+"&site="+siteUrl+"&url=pageUrl&ref="+refPageUrl+"&env=vp&impl=s&correlator="+correlatorVal+"&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=640x480&unviewed_position_start=1' }); } }); }}
});
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
function ChangeListener(t,n){const o=new Set([]);document.querySelectorAll(t).forEach(e=>{n(e),o.add(e)});const e=new MutationObserver(()=>{const e=document.querySelectorAll(t);e.forEach(e=>{o.has(e)||(n(e),o.add(e))})});e.observe(document.body,{childList:!0,subtree:!0})}
ChangeListener('.infogram-embed',function(e){e.classList.add('nocollapse-listicle');
e.addEventListener('click',function(c){e.classList.toggle('nocollapse-listicle');});
});
});
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
// First Le Firme Post var authorAvatar1 = document.querySelectorAll('.sidebar-posts .social-author__avatar')[0]; var widgetHeadline1 = document.querySelectorAll('.sidebar-posts .widget__headline')[0];
// Second Le Firme Post var authorAvatar2 =document.querySelectorAll('.sidebar-posts .social-author__avatar')[1]; var widgetHeadline2 = document.querySelectorAll('.sidebar-posts .widget__headline')[1]; widgetHeadline1.insertAdjacentElement('beforebegin', authorAvatar1); widgetHeadline2.insertAdjacentElement('beforebegin', authorAvatar2);
// Multiple author var sidebarPosts = document.getElementsByClassName('sidebar-posts');
for (i = 0; i < sidebarPosts.length; i++) { var allFirst = sidebarPosts[i].querySelectorAll('.first'); var socialAuthorName = sidebarPosts[i].querySelectorAll('.social-author__name'); if (socialAuthorName.length >= 2) { sidebarPosts[i].classList.add("sidebar__multi-author"); } }
});
window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){
var le_firme_links = document.querySelectorAll('.sidebar-posts-js .widget__body .widget__headline-text');
var three_sidebar_posts_links = document.querySelectorAll('.three-sidebar-posts-js .widget__body .widget__headline-text');
var one_sidebar_posts_links = document.querySelectorAll('.one-sidebar-post-js .widget__body .widget__headline-text');
addParamsAndClass(le_firme_links,'?utm_source=sidebar','js--sidebar-le-firme','js--do-not-track-internal-link');
addParamsAndClass(three_sidebar_posts_links,'?utm_source=sidebar','sidebar__post__headline','js--do-not-track-internal-link');
addParamsAndClass(one_sidebar_posts_links,'?utm_source=sidebar','posts-sidebar-sponsored','js--do-not-track-internal-link');
});
Source link