📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv12.demodesign.com.tr
/
panel
/
assets
/
js
📝
sticky.js
← Geri Dön
$(document).ready(function(){ var stickyElement = $(".sticky"), stickyClass = "sticky-pin", stickyPos = stickyElement.offset().top, //Distance from the top of the window. stickyHeight; ///Create a negative margin to prevent content 'jumps': stickyElement.after('<div class="jumps-prevent"></div>'); function jumpsPrevent() { stickyHeight = stickyElement.innerHeight(); stickyElement.css({"margin-bottom":"-" + stickyHeight + "px"}); stickyElement.next().css({"padding-top": + stickyHeight + "px"}); }; jumpsPrevent(); //Run. //Function trigger: $(window).resize(function(){ jumpsPrevent(); }); //Sticker function: function stickerFn() { var winTop = $(this).scrollTop(); //Check element position: winTop >= stickyPos ? stickyElement.addClass(stickyClass): stickyElement.removeClass(stickyClass) //Boolean class switcher. }; stickerFn(); //Run. //Function trigger: $(window).scroll(function(){ stickerFn(); }); });
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula