PageSourceSearch

https://aevis.ru/themes/frontend/js/init.js

js aevis.ru collected 2026-10-04 08:33:41 UTC 2,387 bytes, 72 lines download raw bytes

1$(document).ready(function(){
2// Accordeon
3        var acc = document.getElementsByClassName("accordion");
4        var i;
5        for (i = 0; i < acc.length; i++) {
6                acc[i].onclick = function(){
7                        this.classList.toggle("active");
8                        var panel = this.nextElementSibling;
9                        if (panel.style.display === "block") {
10                                panel.style.display = "none";
11                        } else {
12                                panel.style.display = "block";
13                        }
14                }
15        }
16
17//menu
18
19        $('.slimmenu').slimmenu(
20                {
21                        resizeWidth: '800',
22                        collapserTitle: 'Меню | Menu',
23                        animSpeed:'medium',
24                        indentChildren: false,
25                        childrenIndenter: '&raquo;'
26                });
27
28});
29
30
31// menu stopper
32        var top_show = 350; // показ кнопки "Наверх"
33        var fix_menu = 108;
34        var delay = 1000; // Задержка прокрутки
35        $(window).scroll(function () {
36                if ($(this).scrollTop() > top_show) {
37                        $('#top').fadeIn();
38                } else {
39                        $('#top').fadeOut();
40                }
41                if ($(this).scrollTop() > fix_menu) {
42                        $('.top-menu').addClass('fixed');
43                } else {
44                        $('.top-menu').removeClass('fixed');
45                }
46        });
47//top-bottom
48        $('#top').click(function () {
49                $('body, html').animate({
50                        scrollTop: 0
51                }, delay);
52        });
53
54//search bottom
55        $('.search__label').on('click', function(e){
56                e.preventDefault();
57
58                var $this = $(this),
59                        form = $this.closest('.search__form'),
60                        input = form.find('.search__input');
61
62                input.toggleClass('show');
63        });
64
65        $(document).mouseup(function (e) {
66                var container = $('.search__input');
67                if (container.has(e.target).length === 0 &&
68                        $(e.target).closest('form').length === 0){
69                                container.removeClass('show');
70                        }
71        });
72

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.