1var myEle = document.getElementById("sticky-sidebar"); 2if(myEle){ 3 var stickySidebar = new StickySidebar('#sticky-sidebar', { 4 containerSelector: '#sticky-main', 5 // innerWrapperSelector: '.sidebar__inner', 6 topSpacing: 76, 7 bottomSpacing: 36, 8 resizeSensor: false, 9 }); 10 11 let featuredTitle = document.querySelector(".inner-wrapper-sticky"); 12 featuredTitle.id = "sidebar__inner"; 13 14 /* 15 let mList = document.getElementById('sidebar__inner'), 16 options = { 17 attributes: true 18 }, 19 observer = new MutationObserver(mCallback); 20 21 function mCallback(mutations) { 22 for (let mutation of mutations) { 23 if (mutation.type === 'attributes') { 24 console.log(`Mutation Detected: An attribute has been added or removed. The attribute name is: ${mutation.attributeName}.`); 25 stickySidebar.updateSticky(); 26 } 27 } 28 } 29 30 observer.observe(mList, options); 31 */ 32 33 var foo = document.getElementById('sticky-sidebar'); 34 35 var observer = new window.ResizeObserver(entries => { 36 for (let entry of entries) { 37 const cr = entry.contentRect; 38 console.log('Element:', entry.target); 39 console.log(`Element size: ${cr.width}px x ${cr.height}px`); 40 console.log(`Element padding: ${cr.top}px ; ${cr.left}px`); 41 stickySidebar.updateSticky(); 42 } 43 }); 44 45 46 47 observer.observe(foo); 48 49 50}; 51/* 52var stickySidebar2 = new StickySidebar('#sticky-sidebar-2', { 53 containerSelector: '#sticky-main-2', 54 innerWrapperSelector: '.sidebar__inner2', 55 topSpacing: 50, 56 bottomSpacing: 20 57}); 58*/ 59jQuery(document).ready(function ($) { 60 $(function() { 61 $('.matching--header').matchHeight(); 62 $('.matching--image').matchHeight(); 63 $('.matching--list').matchHeight(); 64 $('.matching--price').matchHeight(); 65 }); 66});
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.