PageSourceSearch

https://voi-60.ru/docs/js/main.js

js voi-60.ru collected 2026-10-07 01:49:50 UTC 2,625 bytes, 116 lines download raw bytes

1new WOW().init();
2
3function updateFile(id, model) {
4
5    $('#modaltitle').modal('show');
6    $('#fileId').val(id);
7    $('#fileModel').val(model);
8
9}
10
11function saveUpdate() {
12    $.ajax({
13        type: "POST",
14        url: "/site/update-file",
15        data: {
16            'id': $('#fileId').val(),
17            'model': $('#fileModel').val(),
18            'title' : $('#fileTitle').val()
19        },
20        success: function(data){
21            $.pjax.reload({container: '#fileEvent'});
22            $('#modaltitle').modal('hide');
23            $('.modal-backdrop').hide();
24        }
25    });
26
27}
28
29function deleteFile(id, model) {
30    $.ajax({
31        type: "POST",
32        url: "/site/delete-file",
33        data: {
34            'id': id,
35            'model': model
36        },
37        success: function(data){
38            $.pjax.reload({container: '#fileEvent'});
39        }
40    });
41}
42
43(function($) {
44
45    $(document).scroll(function() {
46
47        if($(this).scrollTop() != 0) {
48
49            //$('.navbar-default').addClass('navbar-default-scroll');
50            $('#top').fadeIn();
51
52        } else {
53
54            //$('.navbar-default').removeClass('navbar-default-scroll');
55            $('#top').fadeOut();
56
57        }
58
59    });
60
61    $(document).on('click','#top', function(){
62        $('body,html').animate({scrollTop:0},1000);
63    });
64
65    $('#owl-header').owlCarousel({
66        items: 1,
67        loop: true,
68        autoplay: true,
69        autoplayHoverPause: true,
70        nav: true,
71        navText: ['<i class="fas fa-chevron-left"></i>', '<i class="fas fa-chevron-right"></i>'],
72        dots: false
73    });
74    $('#photo-owl').owlCarousel({
75        items: 3,
76        loop: false,
77        autoplay: true,
78        autoplayHoverPause: true,
79        nav: false,
80        dots: false,
81        margin: 15,
82        responsive:{
83            0:{
84                items:1
85            },
86            600:{
87                items:2
88            },
89            1000:{
90                items:3
91            }
92        }
93    });
94
95    //сркытие блока предзагрузки
96
97    $(window).on('load', function () {
98        $preloader = $('.loaderArea'),
99            $loader = $preloader.find('.loader');
100        $loader.fadeOut();
101        $preloader.delay(350).fadeOut('slow');
102    });
103
104    if (Cookies.get('agree_cookies') == 'true'){
105        $('#cook').fadeOut();
106    }else{
107        $('#cook').fadeIn();
108    }
109
110    //скролл наверх при нажатии на кнопку
111    $(document).on('click','#cook .agree-btn', function(){
112        Cookies.set('agree_cookies', 'true');
113        $('#cook').fadeOut();
114    });
115
116})(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.