November 10, 2024

Xfinity Series Highlights

Ty Gibbs #TyGibbs

Ty Gibbs, Noah Gragson exchange on-track blows at Portland | NASCAR Skip to content

Xfinity Series Highlights

‘; } else { htmlLeftBtn = ‘

‘+ ”+ ‘LIVE’+ ‘

‘; } //event details if(disableLiveFeed){ htmlEventDetails = ” + ‘

‘+eventRaceName+’

‘ + ”; } else { htmlEventDetails = ” + ‘

‘+eventRaceName+’

‘ + ” + ” + ” + ”; } //right button htmlRightBtn = ”+ ”+ctaButtonText+”+ ”; htmlData = ‘

‘ + htmlLeftBtn + htmlEventDetails + htmlRightBtn + ‘

‘; function addTicker(htmlData){ jQuery(‘.header’).append(htmlData); var tickerHeight = jQuery(“.live-notification-bar “).height(); jQuery(“.live-notification-bar “).parent().next().css(“padding-top”, (tickerHeight-6)+”px”);//TO DO: Remove the additional 6 paddings once Mweb redesign launches if(jQuery(“.mobile-featured-container .mobile-featured-buttons”)[0] ){ var tabsAdjustment = tickerHeight + 40; var tabsHeight = jQuery(“.mobile-featured-container .mobile-featured-buttons”).height(); jQuery(“.mobile-featured-inner-container-items”).css(“margin-top”, tabsHeight+”px”); jQuery(“.mobile-featured-container .mobile-featured-buttons”).css(“top”, tabsAdjustment+”px”); } } if(!disableTicker){ if(!eventRaceName){ jQuery.ajax({ type: “GET”, url: ‘/wp-admin/admin-ajax.php’, data: { action: ‘global_events_lookup’, meta_query: {“eventType”: “schedule”, “eventSeries”:ticker_seriesID, “eventRaceID”:raceID} }, success: function (json) { var event_data = JSON.parse(json); console.log(“event data”, event_data); eventRaceName = event_data[‘eventName’]; addTicker(htmlData); jQuery(‘.live-event-name’).text(eventRaceName); if(runType == “3”){ jQuery(‘.live-event-type span’).hide(); jQuery(‘.live-event-stage’).show(); jQuery(‘.live-event-laps’).show(); jQuery(‘.live-event-type’).addClass(“separator”); } else { jQuery(‘.live-event-type span’).show(); jQuery(‘.live-event-stage’).hide(); jQuery(‘.live-event-laps’).hide(); } }, error: function (xhr, status, error) { var err = eval(“(” + xhr.responseText + “)”); console.log(“err”, err); addTicker(htmlData); } }); } else { addTicker(htmlData); } } } if(jQuery(“.live-notification-bar”)[0] && !disableLiveFeed ){ //Already exist only update details that can change jQuery(‘.live-race-indicator’).attr(‘class’, ‘live-left-button live-race-indicator race-center-live-‘+flagState); if(runType == “3”){ jQuery(‘.live-event-type span’).hide(); jQuery(‘.live-event-type’).addClass(“separator”); jQuery(‘.live-event-stage’).show(); jQuery(‘.live-event-stage’).html(‘Stage: ‘+liveData[‘stage’][‘stage_num’]+’ of ‘+(eval(totalStages).filter(Boolean).length + 1)+”); jQuery(‘.live-event-laps’).show(); jQuery(‘.live-event-laps’).html(‘Laps: ‘+lapsComplete+’/’+lapsTotal+”); } else { jQuery(‘.live-event-type span’).show(); jQuery(‘.live-event-type’).removeClass(“separator”); jQuery(‘.live-event-stage’).hide(); jQuery(‘.live-event-laps’).hide(); } } }else{ jQuery(‘.live-notification-bar’).remove(); jQuery(“.live-notification-bar “).parent().next().prop(“padding-top”); if(jQuery(“.mobile-featured-container .mobile-featured-buttons”)[0] ){ jQuery(“.mobile-featured-container .mobile-featured-buttons”).css(“top”, “40px”); jQuery(“.mobile-featured-inner-container-items”).css(“margin-top”, “”); } } } function rightBtn(a){ var btnTitle = jQuery(‘.live-right-button span’).text(); var txt = ‘ticker:’+ btnTitle; s.linkTrackVars=’events,eVar55,prop22,prop43′; s.linkTrackEvents=’event63′; s.eVar55=txt; s.prop22=s.pageName; s.prop43=s.eVar55; s.events=’event63′; s.tl(this,’o’,txt); }

Leave a Reply