PageSourceSearch

https://www.matijardin.fr/themes/ekyshop/assets/js/custom.js

js matijardin.fr collected 2026-10-03 20:59:33 UTC 1,498 bytes, 49 lines download raw bytes

1if (document.querySelector('.PM_ASCriterionsGroup')) {
2    document.getElementById('open_filter_mobile')?.classList.remove('d-none');
3}
4
5$(document).on('as4-After-Set-Results-Contents', function() {
6    if (document.querySelector('.PM_ASCriterionsGroup')) {
7        document.getElementById('open_filter_mobile')?.classList.remove('d-none');
8    }
9});
10
11document.addEventListener('DOMContentLoaded', () => {
12
13    const el = document.querySelector('.ucpt-quickadd--main');
14    const footer = document.getElementById('footer');
15    const margin = 15;
16
17    if (!el || !footer) return;
18
19    const maxMove = () => {
20        const footerRect = footer.getBoundingClientRect();
21        return Math.max(0, window.innerHeight - footerRect.top + margin);
22    };
23
24    window.addEventListener('scroll', () => {
25        const moveY = maxMove();
26        el.style.transform = `translateY(-${moveY}px)`;
27    });
28
29    const starWidget = document.querySelector('.widget_product_star');
30
31    if (!starWidget) return;
32
33    starWidget.addEventListener('click', function (e) {
34        e.preventDefault();
35
36        const tabButton = document.querySelector('#extra-0-tab');
37        if (tabButton) tabButton.click();
38
39        setTimeout(() => {
40            const target = document.querySelector('.ts-wdg-loc-pp-wrapper');
41            if (target) {
42                target.scrollIntoView({
43                    behavior: 'smooth',
44                    block: 'start'
45                });
46            }
47        }, 200);
48    });
49});

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.