NASCAR Official Dwelling

‘; } else { htmlLeftBtn = ‘

‘+ ‘‘+ ‘LIVE’+ ‘

‘; } //occasion particulars if(disableLiveFeed){ htmlEventDetails = ” + ‘

‘+eventRaceName+’

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

‘+eventRaceName+’

‘ + ‘

Laps: ‘+lapsComplete+’/’+lapsTotal+’

‘ + ‘

‘+raceType+’

‘ + ‘

Stage: ‘+liveData[‘stage’][‘stage_num’]+’ of ‘+(eval(totalStages).filter(Boolean).size + 1)+’

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

‘ + htmlLeftBtn + htmlEventDetails + htmlRightBtn + ‘

‘; operate addTicker(htmlData){ jQuery(‘.header’).append(htmlData); var tickerHeight = jQuery(“.live-notification-bar “).top(); jQuery(“.live-notification-bar “).father or mother().subsequent().css(“padding-top”, (tickerHeight-6)+”px”);//TO DO: Take away the extra 6 paddings as soon as 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”).top(); jQuery(“.mobile-featured-inner-container-items”).css(“margin-top”, tabsHeight+”px”); jQuery(“.mobile-featured-container .mobile-featured-buttons”).css(“high”, tabsAdjustment+”px”); } } if(!disableTicker){ if(!eventRaceName){ jQuery.ajax({ kind: “GET”, url: ‘/wp-admin/admin-ajax.php’, knowledge: { motion: ‘global_events_lookup’, meta_query: {“eventType”: “schedule”, “eventSeries”:ticker_seriesID, “eventRaceID”:raceID} }, success: operate (json) { var event_data = JSON.parse(json); console.log(“occasion knowledge”, event_data); eventRaceName = event_data[‘eventName’]; addTicker(htmlData); jQuery(‘.live-event-name’).textual content(eventRaceName); if(runType == “3”){ jQuery(‘.live-event-type span’).conceal(); jQuery(‘.live-event-stage’).present(); jQuery(‘.live-event-laps’).present(); jQuery(‘.live-event-type’).addClass(“separator”); } else { jQuery(‘.live-event-type span’).present(); jQuery(‘.live-event-stage’).conceal(); jQuery(‘.live-event-laps’).conceal(); } }, error: operate (xhr, standing, error) { var err = eval(“(” + xhr.responseText + “)”); console.log(“err”, err); addTicker(htmlData); } }); } else { addTicker(htmlData); } } } if(jQuery(“.live-notification-bar”)[0] && !disableLiveFeed ){ //Exist already solely replace particulars that may 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’).conceal(); jQuery(‘.live-event-type’).addClass(“separator”); jQuery(‘.live-event-stage’).present(); jQuery(‘.live-event-stage’).html(‘Stage: ‘+liveData[‘stage’][‘stage_num’]+’ of ‘+(eval(totalStages).filter(Boolean).size + 1)+”); jQuery(‘.live-event-laps’).present(); jQuery(‘.live-event-laps’).html(‘Laps: ‘+lapsComplete+’/’+lapsTotal+”); } else { jQuery(‘.live-event-type span’).present(); jQuery(‘.live-event-type’).removeClass(“separator”); jQuery(‘.live-event-stage’).conceal(); jQuery(‘.live-event-laps’).conceal(); } } }else{ jQuery(‘.live-notification-bar’).take away(); jQuery(“.live-notification-bar “).father or mother().subsequent().prop(“padding-top”); if(jQuery(“.mobile-featured-container .mobile-featured-buttons”)[0] ){ jQuery(“.mobile-featured-container .mobile-featured-buttons”).css(“high”, “40px”); jQuery(“.mobile-featured-inner-container-items”).css(“margin-top”, “”); } } } operate rightBtn(a){ var btnTitle = jQuery(‘.live-right-button span’).textual content(); var txt = ‘ticker:’+ btnTitle; s.linkTrackVars=’occasions,eVar55,prop22,prop43′; s.linkTrackEvents=’event63′; s.eVar55=txt; s.prop22=s.pageName; s.prop43=s.eVar55; s.occasions=’event63′; s.tl(this,’o’,txt); } -1){ lang_reg = ‘es_US’; } var channel_reg = ‘nscr-‘; if(window.location.href.indexOf(‘nascar.com’) == -1){ var channel_reg = digitalData.web page.pageInfo.channel + ‘-‘; } jQuery(‘.navbar .navbar-container ul.major > li > a’).not(‘.listing’).click on(operate(e) { var navlink = jQuery(this).textual content(); var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink + ‘-primary’); }); //spanish nav tabs jQuery(‘#menu-main-nav x3e li a’).click on(operate(e) { navlink = jQuery(this).textual content().change(/s/g,”); if (jQuery(this).hasClass(‘search’)) { navlink = navlink + ‘search’; } else { if (jQuery(this).hasClass(‘lively’)) { navlink = navlink + ‘-open’; } else { navlink = navlink + ‘-exit’; } } var menuType = (/sub/i.take a look at(this.parentNode.parentNode.getAttribute(‘class’)))? ‘secondary’ : ‘major’; clt_navclick(channel_reg+lang_reg+’-min-nav-‘ + navlink + ‘-‘+menuType); }); //spanish high nav hyperlinks jQuery(‘.top-nav-inner-container li a’).click on(operate(e){ var linkName = this.innerText; clt_navclick(channel_reg+lang_reg+’-min-nav-‘ + linkName + ‘-primary’); }); //spanish Search button in high nav jQuery(‘#searchform’).submit(operate(e){ var searchTerm = doc.querySelector(‘#s’).worth; clt_navclick(channel_reg+lang_reg+’-min-nav-‘ + searchTerm + ‘-primary’); }); //spanish Socials in Prime Nav jQuery(‘[class*=”secondary-navigation”] a[class=”social-header-icon”]’).click on(operate(e){ var social = this.getAttribute(‘href’); social = (/twitter/i.take a look at(social))? ‘TWITTER’ : (/fb/i.take a look at(social))? ‘FACEBOOK’ : (/youtube/i.take a look at(social))? ‘YOUTUBE’ : (/instagram/i.take a look at(social))?’INSTAGRAM’ : ‘unknown’; clt_navclick(channel_reg+lang_reg+’-min-nav-‘ + social + ‘-primary’); }); //father or mother tabs extra jQuery(‘.navbar .navbar-container ul.major > li > a’).click on(operate(e) { navlink = jQuery(this).discover(‘a’).textual content().change(/s/g,”); var activeSeriesParentTabs = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); if (jQuery(this).hasClass(‘search’)) { navlink = navlink + ‘search’; } else { if (jQuery(this).discover(‘a’).hasClass(‘lively’)) { navlink = navlink + ‘-open’; } else { navlink = navlink + ‘-exit’; } } clt_navclick(activeSeriesParentTabs + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink + ‘-primary’); }); jQuery(‘.navbar .navbar-container ul.major > li.search.no-mobile > a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-open-search’); }); jQuery(‘.searchbar button.set off, .searchbar enter[type=submit]’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); if (!activeSeries) { var activeSeries = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); } clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-search-keyword: ‘ + jQuery(‘#search-string’).val()); }); jQuery(‘.mobileLoginAndSearch .search a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-open-search-mobile’); }); jQuery(‘.mobileLoginAndSearch .login .registerOrLogin a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); if (!activeSeries) { var activeSeries = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); } clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-login-register-mobile’); }); jQuery(‘.registerOrLogin > a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); if (!activeSeries) { var activeSeries = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); } var navitem = jQuery(this); var navlink = navitem.textual content(); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-login-register-‘ + navlink); }); jQuery(‘.navmenu ul.secondary > li > a’).not(‘.promolink’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); var navitem = jQuery(this); var navlink = navitem.textual content(); if (!navitem.father or mother().hasClass(‘secondary-dropdown’)) { clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-secondary’); } }); jQuery(‘.navmenu ul.secondary > li > a.promolink’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); var navlink = jQuery(this).textual content(); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-promolink’); }); jQuery(‘.navmenu ul.secondary > li.secondary-dropdown > ul > li > a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); var navlink = jQuery(this).textual content(); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-secondary-dropdown-link’); }); jQuery(‘.navmenu ul.secondary > li.secondary-dropdown > a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); var navlink = jQuery(this).textual content(); clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-secondary-dropdown-expand’); }); //social jQuery(‘.navmenu ul.tertiary > li > a’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); var navlink = jQuery(this).father or mother().attr(‘class’); if (navlink == ‘social’) { navlink = jQuery(this).discover(‘i’).attr(‘class’).cut up(‘ ‘).pop(); } clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-tertiary’); }); jQuery(‘.alertbar .major a’).click on(operate(e) { var navlink = jQuery(this).textual content(); if (!activeSeries) { var activeSeries = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); } clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-alertbar’); }); jQuery(‘.alertbar ul.sociallinks a’).click on(operate(e) { var navlink = jQuery(this).discover(‘i’).attr(‘class’).cut up(‘ ‘).pop(); if (!activeSeries) { var activeSeries = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); } clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlink.trim() + ‘-alertbar:social’); }); jQuery(‘.barmark’).click on(operate(e) { var activeSeries = jQuery(‘.tertiary .lively’).attr(‘data-series’); if (!activeSeries) { var activeSeries = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); } clt_navclick(activeSeries + ‘-‘+channel_reg+lang_reg+’-min-nav-main-logo’); }); /* * finish nav CQ Nav */ //Wordpress high nav jQuery(‘.navbar .navbar-container ul.nav-primary > li’).click on(operate(e) { navlink = jQuery(this).discover(‘.no-mobile.no-tablet.tab’).textual content().change(/s/g,”); if (jQuery(this).hasClass(‘search’)) { navlink = navlink + ‘search’; } else { var navlink = jQuery(this).discover(‘a’).textual content(); } clt_navclick(channel_reg+lang_reg+’-min-nav-‘ + navlink + ‘-primary’); }); //all listing objects beneath father or mother tab jQuery(‘.navmenu ul.nav-secondary > li.nav-item’).click on(operate(e) { var activeSeriesAllListItems = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); var navlinkAllListItems = jQuery(this).discover(‘a:first’).textual content(); if (jQuery(this).hasClass(‘secondary-dropdown’)) { //objects is beneath extra desk var sufSecondary = ‘-secondary-dropdown-expand’; } else { var sufSecondary = ‘-secondary’; } clt_navclick(activeSeriesAllListItems + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlinkAllListItems.trim() + sufSecondary); }); //for beneath extra tab jQuery(‘.navmenu ul.nav-secondary > li.secondary-dropdown > ul > li > a’).click on(operate(e) { var activeSeriesUnderMoreTab = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); var navlinkUnderMoreTab = jQuery(this).textual content(); clt_navclick(activeSeriesUnderMoreTab + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlinkUnderMoreTab.trim() + ‘-secondary-dropdown-link’); }); //for beneath extra tab collection particular jQuery(‘.navmenu ul.nav-tertiary > li[data-series] > a’).click on(operate(e) { var activeSeriesSeriesSpecific = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); var navlinkSeriesSpecific = jQuery(this).father or mother().attr(‘data-series’); clt_navclick(activeSeriesSeriesSpecific + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlinkSeriesSpecific.trim() + ‘-tertiary’); }); //for spanish jQuery(‘.navmenu ul.nav-tertiary > li.nav-item.lang a’).click on(operate(e) { var activeSeriesSpanish = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); var navlinkSpanish = jQuery(this).textual content(); clt_navclick(activeSeriesSpanish + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlinkSpanish + ‘-tertiary’); }); //for social jQuery(‘.navmenu ul.nav-tertiary > li.social a’).click on(operate(e) { var activeSeriesSocial = jQuery(‘.nav-tertiary .lively’).attr(‘data-series’); var navlinkSocial = jQuery(this).discover(‘i’).attr(‘class’).cut up(‘ ‘).pop(); clt_navclick(activeSeriesSocial + ‘-‘+channel_reg+lang_reg+’-min-nav-‘ + navlinkSocial.trim() + ‘-tertiary’); }); //for unread bell posts jQuery(‘div.unread-post-list > div.unread-post-container a’).click on(operate(e){ var linkName = jQuery(this).discover(‘.unread-post-title’).textual content(); clt_navclick(channel_reg+lang_reg+’-unread-post-nav-‘ + linkName); }); //Cellular PWA emblem jQuery(‘.navbar-mobile-container .emblem a’).click on(operate(e) { clt_navclick(‘pwa-logo-barmark’); }); //Cellular PWA Store jQuery(‘.navbar-mobile-container .mobile-store-shop’).click on(operate(e) { clt_navclick(‘pwa-mobile-store-shop’); }); //Cellular PWA Function nav jQuery(‘div.mobile-featured-button span’).click on(operate(e) { var txt = jQuery(this).textual content(); clt_navclick(‘pwa-featured-button-‘+txt); }); //Cellular PWA Function Hamburger jQuery(‘#mobile-hamburger’).click on(operate(e) { clt_navclick(‘pwa-hamburger’); }); //Cellular PWA Slide nav jQuery(‘#mobileSideNav div a, .mobileSideNavInner a’).click on(operate(e) { var txt = jQuery(this).attr(‘title’); clt_navclick(‘pwa-slide-nav-‘+txt); }); //Cellular PWA Footer Tab jQuery(‘.footer-tab-item .footer-tab-text a’).click on(operate(e) { var txt = jQuery(this).textual content(); clt_navclick(‘pwa-footer-tab-‘+txt); }); ]]>

Source

Auto Business Travel News