Todd Heisler/The New York Instances
Eduardo Munoz/Reuters
Amr Alfiky/The New York Instances
John Taggart for The New York Instances
Erin Schaff/The New York Instances
Anna Moneymaker for The New York Instances
Chang W. Lee/The New York Instances
Amr Alfiky/The New York Instances
Todd Heisler/The New York Instances
pictures.length-1) counter = 0 pictures[counter].classList.add(‘g-home-fader-photo-active’); // console.log(prev, counter) setTimeout(perform(){ // console.log(prev, counter) pictures[prev].classList.take away(‘g-home-fader-photo-active’); }, 250) }, velocity); // NYT app detection code var isInApp = !!( // typically this question param is current window.location.search.indexOf(‘nytapp’) > -1 || // often the consumer agent is ready window.navigator.userAgent.match(/nyt[-_]?(?:ios|android)/i) || // on hybrid articles in android, the consumer agent and qs is lacking (window.navigator.userAgent.match(/android/i) && window.__HYBRID__) ); var isInAppHome = doc.querySelector(‘.nytapp-home-interactive’) !== null; var isAndroid = window.navigator.userAgent.indexOf(‘Android’) > -1; var isIos = !!window.navigator.userAgent.match(/iP(hone|advert)/i); if (isInApp && isAndroid) doc.querySelector(‘html’).classList.add(‘nytapp-android’); if (isInApp && isIos) doc.querySelector(‘html’).classList.add(‘nytapp-ios’); // do not resize if within programming checklist if (!doc.querySelector(“#programming-list”)) { // NYT apps resize perform // Resizes the interactive webview peak after a 1 second pause if ( window.NYTG && window.NYTG.enqueue) { setTimeout(perform() { var container = doc.querySelector(“#international-home-fader.g-home-fader”); var windowWidth = window.innerWidth; perform resize() { var peak = container.offsetHeight; window.NYTG.enqueue( JSON.stringify({ id: 0, kind: ‘resize’, choices: { peak: peak } }) ) } window.addEventListener(“resize”, perform() { if ( window.innerWidth != windowWidth ) { windowWidth = window.innerWidth; resize(); } }); resize(); }, 1000); } } })(); ]]>
Dwell
1s in the past