1/* 2if (typeof jQuery == 'undefined') { 3 setTimeout(1000); 4 console.log( i ); 5 } 6} 7 8function defer(method) { 9 if (window.jQuery) { 10 method(); 11 } else { 12 setTimeout(function() { defer(method) }, 50); 13 } 14} 15*/ 16/* 17defer(function () { 18 console.log("jQuery is now loaded"); 19 20 console.log($('.accordion-button').length); 21 var elements = document.getElementsByClassName("accordion-button"); 22 console.log(elements.length); 23 var myFunction = function() { 24 // var attribute = this.getAttribute("data-bs-target"); 25 alert('attribute'); 26 }; 27 28 for (var i = 0; i < elements.length; i++) { 29 console.log(elements[i]) 30 // elements[i].addEventListener('click', myFunction, false); 31 } 32 33}); 34*/ 35 /* 36 $('.accordion-button').on('click', function (e) { 37 console.log('test'); 38 39 var $panel = $(this).closest('.accordion-pv-item'); 40 $('html,body').animate({ 41 scrollTop: $panel.offset().top - 100 42 }, 500); 43 }); 44 *//* 45 $(document).ready(function () { 46 }); 47 */ 48 49 /* 50 document.body.addEventListener('click', function (evt) { 51 console.log(this); 52 if (evt.target.className === 'accordion-button') { 53 alert(this) 54 } 55 }, false); 56 */ 57 function scrollFunction(elid) { 58 const element = document.getElementById(elid); 59 element.scrollIntoView(); 60 } 61 62 63function scrollToTargetAdjusted(elid){ 64 var element = document.getElementById(elid); 65 var headerOffset = 100; 66 var elementPosition = element.getBoundingClientRect().top; 67 var offsetPosition = elementPosition + window.pageYOffset - headerOffset; 68 window.scrollTo({ 69 top: offsetPosition, 70 behavior: "smooth" 71 }); 72}
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.