PageSourceSearch

https://formtel.ru/js/main.js

js formtel.ru collected 2026-10-05 00:16:16 UTC 2,540 bytes, 103 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    // Spinner
5    var spinner = function () {
6        setTimeout(function () {
7            if ($('#spinner').length > 0) {
8                $('#spinner').removeClass('show');
9            }
10        }, 1);
11    };
12    spinner();
13    
14    
15    // Initiate the wowjs
16    new WOW().init();
17
18
19    // Sticky Navbar
20    $(window).scroll(function () {
21        if ($(this).scrollTop() > 45) {
22            $('.navbar').addClass('sticky-top shadow-sm');
23        } else {
24            $('.navbar').removeClass('sticky-top shadow-sm');
25        }
26    });
27    
28    
29    // Dropdown on mouse hover
30    const $dropdown = $(".dropdown");
31    const $dropdownToggle = $(".dropdown-toggle");
32    const $dropdownMenu = $(".dropdown-menu");
33    const showClass = "show";
34    
35    $(window).on("load resize", function() {
36        if (this.matchMedia("(min-width: 992px)").matches) {
37            $dropdown.hover(
38            function() {
39                const $this = $(this);
40                $this.addClass(showClass);
41                $this.find($dropdownToggle).attr("aria-expanded", "true");
42                $this.find($dropdownMenu).addClass(showClass);
43            },
44            function() {
45                const $this = $(this);
46                $this.removeClass(showClass);
47                $this.find($dropdownToggle).attr("aria-expanded", "false");
48                $this.find($dropdownMenu).removeClass(showClass);
49            }
50            );
51        } else {
52            $dropdown.off("mouseenter mouseleave");
53        }
54    });
55    
56    
57    // Back to top button
58    $(window).scroll(function () {
59        if ($(this).scrollTop() > 300) {
60            $('.back-to-top').fadeIn('slow');
61        } else {
62            $('.back-to-top').fadeOut('slow');
63        }
64    });
65    $('.back-to-top').click(function () {
66        $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo');
67        return false;
68    });
69
70
71    // Facts counter
72    $('[data-toggle="counter-up"]').counterUp({
73        delay: 10,
74        time: 2000
75    });
76
77
78    // Testimonials carousel
79    $(".testimonial-carousel").owlCarousel({
80        autoplay: true,
81        smartSpeed: 1000,
82        margin: 25,
83        dots: true,
84        loop: true,
85        center: true,
86        responsive: {
87            0:{
88                items:1
89            },
90            576:{
91                items:1
92            },
93            768:{
94                items:2
95            },
96            992:{
97                items:3
98            }
99        }
100    });
101    
102})(jQuery);
103

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.