1var vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) 2var vert = document.getElementById('logo_v') 3var horiz = document.getElementById('logo_h') 4var navbar = document.getElementById('nav-container') 5 6document.addEventListener('DOMContentLoaded', function () { 7 if (vw > 991 && vert) { 8 navbar.classList.remove('sticky-top'); 9 navbar.classList.add('fixed-top'); 10 swapLogo(); 11 } else { 12 navbar.classList.add('sticky-top'); 13 navbar.classList.remove('fixed-top'); 14 horiz.classList.remove('hide'); 15 navbar.classList.add('bg-dark'); 16 } 17 horiz.classList.remove('d-none'); 18}); 19 20window.onscroll = function () { 21 if (vw > 991 && vert) { 22 swapLogo() 23 } 24} 25 26window.onresize = function () { 27 vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) 28 if (vw > 991 && vert) { 29 navbar.classList.remove('sticky-top') 30 navbar.classList.add('fixed-top') 31 swapLogo() 32 } else { 33 navbar.classList.add('sticky-top') 34 navbar.classList.remove('fixed-top') 35 horiz.classList.remove('hide') 36 navbar.classList.add('bg-dark') 37 } 38} 39 40function swapLogo() { 41 if (window.pageYOffset > 200) { 42 vert.classList.add('hide') 43 horiz.classList.remove('hide') 44 navbar.classList.add('bg-dark') 45 } else { 46 vert.classList.remove('hide') 47 horiz.classList.add('hide') 48 navbar.classList.remove('bg-dark') 49 } 50}
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.