PageSourceSearch

https://zhukovskiy.ru/wp-content/themes/zhukovskiy/js/theme-script.js?ver=1.0

js zhukovskiy.ru collected 2026-10-02 07:04:37 UTC 7,573 bytes, 202 lines download raw bytes

1+function ($) {  
2    /*********************smooth-scrolling************************/
3//    $('.smscr').on('click','a[href^="#"]', function (event) {
4//            //alert($(this).attr('href').substr(1));
5//            var id  = $(this).attr('href');
6//            if ($(id).length != 0){
7//                event.preventDefault();
8//                var top = $(id).offset().top-70;
9//                $('body,html').animate({scrollTop: top}, 500);
10//            }
11//            else{
12//                window.location.replace('/' + $(this).attr('href'));
13//            }
14//    });
15    
16    $('ul.nav li.dropdown, ul.nav li.dropdown-submenu').hover(function() {
17		$(this).find(' > .dropdown-menu').stop(true, true).delay(200).fadeIn();
18        $(this).find('a.dropdown-toggle').on('click', function(){
19            window.location = $(this).attr('href');
20        })
21	}, function() {
22		$(this).find(' > .dropdown-menu').stop(true, true).delay(200).fadeOut();
23    });
24    
25    $('#carouselSources').carousel({ interval: 5000 });
26    $('.carousel-showmanymoveone .item').each(function(){
27        var itemToClone = $(this);
28
29        for (var i=1;i<4;i++) {
30          itemToClone = itemToClone.next();
31
32          // wrap around if at end of item collection
33          if (!itemToClone.length) {
34            itemToClone = $(this).siblings(':first');
35          }
36
37          // grab item, clone, add marker class, add to collection
38          itemToClone.children(':first-child').clone()
39            .addClass("cloneditem-"+(i))
40            .appendTo($(this));
41        }
42      });
43    
44    var $btt = $(".btt");
45    
46    function bttVis(){
47        $btt.fadeIn('fast');
48    }
49    
50    function bttInv(){
51        $btt.fadeOut('fast');
52    }
53    
54    $btt.click(function(){
55        $("body,html").animate({"scrollTop":0},"slow");
56    });
57    
58    $bsContainerWidth = $("body").find('.container').width();
59    
60    var sticknav = $('.navbar').offset().top;
61    var stickhd = $('.head-devider').offset().top;
62    var stickhdHeight = $('.head-devider').outerHeight(true);
63
64    $(window).scroll(function() {
65        $('.navbar').each(function(){
66            if (sticknav <= $(window).scrollTop()) {
67                $(this).removeClass("navbar-static-top")
68                        .addClass("navbar-fixed-top").css('top', stickhdHeight+'px');
69                if($('.head-devider').is(':visible')){
70                    $(this).css('top', stickhdHeight+'px');
71                } else{
72                    $(this).css('top', '0px');
73                }
74            }
75            else {
76                $(this).removeClass("navbar-fixed-top")
77                        .addClass("navbar-static-top").css('top', '0px');
78            }
79        });
80        
81        $('.head-devider').each(function(){
82            if ( (stickhd + stickhdHeight) <= $(window).scrollTop()) {
83                $(this).css('position', 'fixed').css('top', '0px').css('z-index', '1000');
84            }
85            else {
86                $(this).css('position', 'static');
87            }
88        });
89        
90        $('section').each(function(){
91            if ($(this).offset().top <= $(window).scrollTop() && ($(this).offset().top + $(this).outerHeight(true)-70) > $(window).scrollTop()) {
92                $(".navbar a[href^='#"+$(this).attr('id')+"']").parent('li').addClass('active');
93            }
94            else {
95                $(".navbar a[href^='#"+$(this).attr('id')+"']").parent('li').removeClass('active');
96            }
97        });
98        
99        $('.about-content').each(function(){
100            if ($(this).offset().top < $(window).scrollTop()+500) {
101              $(this).css('opacity', '1').addClass('animated zoomIn');
102            }
103        });
104        $('.advantages-content').each(function(){
105            if ($(this).offset().top < $(window).scrollTop()+550) {
106              $(this).css('opacity', '1').addClass('animated zoomIn');
107            }
108        });
109        
110        $('.serv-content-logo').each(function(){
111            if ($(this).offset().top < $(window).scrollTop()+550) {
112                $(this).children('a').children('img').css('opacity', '1').addClass('animated rotateInDownLeft');
113                $(this).children('h1').css('opacity', '1').addClass('animated bounceInLeft');
114            }
115        });
116        
117        
118        
119        if ( $(this).scrollTop() > 10){
120            $('.scroll-down').fadeOut('fast');
121        } else if ( $(this).scrollTop() <= 10){
122            if ($bsContainerWidth <= 768){
123                $('.scroll-down').css('display', 'none');
124            } else{
125                $('.scroll-down').fadeIn('fast').addClass('animated bounceIn');
126            }
127        }
128        
129        if ( $(this).scrollTop() > 500){
130            bttVis();
131        } else if ( $(this).scrollTop() <= 500){
132            bttInv();
133        }
134    });
135           
136    $('.advantages-content').hover(
137        function() {
138            $(this).children('img').addClass('animated zoomIn');
139        },
140        function() {
141            $(this).children('img').removeClass('animated zoomIn');
142        }
143    );
144    /****************************/
145    /*var show = true;
146    var countbox = "#counts";
147    $(window).on("scroll load resize", function(){
148 
149        if(!show) return false;                   // Отменяем показ анимации, если она уже была выполнена
150 
151        var w_top = $(window).scrollTop();        // Количество пикселей на которое была прокручена страница
152        var e_top = $(countbox).offset().top;     // Расстояние от блока со счетчиками до верха всего доÐ
152ºÑƒÐ¼ÐµÐ½Ñ‚а
153 
154        var w_height = $(window).height();        // Высота окна браузера
155        var d_height = $(document).height();      // Высота всего документа
156 
157        var e_height = $(countbox).outerHeight(); // Полная высота блока со счетчиками
158 
159        if(w_top + 500 >= e_top || w_height + w_top == d_height || e_height + e_top < w_height){
160            $('.round-num').children('h1').css('opacity', '1');
161            $(".spincrement").spincrement({
162                thousandSeparator: "",
163                duration: 1000
164            });
165 
166            show = false;
167        }
168    });*/
169    $.date = function(){
170        return new Date().toLocaleString();
171    };
172    //Инициализация datetimepicker8 и datetimepicker9
173    $("#datetimepicker8").datetimepicker({pickTime: false, language: 'ru'});
174    $("#datetimepicker9").datetimepicker({pickTime: false, language: 'ru'});
175    //При изменении даты в 8 datetimepicker, она устанавливается как минимальная для 9 datetimepicker
176    $("#datetimepicker8").on("dp.change",function (e) {
177      $("#datetimepicker9").data("DateTimePicker").setMinDate(e.date);
178    });
179    //При изменении даты в 9 datetimepicker, она устанавливается как максимальная для 8 datetimepicker
180    $("#datetimepicker9").on("dp.change",function (e) {
181      $("#datetimepicker8").data("DateTimePicker").setMaxDate(e.date);
182    });
183}(jQuery);
184
185+function ($) {
186    $('.video-carousel').owlCarousel({
187        items:1,
188        merge:true,
189        loop:true,
190        margin:10,
191        video:true,
192        lazyLoad:true,
193        dots: false,
194        nav: false,
195        center:true,
196        responsive:{
197            768:{
198                items:3
199            }
200        }
201    })
202}(jQuery);

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.