diff --git a/app/static/index.html b/app/static/index.html index 28b058a..3b9b430 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -720,7 +720,7 @@ -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%); } .tick-track { display: flex; width: max-content; animation: marquee 60s linear infinite; } - .ticker.news .tick-track { animation-duration: 240s; } /* fallback; JS sets constant px/s */ + .ticker.news .tick-track { animation-duration: 90s; } .tick-wrap:hover .tick-track, .tick-wrap:focus-within .tick-track { animation-play-state: paused; } @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } } .tick-group { display: flex; align-items: center; } @@ -1874,7 +1874,6 @@ function initMarketTicker() { /* ═══════════════ NEWS FEED + TICKER ═══════════════ */ let newsInterval = null; const NEWS_REFRESH_MS = 180000; // 3-min ticker/brief poll -const NEWS_TICKER_PX_PER_S = 28; // constant readable scroll speed for the news ticker let newsTickerBuilt = false; function newsEsc(s) { @@ -2017,13 +2016,6 @@ function renderNewsTicker(articles, summaries, tickerItems) { items = `No headlines yet — scraper idle`; } track.innerHTML = `${items}${items}`; - // Constant pixel speed regardless of headline count: the marquee travels - // one group width (track = two identical copies, keyframe goes to -50%). - // Recomputed on every rebuild; market ticker keeps its own CSS duration. - const groupWidth = track.scrollWidth / 2; - track.style.animationDuration = groupWidth > 0 - ? `${(groupWidth / NEWS_TICKER_PX_PER_S).toFixed(2)}s` - : ''; newsTickerBuilt = true; } @@ -2547,12 +2539,10 @@ async function initMap() { const sel = document.getElementById('map-layer'); sel.innerHTML = mapLayers.map(l => ``).join(''); - // Blue Marble first: static, gap-free basemap. Satellite true-color - // (VIIRS/MODIS) has cloud/coverage gaps — still selectable below. const preferred = - mapLayers.find(l => l.id === 'BlueMarble_ShadedRelief_Bathymetry') - || mapLayers.find(l => l.id === 'VIIRS_SNPP_CorrectedReflectance_TrueColor') + mapLayers.find(l => l.id === 'VIIRS_SNPP_CorrectedReflectance_TrueColor') || mapLayers.find(l => l.id === 'MODIS_Terra_CorrectedReflectance_TrueColor') + || mapLayers.find(l => l.id === 'BlueMarble_ShadedRelief_Bathymetry') || mapLayers.find(l => !l.has_time) || mapLayers[0]; if (preferred) sel.value = preferred.id;