PageSourceSearch

https://monkey-donkey.es/wp-content/plugins/auxin-pro-tools/public/assets/js/pro-tools.js?ver=1.9.7

js monkey-donkey.es collected 2026-09-24 10:15:07 UTC 4,375 bytes, 113 lines download raw bytes

1/*! Auxin Pro Tools - v1.9.7 (2025-06)
2 *  All required plugins 
3 *  https://phlox.pro
4 */
5
6
7
8/*! 
9 * 
10 * ================== public/assets/js/src/module.protools.js =================== 
11 **/ 
12
13;(function($){
14
15    // on document ready
16    $(function(){
17
18        // Auxin Countdown Element
19        $.fn.AuxinCountDown = function(){
20            var $wrapper = $(this).find('.aux-countdown-wrapper '),
21                data = {
22                    year     : $wrapper.data('countdown-year'),
23                    month    : $wrapper.data('countdown-month'),
24                    day      : $wrapper.data('countdown-day'),
25                    hour     : $wrapper.data('countdown-hour'),
26                    min      : $wrapper.data('countdown-min'),
27                    sec      : $wrapper.data('countdown-sec')
28                },
29
30                targetDate = new Date(data.year,data.month,data.day,data.hour,data.min,data.sec);
31                $year      = $wrapper.find('.aux-countdown-year'),
32                $month     = $wrapper.find('.aux-countdown-month'),
33                $day       = $wrapper.find('.aux-countdown-day'),
34                $hour      = $wrapper.find('.aux-countdown-hour'),
35                $min       = $wrapper.find('.aux-countdown-min'),
36                $sec       = $wrapper.find('.aux-countdown-sec');
37                
38                setInterval( function(){
39                    var diffTime = ( Date.parse(targetDate) - Date.parse(new Date() ) ) / 1000;
40                    
41                    if ( diffTime < 0 ) return;
42                    
43                    $year.text( Math.floor( diffTime /  ( 31536000 ) ) ); // 1 year = 3153600 second
44                    $month.text( Math.floor( ( diffTime / 2592000 ) % 12 ) ); // 1 month = 2592000 second
45                    $day.text( Math.floor( ( diffTime / 86400 ) % 365 ) ); // 1 day = 86400 second
46                    $hour.text( Math.floor( ( diffTime / 3600 ) % 24 ) ); // 1 hour = 3600 second
47                    $min.text( Math.floor( ( diffTime / 60 ) % 60 ) ); // 1 min  = 60 second
48                    $sec.text( Math.floor( ( diffTime ) % 60 ) );
49
50            },1000 )
51            
52        }
53
54        $('.aux-widget-countdown').each(function(){
55            $(this).AuxinCountDown();
56        });
57
58        $.fn.AuxinCounter = function( $scope ) {
59            $scope = $scope || $(this);
60            $scope.find('.aux-counter-number').each(function(){
61                var $this = $(this),
62                    hasAnimation = $('body').hasClass('aux-page-animation');
63                var data = {
64                    delay: $this.data('delay'),
65                    easing: $this.data('easing'),
66                    duration: $this.data('duration'),
67                    toValue: $this.data('to-value'),
68                    delimiter: $this.data('delimiter')
69                };
70
71                var decimalDigits = data.toValue.toString().match(/\.(.*)/);
72
73                if ( decimalDigits ) {
74                    data.rounding = decimalDigits[1].length;
75                }
76
77                var run_counter = function( $this, data ) {
78                    if ( $.fn.appearl ) {
79                        $this.appearl().one( 'appear', function(){        
80                            if ( data.delay ) {
81                                setTimeout( function(){
82                                    $this.numerator( data );
83                                }, data.delay );
84                            } else {
85                                $this.numerator( data );   
86                            }
87                        });
88                    } else {
89                        if ( data.delay ) {
90                            setTimeout( function(){
91                                $this.numerator( data );
92                            }, data.delay );
93                        } else {
94                            $this.numerator( data );   
95                        }
96                    }
97                }
98    
99                if ( hasAnimation ) {
100                    document.body.addEventListener( 'AuxPageAnimationDone', function(event) {
101                        run_counter( $this, data );    
102                    });
103                } else {
104                    run_counter( $this, data );
105                }
106            });
107        }
108
109        $.fn.AuxinCounter( $('body') );
110
111    });
112
113})(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.