PageSourceSearch

https://tcek63.ru/local/templates/tcerk63/js/common.js

js tcek63.ru collected 2026-10-07 01:00:16 UTC 4,035 bytes, 146 lines download raw bytes

1$(document).ready(function() {
2    $('.menu_open').click(function() {
3        $(this).next('.top_menu ul').slideToggle();
4        $(this).toggleClass('active');
5        $(this).prev('.top_menu li a').toggleClass('active');
6    });
7
8    $('.menu-open').click(function() {
9        event.preventDefault();
10        $(this).toggleClass('active');
11        $(this).next('.menu ul').slideToggle();
12        $(this).prev('.menu li a').toggleClass('active');
13    });
14
15    $('.burger, .menu-close').click(function() {
16        $('.menu-mob').slideToggle();
17    });
18
19    $('.top_menu .js-toggle-menu').click(function(e) {
20        e.preventDefault();
21
22        if($(this).hasClass('fa-angle-right')) {
23            $(this).removeClass('fa-angle-right').addClass('fa-angle-down');
24        } else {
25            $(this).removeClass('fa-angle-down').addClass('fa-angle-right');
26        }
27
28        $(this).parent().next().slideToggle();
29    });
30
31    $('.slider_1').slick({
32        autoplay: true,
33		autoplaySpeed: 2000,
34        arrows: false,
35        //fade: true,
36        //cssEase: 'linear',
37        dots: true,
38        adaptiveHeight: true
39    });
40
41    $('.carousel_helpful_1').slick({
42        slidesToShow: 4,
43        slidesToScroll: 1,
44        dots: true,
45        arrows: true,
46        infinite: true,
47        autoplay: false,
48        responsive: [
49            {
50                breakpoint: 1367,
51                settings: {
52                    slidesToShow: 3
53                }
54            },
55            {
56                breakpoint: 1200,
57                settings: {
58                    slidesToShow: 2
59                }
60            },
61            {
62                breakpoint: 993,
63                settings: {
64                    slidesToShow: 2
65                }
66            },
67            {
68                breakpoint: 769,
69                settings: {
70                    slidesToShow: 1
71                }
72            } ,
73            {
74                breakpoint: 576,
75                settings: {
76                    slidesToShow: 1
77                }
78            }
79        ]
80    });
81
82    $(window).scroll(function(){
83        if ($(window).scrollTop() > 125) {
84            $('.nav-top').addClass('sticky');
85        }
86        else {
87            $('.nav-top').removeClass('sticky');
88        }
89    });
90
91$('.acc_head').click(function(){
92	$(this).toggleClass('in').next().slideToggle();
93	$('.acc_head').not(this).removeClass('in').next().slideUp();
94});
95
96
97    $('#top').click(function () {
98        $('body, html').animate({
99            scrollTop: 0
100        }, 800);
101        return false;
102    });
103
104    (function ($) {
105        $(function () {
106            $('.mainmenu').autocolumnlist({
107                columns: 3,
108                min: 6,
109            });
110        })
111    })(jQuery);
112
113    (function ($) {
114        $(function () {
115            $('.mainmenu2').autocolumnlist({
116                columns: 3,
117                min: 6,
118            });
119        })
120    })(jQuery);
121
122    $('img.pic').each(function () {
123        $(this).wrap("<a href='" + this.src + "' rel='group'></a>");
124    });
125
126    $("a[rel=group]").fancybox();
127
128    function checkCookies(){
129        let cookieDate = localStorage.getItem('cookieDate');
130        let cookieNotification = document.getElementById('cookie_notification');
131        let cookieBtn = cookieNotification.querySelector('.cookie_accept');
132
133        // Если записи про кукисы нет или она просрочена на 1 год, то показываем информацию про кукисы
134        if( !cookieDate || (+cookieDate + 31536000000) < Date.now() ){
135            cookieNotification.classList.add('show');
136        }
137
138        // При клике на кнопку, в локальное хранилище записывается текущая дата в системе UNIX
139        cookieBtn.addEventListener('click', function(){
140            localStorage.setItem( 'cookieDate', Date.now() );
141            cookieNotification.classList.remove('show');
142        })
143    }
144    checkCookies();
145
146});

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.