PageSourceSearch

https://sklep.mayday.pl/themes/mayday/assets/antheme/js/stickyproduct.js

js mayday.pl collected 2026-10-08 20:02:21 UTC 2,204 bytes, 33 lines download raw bytes

1$(document).ready(function() {
2    var elementHeight, containerHeight, scrollHeightStart, scrollHeightEnd, fixedmenuSize;
3    $(window).on('load resize scroll', function() {
4        if ($('.fixed-menu').length) {
5            fixedmenuSize = $('.fixed-menu').height();
6        } else {
7            fixedmenuSize = 0;
8        }
9
10        if ($(window).width() >= 768 && $('.sticky-product').height() < $('.productblock-content').height()) {
11            if (($(window).scrollTop() + $('.sticky-product').height() + $('.sticky-product').position().top) < ($('.productblock-content').position().top + $('.productblock-content').height()) && $(window).scrollTop() > $('.productblock-content').offset().top - fixedmenuSize) {
12                $('.sticky-product').removeClass('sticky-product-bottom');
13                $('.sticky-product').addClass('sticky-product-fixed');
14                $('.sticky-product').css('top', 10 + fixedmenuSize + 'px');
15            } else if (($(window).scrollTop() + $('.sticky-product').height() + $('.sticky-product').position().top) > ($('.productblock-content').position().top + $('.productblock-content').height()) && $(window).scrollTop() > $('.productblock-content').offset().top - fixedmenuSize) {
16                $('.sticky-product').removeClass('sticky-product-fixed');
17                $('.sticky-product').addClass('sticky-product-bottom');
18                $('.sticky-product').css('top', 0);
19                if ($('.sticky-product').offset().top > $(window).scrollTop() + fixedmenuSize + 10) {
20                    $('.sticky-product').removeClass('sticky-product-bottom');
21                    $('.sticky-product').addClass('sticky-product-fixed');
22                    $('.sticky-product').css('top', 10 + fixedmenuSize + 'px');
23                }
24            } else {
25                $('.sticky-product').removeClass('sticky-product-bottom').removeClass('sticky-product-fixed');
26                $('.sticky-product').css('top', 0);
27            }
28        } else {
29            $('.sticky-product').removeClass('sticky-product-bottom').removeClass('sticky-product-fixed');
30            $('.sticky-product').css('top', 0);
31        }
32    });
33});

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.