1(function () { 2 'use strict'; 3 4 function prefersReducedMotion() { 5 return window.matchMedia && 6 window.matchMedia('(prefers-reduced-motion: reduce)').matches; 7 } 8 9 function onClick(event) { 10 var btn = event.currentTarget; 11 var targetId = btn.getAttribute('data-target'); 12 if (!targetId) { 13 return; 14 } 15 var target = document.getElementById(targetId); 16 if (!target) { 17 return; 18 } 19 event.preventDefault(); 20 target.scrollIntoView({ 21 behavior: prefersReducedMotion() ? 'auto' : 'smooth', 22 block: 'start' 23 }); 24 if (window.history && window.history.replaceState) { 25 window.history.replaceState(null, '', '#' + targetId); 26 } 27 } 28 29 function init() { 30 var btns = document.querySelectorAll('.rodelle-pf__nav-btn'); 31 for (var i = 0; i < btns.length; i++) { 32 btns[i].addEventListener('click', onClick); 33 } 34 } 35 36 if (document.readyState === 'loading') { 37 document.addEventListener('DOMContentLoaded', init); 38 } else { 39 init(); 40 } 41})();
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.