PageSourceSearch

https://www.anmb.ro/js/main.js

js anmb.ro collected 2026-10-02 06:01:46 UTC 3,617 bytes, 142 lines download raw bytes

1(function ($) {
2    "use strict";
3    
4    // Back to top button
5    $(window).scroll(function () {
6        if ($(this).scrollTop() > 200) {
7            $('.back-to-top').fadeIn('slow');
8        } else {
9            $('.back-to-top').fadeOut('slow');
10        }
11    });
12    $('.back-to-top').click(function () {
13        $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo');
14        return false;
15    });
16    
17    
18    // Sticky Navbar
19    $(window).scroll(function () {
20        if ($(this).scrollTop() > 0) {
21            $('.navbar').addClass('nav-sticky');
22        } else {
23            $('.navbar').removeClass('nav-sticky');
24        }
25    });
26    
27    
28    // Dropdown on mouse hover
29    $(document).ready(function () {
30        function toggleNavbarMethod() {
31            if ($(window).width() > 992) {
32                $('.navbar .dropdown').on('mouseover', function () {
33                    $('.dropdown-toggle', this).trigger('click');
34                }).on('mouseout', function () {
35                    $('.dropdown-toggle', this).trigger('click').blur();
36                });
37            } else {
38                $('.navbar .dropdown').off('mouseover').off('mouseout');
39            }
40        }
41        toggleNavbarMethod();
42        $(window).resize(toggleNavbarMethod);
43    });
44
45    
46    // Main carousel
47    $(".carousel .owl-carousel").owlCarousel({
48        autoplay: true,
49        animateOut: 'fadeOut',
50        animateIn: 'fadeIn',
51        items: 1,
52        smartSpeed: 300,
53        dots: false,
54        loop: true,
55        nav : true,
56        navText : [
57            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
58            '<i class="fa fa-angle-right" aria-hidden="true"></i>'
59        ]
60    });
61    
62    // Modal Video
63    $(document).ready(function () {
64        var $videoSrc;
65        $('.btn-play').click(function () {
66            $videoSrc = $(this).data("src");
67        });
68        console.log($videoSrc);
69
70        $('#videoModal').on('shown.bs.modal', function (e) {
71            $("#video").attr('src', $videoSrc + "?autoplay=1&amp;modestbranding=1&amp;showinfo=0");
72        })
73
74        $('#videoModal').on('hide.bs.modal', function (e) {
75            $("#video").attr('src', $videoSrc);
76        })
77    });
78    
79    // jQuery counterUp
80    $('[data-toggle="counter-up"]').counterUp({
81        delay: 10,
82        time: 2000
83    });
84
85
86    // Testimonials carousel
87    $(".testimonials-carousel").owlCarousel({
88        autoplay: true,
89        animateIn: 'slideInDown',
90        animateOut: 'slideOutDown',
91        items: 1,
92        smartSpeed: 450,
93        dots: false,
94        loop: true,
95        nav : true,
96        navText : [
97            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
98            '<i class="fa fa-angle-right" aria-hidden="true"></i>'
99        ],
100        responsive: {
101            0:{
102                items:1
103            },
104            576:{
105                items:1
106            },
107            768:{
108                items:2
109            },
110            992:{
111                items:3
112            }
113        }
114    });
115    
116    
117    // Blogs carousel
118    $(".blog-carousel").owlCarousel({
119        autoplay: true,
120        dots: false,
121        loop: true,
122        nav : true,
123        navText : [
124            '<i class="fa fa-angle-left" aria-hidden="true"></i>',
125            '<i class="fa fa-angle-right" aria-hidden="true"></i>'
126        ],
127        responsive: {
128            0:{
129                items:1
130            },
131            576:{
132                items:1
133            },
134            768:{
135                items:2
136            }
137        }
138    });
139
140    
141})(jQuery);
142

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.