PageSourceSearch

https://paryz.org/bitrix/templates/paryz/js/home.js

js paryz.org collected 2026-10-04 22:00:48 UTC 2,519 bytes, 89 lines download raw bytes

1jQuery(document).ready(function($) {
2
3    // var waypoints = $('ul.statistics').waypoint({
4	// 	handler: function(direction) {
5    //         countAni()
6	// 	},
7	// 	offset: '80%'
8	// })
9
10    var waypoints = $('ul.statistics').waypoint(function(direction) {
11        countAni()
12        this.destroy();
13    }, {
14        offset: '80%',
15        triggerOnce: true
16    })
17
18    $('.writeAboutus__slider').owlCarousel({
19		center: false,
20		dots: true,
21		nav: false,
22		items: 1,
23        loop:true,
24        autoplay:true,
25        autoplayTimeout:3000,
26        autoplayHoverPause:true
27	});
28
29    $('body').on('click', '.events__tabs > li', function(event) {
30		event.preventDefault();
31		$('.events__tabs > li.active').removeClass('active');
32        $(this).addClass('active');
33        $('.events__tab-content.active').removeClass('active');
34        $('.events__tab-content[data-tab=' + $(this).attr('data-tab') + ']').addClass('active');
35	});
36
37    $('body').on('click', '.js-goDown', function(event) {
38		event.preventDefault();
39		$([document.documentElement, document.body]).animate({
40            scrollTop: $('section.inform').offset().top
41        }, 2000);
42	});
43
44    $('body').on('click', '.js-alert', function(event) {
45		event.preventDefault();
46		$('body').addClass('alert');
47	});
48    $('body').on('click', '.popupAlert__close', function(event) {
49		event.preventDefault();
50		$('body').removeClass('alert');
51	});
52});
53
54function countAni() {
55    // jQuery('.statistics > li > h6 > span').each(function () {
56    //     jQuery(this).prop('Counter',0).animate({
57    //         Counter: jQuery(this).text()
58    //     }, {
59    //         duration: 4000,
60    //         easing: 'swing',
61    //         step: function (now) {
62    //             jQuery(this).text(Math.ceil(now));
63    //         }
64    //     });
65    // });
66
67    jQuery('.statistics > li').each(function () {
68        var a = jQuery(this),
69            t = a.find('span');
70
71        a.appear(function() {
72            if (a.css("opacity", "1"), t.hasClass('zero-counter')) {
73                var e = parseFloat(t.text());
74                t.countTo({
75                    from: 0,
76                    to: e,
77                    speed: 1500,
78                    refreshInterval: 100
79                })
80            } else t.absoluteCounter({
81                speed: 2e3,
82                fadeInDelay: 1e3
83            })
84        }, {
85            accX: 0,
86            accY: -100
87        })
88    });
89}

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.