1$(function () { 2 3 var ss_options = { 4 speed: 500, 5 speedAsDuration: true, 6 easing: 'easeInOutCubic', 7 offset: function(anchor, toggle) { 8 return $("[data-scroll-header]").outerHeight() - 5; 9 }, 10 updateURL: false, 11 popstate: true, 12 emitEvents: true, 13 } 14 15 var scroll = new SmoothScroll('a[href*="#"]', ss_options); 16 17 var scroll_to_card = getUrlParam("card"); 18 19 if (scroll_to_card) { 20 scrollTo(scroll_to_card); 21 } 22 23 function scrollTo(cid) { 24 var s_anchor = document.querySelector('#card-id-' + cid); 25 if (s_anchor) { 26 scroll.animateScroll(s_anchor, null, ss_options); 27 } 28 } 29 30 $(".scroll-element").on("click", function() { 31 var cid = $(this).attr("data-card-id"); 32 if (cid) { 33 scrollTo(cid); 34 } 35 }); 36 37});
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.