1/* Asymco â site-wide tagline rotator. Fades the .wp-block-site-tagline 2 element through a list of statements. The first entry should match the 3 WordPress Settings â General â Tagline so there's no flash on first paint. */ 4(function () { 5 'use strict'; 6 7 // Edit this list to change the rotating tagline statements. 8 // HTML entities (“ ” —) are supported. 9 var HEADLINES = [ 10 'Asymmetric Intelligence', 11 '“This single article & the recorded Q&A is worth a full year\'s subscription.”', 12 '“Just started following Asymco — what a must!” — Jim Cramer, CNBC', 13 '“His charts are worth 1,000 words.” — Business Insider', 14 '“The new king of Apple analysts.” — Fortune', 15 '“World’s most respected Apple analyst.” — Macfilos', 16 ]; 17 var INTERVAL_MS = 9000; 18 var FADE_MS = 1400; 19 20 function init() { 21 var el = document.querySelector('.wp-block-site-tagline'); 22 if (!el || HEADLINES.length < 2) return; 23 24 // Wrap current contents in an anchor we can fade â the whole tagline 25 // links to /one/#mentions so every rotating headline doubles as a CTA 26 // landing on the Notable Mentions section. 27 var inner = document.createElement('a'); 28 inner.href = '/one/#mentions'; 29 inner.className = 'asymco-tagline-rotator'; 30 inner.style.color = 'inherit'; 31 inner.style.textDecoration = 'none'; 32 inner.innerHTML = el.innerHTML; 33 el.innerHTML = ''; 34 el.appendChild(inner); 35 el.classList.add('asymco-tagline-rotator-host'); 36 37 var i = 0; 38 setInterval(function () { 39 inner.classList.add('is-fading'); 40 setTimeout(function () { 41 i = (i + 1) % HEADLINES.length; 42 inner.innerHTML = HEADLINES[i]; 43 inner.classList.remove('is-fading'); 44 }, FADE_MS); 45 }, INTERVAL_MS); 46 } 47 48 if (document.readyState === 'loading') { 49 document.addEventListener('DOMContentLoaded', init); 50 } else { 51 init(); 52 } 53})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.