1document.addEventListener('DOMContentLoaded', function () { 2 const btn = document.getElementById("scrollToTop"); 3 4 window.onscroll = function () { 5 if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { 6 btn.style.display = "flex"; 7 } else { 8 btn.style.display = "none"; 9 } 10 }; 11 12 btn.onclick = function () { 13 window.scrollTo({ top: 0, behavior: 'smooth' }); 14 }; 15 16 const toggleLink = document.querySelector('.show-my-journey'); 17 const menu = document.getElementById('after-login-menu'); 18 const showMyJourney = document.getElementById('show-my-journey'); 19 20 if (toggleLink && menu && showMyJourney) { 21 toggleLink.addEventListener('click', function () { 22 if (menu.style.display === 'none' || menu.style.display === '') { 23 menu.style.display = 'flex'; 24 showMyJourney.classList.add('show'); 25 } else { 26 menu.style.display = 'none'; 27 showMyJourney.classList.remove('show'); 28 } 29 }); 30 } 31});
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.