1$(document).ready(function(){ 2 3 var stickyElement = $(".sticky"), 4 stickyClass = "sticky-pin", 5 stickyPos = 64, //Distance from the top of the window. 6 stickyHeight; 7 8 9 10 ///Create a negative margin to prevent content 'jumps': 11 stickyElement.after('<div class="jumps-prevent"></div>'); 12 function jumpsPrevent() { 13 stickyHeight = stickyElement.innerHeight(); 14 stickyElement.css({"margin-bottom":"-" + stickyHeight + "px"}); 15 stickyElement.next().css({"padding-top": + stickyHeight + "px"}); 16 }; 17 jumpsPrevent(); //Run. 18 19 //Function trigger: 20 $(window).resize(function(){ 21 jumpsPrevent(); 22 }); 23 24 //Sticker function: 25 function stickerFn() { 26 var winTop = $(this).scrollTop(); 27 //Check element position: 28 winTop >= stickyPos ? 29 stickyElement.addClass(stickyClass): 30 stickyElement.removeClass(stickyClass) //Boolean class switcher. 31 }; 32 stickerFn(); //Run. 33 34 //Function trigger: 35 $(window).scroll(function(){ 36 stickerFn(); 37 }); 38 39 }); 40 41 // sidemenu 42 $(document).ready(function(){ 43 $('.app-sidebar').scroll(function() { 44 var s = $(".app-sidebar .ps__rail-y"); 45 if(s[0]?.style.top.split('px')[0] <= 60){ 46 $('.app-sidebar').removeClass('sidebar-scroll') 47 } 48 else{ 49 $('.app-sidebar').addClass('sidebar-scroll') 50 } 51 }) 52 });
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.