PageSourceSearch

https://www.iskconmysore.org/wp-content/plugins/classy-addons-for-…/progressbar-frontend.js?ver=1.2.7

js iskconmysore.org collected 2026-10-02 17:28:29 UTC 5,077 bytes, 126 lines download raw bytes

1(function( $) {
2	
3    "use strict";
4        if($('.wow').length){
5            
6            $('.wow').appear(function(){
7                $(".classyea-progress-bar-fill").each(function() {
8                    var progressWidth = $(this).attr('data-percent');
9                    $(this).css('width', progressWidth + '%');
10                    $(this).parent().parent().siblings('.classyea-progress-bar-border').css('width', progressWidth + '%');
11                });
12            },{accY: 0});
13        }
14
15        if($('.classyea-progress-bar-percent').length){
16            $('.classyea-progress-bar-percent').appear(function(){
17                //Progress Bar / Levels
18                $(".classyea-progress-bar-fill-two").each(function() {
19                    var progressHeight = $(this).attr('data-percent');
20                    $(this).css('height', progressHeight + '%');
21                });
22            },{accY: 0});
23        }
24
25
26        if($('.classyea-progress-bar-percent').length){
27            $('.classyea-progress-bar-percent').appear(function(){
28        
29                var $t = $(this),
30                    n = $t.find(".classyea-progress-bar-percent-number").attr("data-stop"),
31                    r = parseInt($t.find(".classyea-progress-bar-percent-number").attr("data-speed"), 10);
32                    
33                if (!$t.hasClass("counted")) {
34                    $t.addClass("counted");
35                    $({
36                        countNum: $t.find(".classyea-progress-bar-percent-number").text()
37                    }).animate({
38                        countNum: n
39                    }, {
40                        duration: r,
41                        easing: "linear",
42                        step: function() {
43                            $t.find(".classyea-progress-bar-percent-number").text(Math.floor(this.countNum));
44                        },
45                        complete: function() {
46                            $t.find(".classyea-progress-bar-percent-number").text(this.countNum);
47                        }
48                    });
49                }
50                
51            },{accY: 0});
52        }
53
54        if($('.classyea-funfacts-number').length){
55            $('.classyea-funfacts-number').appear(function(){
56        
57                var $t = $(this),
58                    n = $t.find(".classyea-funfacts-count-text").attr("data-stop"),
59                    r = parseInt($t.find(".classyea-funfacts-count-text").attr("data-speed"), 10);
60                    
61                if (!$t.hasClass("counted")) {
62                    $t.addClass("counted");
63                    $({
64                        countNum: $t.find(".classyea-funfacts-count-text").text()
65                    }).animate({
66                        countNum: n
67                    }, {
68                        duration: r,
69                        easing: "linear",
70                        step: function() {
71                            $t.find(".classyea-funfacts-count-text").text(Math.floor(this.countNum));
72                        },
73                        complete: function() {
74                            $t.find(".classyea-funfacts-count-text").text(this.countNum);
75                        }
76                    });
77                }
78                
79            },{accY: 0});
80        }
81
82
83        $(".classyea-progress-bar-two-box").each(function(){
84
85            var $bar = $(this).find(".classyea-progress-bar-two-bar");
86            var $val = $(this).find("span.data-parcent");
87            var perc = parseInt( $val.text(), 10);
88            
89            $({p:0}).animate({p:perc}, {
90                duration: 3000,
91                easing: "swing",
92                step: function(p) {
93                $bar.css({
94                    transform: "rotate("+ (45+(p*1.8)) +"deg)", // 100%=180° so: ° = % * 1.8
95                    // 45 is to add the needed rotation to have the green borders at the bottom
96                });
97                $val.text(p|0);
98                }
99            });
100        });
101
102        // Elements Animation
103
104        var newstricker_elem = $('.wow');
105        if ( newstricker_elem.length > 0 ) {
106
107            newstricker_elem.each(function () {
108                let iDName = $( this ).attr('class').split(" ")[0];
109                
110                if($(newstricker_elem.length)){ 
111                    var wow = new WOW(
112                        {
113                            boxClass:     iDName,      // animated element css class (default is wow)
114                            animateClass: 'animated', // animation css class (default is animated)
115                            offset:       0,          // distance to the element when triggering the animation (default is 0)
116                            mobile:       true,       // trigger animations on mobile devices (default is true)
117                            live:         true       // act on asynchronously loaded content (default is true)
118                        }
119                    );
120                    wow.init();
121                }
122            });
123        }
124        
125
126})(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.