PageSourceSearch

https://gestureit.com/wp-content/themes/gestureit/new-page/js/main.js?ver=363

js gestureit.com collected 2026-10-02 00:31:54 UTC 1,899 bytes, 59 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2
3    $('.menu_btn').click(function () {
4        $('.navbar').toggleClass('active');
5        $(this).toggleClass('active');
6    });
7
8    $('.section-trigger').on('click', function() {
9        const parent = $(this).closest('.user-manual-section');
10        const content = parent.find('.section-content');
11        const headerOffset = 100; // Твой фиксированный хедер
12
13        if (content.is(':visible')) {
14            content.slideUp(300);
15            parent.removeClass('active');
16        } else {
17            $('.user-manual-section').removeClass('active');
18            $('.section-content').slideUp(0);
19            
20            parent.addClass('active');
21            content.slideDown(300, function() {
22                // Скролл к началу блока с учетом хедера
23                $('html, body').animate({
24                    scrollTop: parent.offset().top - headerOffset - 10
25                }, 400);
26            });
27        }
28    });
29
30    if ($('.main-swiper').length ) {
31
32        $(".video_link").YouTubePopUp();
33
34        $('.main_readMore').click( function(){
35            $(this).hide();
36            $(this).next().slideDown();
37        })
38
39    }
40
41    let lastScrollTop = 0;
42    $(window).on('scroll', function() {
43        let currentScroll = $(this).scrollTop();
44        
45        if (currentScroll > lastScrollTop && currentScroll > 50 && !$('.navbar').hasClass('active')) {
46            $('.header_wrapper').css({
47                'transform': 'translateY(-100%)',
48                'transition': 'transform 0.3s ease-in-out'
49            });
50        } else {
51            $('.header_wrapper').css({
52                'transform': 'translateY(0)',
53                'transition': 'transform 0.3s ease-in-out'
54            });
55        }
56        lastScrollTop = currentScroll;
57    });
58        
59})

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.