PageSourceSearch

https://agahregister.net/wp-content/themes/agahsabt/assets/js/main.js?ver=1.0.0

js agahregister.net collected 2026-10-05 05:46:01 UTC 3,291 bytes, 112 lines download raw bytes

1jQuery(document).ready(function ($) {
2	    $('#comment').attr('placeholder', 'دیدگاه *');
3        $('#author').attr('placeholder', 'نام *');
4        $('#email').attr('placeholder', 'ایمیل *');
5	 $('#commentform input[type="checkbox"]').prop('disabled', true);
6    var swiper = new Swiper(".articles_Swiper", {
7        slidesPerView: 3,
8        spaceBetween: 30,
9        loop: true,
10        autoplay: {
11            delay: 2500,
12            disableOnInteraction: false,
13        },
14        navigation: {
15            nextEl: ".swiper-button-next",
16            prevEl: ".swiper-button-prev",
17        },
18        pagination: {
19            el: ".swiper-pagination",
20            clickable: true,
21        },
22        breakpoints: {
23            640: {
24                slidesPerView: 1,
25                spaceBetween: 20,
26            },
27            768: {
28                slidesPerView: 2,
29                spaceBetween: 40,
30            },
31            1024: {
32                slidesPerView: 3,
33                spaceBetween: 50,
34            },
35        },
36    });
37
38    var swiper = new Swiper(".logos_Swiper", {
39        slidesPerView: 2,
40        spaceBetween: 30,
41        centeredSlides: true,
42        loop: true,
43        autoplay: {
44            delay: 2500,
45            disableOnInteraction: false,
46        },
47        pagination: {
48            el: ".swiper-pagination",
49            clickable: true,
50        },
51    });
52
53
54    $('.btn_menu_mobile').on('click', function () {
55        $('.menu_mobile').addClass('show');
56        $('.menu_mobile_close').addClass('show');
57    });
58
59    $('.menu_mobile_close').on('click', function () {
60        $('.menu_mobile').removeClass('show');
61        $('.menu_mobile_close').removeClass('show');
62    });
63
64    $('.accordion .card:first-child .as_Questions_box .btn').removeClass('collapsed');
65    $('.accordion .card:first-child .as_Questions_box > .collapse').removeClass('show');
66
67
68    $('.show-more-btn.show').on('click', function () {
69        $('.show-more-btn.show').removeClass('active');
70        $('.show-more-btn.remove').addClass('active');
71        $('.The-titles-list').addClass('show');
72    });
73
74    $('.show-more-btn.remove').on('click', function () {
75        $('.show-more-btn.show').addClass('active');
76        $('.show-more-btn.remove').removeClass('active');
77        $('.The-titles-list').removeClass('show');
78    });
79    // When clicking on a menu item with children
80    $('.menu-item-has-children').click(function (event) {
81        // Prevent click event propagation
82        event.stopPropagation();
83        // Toggle the visibility of its sub-menu
84        $(this).children('.sub-menu').slideToggle('slow');
85    });
86
87    $(window).scroll(function () {
88        if ($(this).scrollTop() > 100) {
89            $(".as_header").addClass("fixed-header");
90        } else {
91            $(".as_header").removeClass("fixed-header");
92        }
93    });
94
95});
96
97window.addEventListener('DOMContentLoaded', function () {
98    var swiper = new Swiper('.logo-brand-full', {
99        slidesPerView: 2,
100        slidesPerColumn: 3,
101        spaceBetween: 30,
102        autoplay: {
103            delay: 2500,
104            disableOnInteraction: false,
105        },
106        pagination: {
107            el: '.swiper-pagination',
108            clickable: true,
109        },
110    });
111});
112

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.