PageSourceSearch

https://www.journalismfestival.com/wp-content/plugins/everest-counter/js/ec-frontend.js?ver=1.0.0

js journalismfestival.com collected 2026-10-02 02:43:04 UTC 6,716 bytes, 184 lines download raw bytes

1// jQuery(document).ready(function($) {
2//     $('.ec-count-number').counterUp({
3//         delay: 10,
4//         time: 5000
5//     });
6// });
7
8jQuery(document).ready(function($) {
9
10    $('.ec-count-number').each(function(){
11    	var $this = $(this);
12
13    	$switch = $this.data('enable');
14    	
15    	$delay = $this.data('delay');
16    	$duration = $this.data('duration');
17    	
18    	if(typeof($delay) != "undefined" && $delay !== null){
19    	}else{
20    		$delay = '10';
21    	}
22
23    	if(typeof($duration) != "undefined" && $duration !== null){
24    	}else{
25    		$duration = '2000';
26    	}
27
28    	if($switch == 'on'){
29    		$this.counterUp({
30		        delay: $delay,
31		        time: $duration
32		    });
33    	}
34    });
35
36    wow = new WOW(
37			      {
38			      boxClass:     'wow',      // default
39			      animateClass: 'animated', // default
40			      offset:       0,          // default
41			      mobile:       true,       // default
42			      live:         true        // default
43			    }
44    		);
45    wow.init();
46
47    $(".ec-player").each(function(){
48        var $this = $(this);
49        $this.YTPlayer();
50    });
51
52    $(window).resize(function(){
53        setTimeout(function(){
54            $('.ec-template12 .ec-bottom-container, .ec-template15 .ec-bottom-container').each(function(index, el) {
55                var main_width = $(this).outerWidth();
56                var span2_width = $(this).find('.span2').outerWidth();
57                var count_content_width = $(this).find('.ec-count-content').outerWidth();
58                var calculated_width = parseInt(main_width)-parseInt(span2_width)-parseInt(count_content_width);
59                $(this).find('.span1').width(calculated_width - 15);
60                // console.log('Main Width: '+main_width+' | span2_width: '+span2_width+' | count_content_width: '+count_content_width+' | calculated_width: '+calculated_width );
61            });
62
63            $('.ec-template3 .ec-featured-item, .ec-template4 .ec-featured-item').each(function(){
64                var $this = $(this);
65                var main_width = $this.outerWidth();
66                $this.closest( '.ec-counter-item').find('.ec-item-wrap').css('padding-left', main_width+30 );
67                $this.css('margin-left', -parseInt(main_width+30) );
68            });
69
70            $('.ec-template12 .ec-top-container').each(function(){
71                var $this = $(this);
72                var main_width = $this.outerWidth();
73                $this.closest( '.ec-counter-item').find('.ec-item-wrap').css('padding-left', main_width+40 );
74                $this.css('margin-left', -parseInt(main_width+40) );
75            });
76        }, 5000);
77    }).resize();
78
79    $('.ec-prallax-enabled').each(function () {
80        var $this = $(this);
81        var type = $this.attr('data-parallax-source');
82        var image = false;
83        var imageWidth = false;
84        var imageHeight = false;
85        var video = false;
86        var videoStartTime = false;
87        var videoEndTime = false;
88        var parallax = $this.attr('data-parallax-type');
89        var parallaxSpeed = $this.attr('data-parallax-speed');
90        var parallaxMobile = $this.attr('data-parallax-mobile') !== 'false';
91
92        // image type
93        if (type === 'image') {
94            image = $this.attr('data-parallax-image');
95            imageWidth = $this.attr('data-parallax-image-width');
96            imageHeight = $this.attr('data-parallax-image-height');
97        }
98
99        // video type
100        if (type === 'video') {
101            video = $this.attr('data-parallax-video');
102            videoStartTime = $this.attr('data-parallax-video-start-time');
103            videoEndTime = $this.attr('data-parallax-video-end-time');
104        }
105
106        // prevent if no parallax and no video
107        if (!parallax && !video) {
108            return;
109        }
110
111        var jarallaxParams = {
112            type: parallax,
113            imgSrc: image,
114            imgWidth: imageWidth,
115            imgHeight: imageHeight,
116            speed: parallaxSpeed,
117            noAndroid: !parallaxMobile,
118            noIos: !parallaxMobile
119        };
120
121        if (video) {
122            jarallaxParams.speed = parallax ? parallaxSpeed : 1;
123            jarallaxParams.videoSrc = video;
124            jarallaxParams.videoStartTime = videoStartTime;
125            jarallaxParams.videoEndTime = videoEndTime;
126        }
127
128        $this.jarallax(jarallaxParams);
129    });
130
131    // $('.nk-awb-wrap:not(.nk-awb-rendered)').each(function () {
132    //         var $this = $(this).addClass('nk-awb-rendered');
133    //         var type = $this.attr('data-parallax-source');
134    //         var image = false;
135    //         var imageWidth = false;
136    //         var imageHeight = false;
137    //         var video = false;
138    //         var videoStartTime = false;
139    //         var videoEndTime = false;
140    //         var parallax = $this.attr('data-parallax-type');
141    //         var parallaxSpeed = $this.attr('data-parallax-speed');
142    //         var parallaxMobile = $this.attr('data-parallax-mobile') !== 'false';
143
144    //         // image type
145    //         if (type === 'image') {
146    //             image = $this.attr('data-parallax-image');
147    //             imageWidth = $this.attr('data-parallax-image-width');
148    //             imageHeight = $this.attr('data-parallax-image-height');
149    //         }
150
151    //         // video type
152    //         if (type === 'video') {
153    //             video = $this.attr('data-parallax-video');
154    //             videoStartTime = $this.attr('data-parallax-video-start-time');
155    //             videoEndTime = $this.attr('data-parallax-video-end-time');
156    //         }
157
158    //         // prevent if no parallax and no video
159    //         if (!parallax && !video) {
160                
161    //             return;
162    //         }
163
164    //         var jarallaxParams = {
165    //             type: parallax,
166    //             imgSrc: image,
167    //             imgWidth: imageWidth,
168    //             imgHeight: imageHeight,
169    //             speed: parallaxSpeed,
170    //             noAndroid: !parallaxMobile,
171    //             noIos: !parallaxMobile
172    //         };
173
174    //         if (video) {
175    //             jarallaxParams.speed = parallax ? parallaxSpeed : 1;
176    //             jarallaxParams.videoSrc = video;
177    //             jarallaxParams.videoStartTime = videoStartTime;
178    //             jarallaxParams.videoEndTime = videoEndTime;
179    //         }
180
181    //         $this.children('.nk-awb-inner').jarallax(jarallaxParams);
182    //     });
183
184});

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.