PageSourceSearch

https://mogotex-service.ru/templates/shaper_helix3/js/custom.js

js mogotex-service.ru collected 2026-10-08 04:16:50 UTC 1,389 bytes, 50 lines download raw bytes

1jQuery(function($) {
2    //start ready
3    document.querySelectorAll('.jshop_img_description').forEach(n => {
4        const name = n.querySelector('#block_price');
5        const link = n.querySelector('.box__price');
6        var regexp = /[/\d{1}/]/gi;
7
8        link.classList.toggle(
9            'is-active',
10            name.innerText.match(regexp) && link.classList.contains('box__price')
11            //name.innerText.match(regexp).includes('0 ₽') && link.classList.contains('box__price')
12        );
13    });
14    //end ready
15
16
17    //begin
18    $('.b-sert .sppb-carousel-extended-item a').fancybox({
19        // openEffect: 'none',
20    });
21    //end
22});
23
24
25
26
27
28
29jQuery(document).ready(function($) {
30    $('a[href*="#"]:not([href="#"])').on('click', function(event) {
31        if ($(this).closest('.sppb-addon-tab').length) {
32            return;
33        }
34
35        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
36            var target = $(this.hash);
37            target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
38            if (target.length) {
39                event.preventDefault();
40                var headerHeight = 80;
41                $('html, body').animate({
42                    scrollTop: target.offset().top - headerHeight
43                }, 600);
44            }
45        }
46    });
47});
48
49
50

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.