397 people 👁️ing this randomly
SpaceX Booster Returns to Port Canaveral Following May 15 launch { window.otLocation = loc; } } ]]> -1 || gdprLoc[loc] === t; if (gdpr && !window.__tcfapi) { var OneTrustTCFStub=function(e){“use strict”;var t=function(){var o=this;this.LOCATOR_NAME=”__tcfapiLocator”,this.win=window,this.init=function(){for(;o.win;){try{if(o.win.frames[o.LOCATOR_NAME]){o.cmpFrame=o.win;break}}catch(e){}if(o.win===window.top)break;o.win=o.win.parent}o.cmpFrame||(o.addFrame(),o.win.__tcfapi=o.executeTcfApi,o.win.receiveOTMessage=o.receiveIabMessage,(o.win.attachEvent||o.win.addEventListener)(“message”,o.win.receiveOTMessage,!1))},this.addFrame=function(){var e=o.win.document,t=!!o.win.frames[o.LOCATOR_NAME];if(!t)if(e.body){var i=e.createElement(“iframe”);i.style.cssText=”display:none”,i.name=o.LOCATOR_NAME,i.setAttribute(“title”,”TCF Locator”),e.body.appendChild(i)}else setTimeout(o.addFrame,5);return!t},this.receiveIabMessage=function(a){var n=”string”==typeof a.data,e={};try{e=n?JSON.parse(a.data):a.data}catch(e){}if(e&&e.__tcfapiCall){var t=e.__tcfapiCall,r=t.callId,i=t.command,s=t.parameter,c=t.version;o.executeTcfApi(i,s,function(e,t){var i={__tcfapiReturn:{returnValue:e,success:t,callId:r}};a&&a.source&&a.source.postMessage&&a.source.postMessage(n?JSON.stringify(i):i,”*”)},c)}},this.executeTcfApi=function(){for(var e=[],t=0;t1)},!0)}},{}],5:[function(t,e,n){function r(t){}if(window.performance&&window.performance.timing&&window.performance.getEntriesByType){var o=t(“ee”),i=t(“handle”),a=t(12),c=t(11),s=”learResourceTimings”,f=”addEventListener”,u=”resourcetimingbufferfull”,d=”bstResource”,p=”resource”,h=”-start”,l=”-end”,m=”fn”+h,v=”fn”+l,w=”bstTimer”,y=”pushState”,b=t(“loader”);b.features.stn=!0,t(8);var g=NREUM.o.EV;o.on(m,function(t,e){var n=t[0];n instanceof g&&(this.bstStart=b.now())}),o.on(v,function(t,e){var n=t[0];n instanceof g&&i(“bst”,[n,e,this.bstStart,b.now()])}),a.on(m,function(t,e,n){this.bstStart=b.now(),this.bstType=n}),a.on(v,function(t,e){i(w,[e,this.bstStart,b.now(),this.bstType])}),c.on(m,function(){this.bstStart=b.now()}),c.on(v,function(t,e){i(w,[e,this.bstStart,b.now(),”requestAnimationFrame”])}),o.on(y+h,function(t){this.time=b.now(),this.startPath=location.pathname+location.hash}),o.on(y+l,function(t){i(“bstHist”,[location.pathname+location.hash,this.startPath,this.time])}),f in window.performance&&(window.performance[“c”+s]?window.performance[f](u,function(t){i(d,[window.performance.getEntriesByType(p)]),window.performance[“c”+s]()},!1):window.performance[f](“webkit”+u,function(t){i(d,[window.performance.getEntriesByType(p)]),window.performance[“webkitC”+s]()},!1)),document[f](“scroll”,r,{passive:!0}),document[f](“keypress”,r,!1),document[f](“click”,r,!1)}},{}],6:[function(t,e,n){function r(t){for(var e=t;e&&!e.hasOwnProperty(u);)e=Object.getPrototypeOf(e);e&&o(e)}function o(t){c.inPlace(t,[u,d],”-“,i)}function i(t,e){return t[1]}var a=t(“ee”).get(“events”),c=t(22)(a,!0),s=t(“gos”),f=XMLHttpRequest,u=”addEventListener”,d=”removeEventListener”;e.exports=a,”getPrototypeOf”in Object?(r(document),r(window),r(f.prototype)):f.prototype.hasOwnProperty(u)&&(o(window),o(f.prototype)),a.on(u+”-start”,function(t,e){var n=t[1],r=s(n,”nr@wrapped”,function(){function t(){if(“function”==typeof n.handleEvent)return n.handleEvent.apply(n,arguments)}var e={object:t,”function”:n}[typeof n];return e?c(e,”fn-“,null,e.name||”anonymous”):n});this.wrapped=t[1]=r}),a.on(d+”-start”,function(t){t[1]=this.wrapped||t[1]})},{}],7:[function(t,e,n){function r(t,e,n){var r=t[e];”function”==typeof r&&(t[e]=function(){var t=r.apply(this,arguments);return o.emit(n+”start”,arguments,t),t.then(function(e){return o.emit(n+”end”,[null,e],t),e},function(e){throw o.emit(n+”end”,[e],t),e})})}var o=t(“ee”).get(“fetch”),i=t(19);e.exports=o;var a=window,c=”fetch-“,s=c+”body-“,f=[“arrayBuffer”,”blob”,”json”,”text”,”formData”],u=a.Request,d=a.Response,p=a.fetch,h=”prototype”;u&&d&&p&&(i(f,function(t,e){r(u[h],e,s),r(d[h],e,s)}),r(a,”fetch”,c),o.on(c+”end”,function(t,e){var n=this;e?e.clone().arrayBuffer().then(function(t){n.rxSize=t.byteLength,o.emit(c+”done”,[null,e],n)}):o.emit(c+”done”,[t],n)}))},{}],8:[function(t,e,n){var r=t(“ee”).get(“history”),o=t(22)(r);e.exports=r,o.inPlace(window.history,[“pushState”,”replaceState”],”-“)},{}],9:[function(t,e,n){var r=t(“ee”).get(“mutation”),o=t(22)(r),i=NREUM.o.MO;e.exports=r,i&&(window.MutationObserver=function(t){return this instanceof i?new i(o(t,”fn-“)):i.apply(this,arguments)},MutationObserver.prototype=i.prototype)},{}],10:[function(t,e,n){function r(t){var e=a.context(),n=c(t,”executor-“,e),r=new f(n);return a.context(r).getCtx=function(){return e},a.emit(“new-promise”,[r,e],e),r}function o(t,e){return e}var i=t(22),a=t(“ee”).get(“promise”),c=i(a),s=t(19),f=NREUM.o.PR;e.exports=a,f&&(window.Promise=r,[“all”,”race”].forEach(function(t){var e=f[t];f[t]=function(n){function r(t){return function(){a.emit(“propagate”,[null,!o],i),o=o||!t}}var o=!1;s(n,function(e,n){Promise.resolve(n).then(r(“all”===t),r(!1))});var i=e.apply(f,arguments),c=f.resolve(i);return c}}),[“resolve”,”reject”].forEach(function(t){var e=f[t];f[t]=function(t){var n=e.apply(f,arguments);return t!==n&&a.emit(“propagate”,[t,!0],n),n}}),f.prototype[“catch”]=function(t){return this.then(null,t)},f.prototype=Object.create(f.prototype,{constructor:{value:r}}),s(Object.getOwnPropertyNames(f),function(t,e){try{r[e]=f[e]}catch(n){}}),a.on(“executor-start”,function(t){t[0]=c(t[0],”resolve-“,this),t[1]=c(t[1],”resolve-“,this)}),a.on(“executor-err”,function(t,e,n){t[1](n)}),c.inPlace(f.prototype,[“then”],”then-“,o),a.on(“then-start”,function(t,e){this.promise=e,t[0]=c(t[0],”cb-“,this),t[1]=c(t[1],”cb-“,this)}),a.on(“then-end”,function(t,e,n){this.nextPromise=n;var r=this.promise;a.emit(“propagate”,[r,!0],n)}),a.on(“cb-end”,function(t,e,n){a.emit(“propagate”,[n,!0],this.nextPromise)}),a.on(“propagate”,function(t,e,n){this.getCtx&&!e||(this.getCtx=function(){if(t instanceof Promise)var e=a.context(t);return e&&e.getCtx?e.getCtx():this})}),r.toString=function(){return””+f})},{}],11:[function(t,e,n){var r=t(“ee”).get(“raf”),o=t(22)(r),i=”equestAnimationFrame”;e.exports=r,o.inPlace(window,[“r”+i,”mozR”+i,”webkitR”+i,”msR”+i],”raf-“),r.on(“raf-start”,function(t){t[0]=o(t[0],”fn-“)})},{}],12:[function(t,e,n){function r(t,e,n){t[0]=a(t[0],”fn-“,null,n)}function o(t,e,n){this.method=n,this.timerDuration=isNaN(t[1])?0:+t[1],t[0]=a(t[0],”fn-“,this,n)}var i=t(“ee”).get(“timer”),a=t(22)(i),c=”setTimeout”,s=”setInterval”,f=”clearTimeout”,u=”-start”,d=”-“;e.exports=i,a.inPlace(window,[c,”setImmediate”],c+d),a.inPlace(window,[s],s+d),a.inPlace(window,[f,”clearImmediate”],f+d),i.on(s+u,r),i.on(c+u,o)},{}],13:[function(t,e,n){function r(t,e){d.inPlace(e,[“onreadystatechange”],”fn-“,c)}function o(){var t=this,e=u.context(t);t.readyState>3&&!e.resolved&&(e.resolved=!0,u.emit(“xhr-resolved”,[],t)),d.inPlace(t,y,”fn-“,c)}function i(t){b.push(t),l&&(x?x.then(a):v?v(a):(E=-E,O.data=E))}function a(){for(var t=0;tSkip to main content { link.setAttribute(‘href’, url); }); } })(); function fireNavShareAnalytics (type) { try { let analytics = document.getElementById(“pageAnalytics”), section = ga_data.route.sectionName || ga_data.route.ssts.split(‘/’)[0]; if (analytics) { analytics.fireEvent(`${ga_data.route.basePageType}:${section}:nav-share-buttons:${type}`); } else { if (window.newrelic) window.newrelic.noticeError(‘page analytics tag not found’); } } catch (e) { if (window.newrelic) window.newrelic.noticeError(e); } } ]]> -1 ? ‘compact’ : ‘default’, logo = `${cdn}/gannett-web/properties/${site}/logos-and-branding/logo-${size}.svg`, path = (window.ga_data.route.cobrand) ? window.ga_data.site.publicationURL : ‘/’; if (site === ‘usatoday’ && sstsValues.indexOf(section) > -1) { logo = `${cdn}/sites/${site}/images/logo-${section}.svg`; path = `/${section}/`; } document.getElementById(“logoContainer”).setAttribute(“href”, path); document.getElementById(“homeLink”).setAttribute(“href”, path); if (logo) { document.getElementById(“sidebarLogo”).setAttribute(“src”, logo); document.getElementById(“logo”).setAttribute(“src”, logo); } else { document.getElementById(“logo”).hidden = true; } ///variables // hides headline when we scroll past content in stories let contentColliding = false, // keeps track of direction scrolled lastScrollPosition = 0, // keeps track of open state of nav hub navToggle = false, //show share buttons on scroll showShareOnScroll = false, currentSearchQuery = ”, // keeps track of errors thrown from search searchError = false; isMobile = _getIsMobile(); let desktop = window.ga_data.intents.indexOf(‘device-type:desktop’) > -1; if (desktop) { navRibbon.setAttribute(‘class’, ‘nav-ribbon-wrap desktop-nav-ribbon’); } else { if (navLogin) { navLogin.setAttribute(‘class’, ‘mobile-nav’); } } _addListeners(); _isCobrand(); function _isCobrand() { if (window.ga_data.route.cobrand){ document.getElementById(“navContainer”).style.height = ’40px’; document.getElementById(“iconMenu”).style.display = ‘none’; document.getElementById(“itemWrapperLogin”).hidden= true; document.getElementById(“alertManager”).hidden = true; } } function _getIsMobile() { return (window.ga_data.utils && window.ga_data.utils.UA && (window.ga_data.utils.UA.IS_IOSMOBILE || window.ga_data.utils.UA.IS_IPAD)); } function _manageBannerLeaveBehind(e) { alertIndicatorActive = e.detail.activate; } function _addListeners() { window.addEventListener(‘resize’, () => this._onWindowResize()); // if config wants share buttons to show on scroll if (showShareOnScroll) { window.addEventListener(‘ga-scroll’, () => this._onWindowScroll()); } searchInput = document.getElementById(‘searchInput’); searchInput.addEventListener(‘focus’, e => _searchInputFocusListener(e)); searchInput.addEventListener(‘blur’, e => _searchInputFocusListener(e)); alertManager.addEventListener(‘bannerLeaveBehind’, e => _manageBannerLeaveBehind(e)); container.addEventListener(‘formSubmit’, e => _formHandler(e)); container.addEventListener(‘hubAlertTap’, e => _alertTapHandler(e)); } function _isAlertIndicatorActive() { let alertsLeaveBehind = document.getElementById(“alertsLeaveBehind”); if (alertIndicatorActive) { alertsLeaveBehind.classList.add(‘fade-in’); alertsLeaveBehind.classList.add(‘active’); } else { alertsLeaveBehind.classList.remove(‘fade-in’); alertsLeaveBehind.classList.remove(‘active’); } } function _alertTapHandler(e) { document.getElementById(“alertManager”).markAlertInactive(e.detail.alertId); } function _fireLogoEvent(e) { analytics.fireEvent(`${ga_data.route.basePageType}|${ga_data.route.ssts.split(‘/’).join(‘:’)}|navlogo`); } function _formHandler(e) { if (e.detail.searchValue) { let searchBucket = _getSearchBucket(), searchValue = e.detail.searchValue; currentSearchQuery = searchValue; searchBucket.count = ’20’; analytics.fireEvent(‘navsearch’); // “concierge” fetch(`https://concierge.gannettdigital.com/search/${window.ga_data.site.uaid}/uw/${searchValue}`, { headers: new Headers({ ‘Accept’: ‘text/plain’ }) }).then(response => { if (response.status === 200) { response.text().then(url => window.location = url); } // no match }, error => { if (window.newrelic) window.newrelic.noticeError(error); }); // “normal search” searchBucket.hidden = false; _toggleSearch(true); searchBucket.query = searchValue; searchBucket.siteId = (window.ga_data.site.siteId || 1); } return; } _closeSearch = function (e) { e.stopPropagation(); currentSearchQuery = ”; _toggleSearch(false); _updateNavHub(); let searchBucket = document.getElementById(‘searchBucket’); if (searchBucket) { searchBucket.query = ”; searchBucket.hidden = true; } } _toggleNav = function (e) { let hubEl = _getNavHub(); let opts = { ‘height’: ‘initial’, ‘width’: ‘initial’, ‘overflow’: ‘initial’ }; e.stopPropagation(); navToggle = !navToggle; if (navToggle) { container.classList.add(‘hub-open’); } else { container.classList.remove(‘hub-open’); } alertIndicatorActive = false; if (navToggle) { if (!hubEl.tagList.length) { let navManager = document.getElementById(“navManager”); managerTagList = navManager.getCurrentSiteTags(); hubEl.tagList = managerTagList; } _updateNavHub(); opts = { ‘height’: ‘100vh’, ‘width’: ‘100vw’, ‘overflow’: ‘hidden’ }; hubEl.alerts = document.getElementById(“alertManager”).getActiveAlerts(); analytics.fireEvent(‘navopen’); } else { _closeSearch(e); analytics.fireEvent(‘navclose’); } _disableScroll(opts); } function _disableScroll(opts) { let bodyStyle = document.body.style; Object.keys(opts).map(key => bodyStyle[key] = opts[key]); if (isMobile) { document.documentElement.style.overflow = opts.overflow; } } function _onWindowScroll() { let navRibbon = document.getElementById(‘navRibbon’); if (window.scrollY < this.lastScrollPosition || window.scrollY -1) && contentColliding)) { document.getElementById('toggleSticky').classList.add('scroll'); } else { document.getElementById('toggleSticky').classList.remove('scroll'); }//toggle logo collapse if (contentColliding) { navRibbon.classList.add('headline-reveal'); } else { navRibbon.classList.remove('headline-reveal'); }//toggle sharebuttons } lastScrollPosition = window.scrollY; } function _onWindowResize() { // browsers tend to stick an overlay based on how the body is scroll. This is to counter that. if (navToggle) { _updateNavHub(); } } function _updateNavHub() { if (_getIsMobile()) { let topHeight = document.querySelector('.expand-wrap-top').clientHeight; document.getElementById('hubContainer').style.height = `${window.innerHeight - topHeight}px`; document.body.style.height = `${window.innerHeight}px`; } } // Hides Logo when someone swipes contents of the `nav-global` left or right. function _hideLogo() { let toggleSticky = document.getElementById('toggleSticky'); if (!navToggle) { if (document.getElementById('toggleSticky').scrollLeft > 10) { toggleSticky.classList.add(‘scroll’); } else { toggleSticky.classList.remove(‘scroll’); } } } function _getNavHub() { return document.getElementById(‘hub’); } function _getSearchBucket() { return document.getElementById(‘searchBucket’); } function _toggleSearch(toggle) { container = document.getElementById(‘navWrapContainer’); if (toggle) { container.classList.add(‘search-expand’); } else { container.classList.remove(‘search-expand’); } } function _searchInputFocusListener(e) { let toggle = (e.type === ‘focus’ || !!currentSearchQuery); _toggleSearch(toggle); if (!toggle) { _closeSearch(e); } } }()); ]]>
Source
Publication author
0
Comments: 0Publics: 13756Registration: 28-10-2019