PageSourceSearch

https://friendsofthecongo.org/wp-content/themes/education-zone-pro/js/custom.js?ver=2.2.1

js friendsofthecongo.org collected 2026-10-02 04:41:20 UTC 13,635 bytes, 373 lines download raw bytes

1jQuery(document).ready(function($){
2		
3        /** Variables from Customizer for Slider settings */
4        if( education_zone_pro_data.auto == '1' ){
5            var slider_auto = true;
6        }else{
7            var slider_auto = false;
8        }
9
10        if( education_zone_pro_data.navigation == '1' ){
11            var slider_navigation = true;
12        }else{
13            var slider_navigation = false;
14        }
15        
16        if( education_zone_pro_data.stoponhover == '1' ){
17            var stop_on_hover = true;
18        }else{
19            var stop_on_hover = false;
20        }
21        
22        if( education_zone_pro_data.loop == '1' ){
23            var slider_loop = true;
24        }else{
25            var slider_loop = false;
26        }
27        
28        if( education_zone_pro_data.mode == 'slide' ){
29            var animation = '';
30
31        }else if( education_zone_pro_data.mode == 'fade' ){
32            var animation = 'fadeOut';
33
34        }else if( education_zone_pro_data.mode == 'backSlide' ){
35            var animation = 'zoomOutLeft';
36
37        }else if( education_zone_pro_data.mode == 'goDown' ){
38            var animation = 'fadeOutDown';
39
40        }else if( education_zone_pro_data.mode == 'fadeUp' ){
41            var animation = 'fadeOutUp';
42        }else{
43            var animation = education_zone_pro_data.mode;
44        }	
45        if( education_zone_pro_data.rtl == '1' ){
46            var rtl = true;
47            var mrtl = false;
48        }else{
49            var rtl = false;
50            var mrtl = true;
51        }
52        /* testimonial */
53        if( education_zone_pro_data.t_auto == '1' ){
54            var t_slider_auto = true;
55        }else{
56            var t_slider_auto = false;
57        }
58
59        
60        $("#banner-slider").owlCarousel({ 
61              items               : 1, 
62              loop                : slider_loop, // Show next and prev buttons
63              autoplay            : slider_auto,
64              animateOut          : animation,
65              rtl                 : rtl,
66              mouseDrag           : false,
67              autoplaySpeed       : 1000,
68              nav                 : slider_navigation,
69              autoplayHoverPause  : stop_on_hover,
70              dots                : false,
71              lazyLoad            : true
72        });
73        
74        $('.testimonial-slide').owlCarousel({
75              items    : 1,
76              nav      : true, 
77              rtl      : rtl,
78              loop     : true,
79              autoplay : t_slider_auto,
80        });
81
82        if( education_zone_pro_data.gallery_as_slider == '1' ){
83          $('.gallery').lightSlider({
84              item: 5,
85              autoWidth: false,
86              slideMove: 1, // slidemove will be 1 if loop is true
87              slideMargin: 0,
88              autoplay : t_slider_auto,
89
90              addClass: '',
91              mode: "slide",
92              useCSS: true,
93              cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',//
94              easing: 'linear', //'for jquery animation',////
95           
96              speed: 400, //ms'
97              auto: false,
98              loop: false,
99              slideEndAnimation: true,
100              pause: 2000,
101           
102              keyPress: false,
103              controls: true,
104              prevHtml: '',
105              nextHtml: '',
106           
107              rtl:false,
108              adaptiveHeight:false,
109           
110              vertical:false,
111              verticalHeight:500,
112              vThumbWidth:100,
113           
114              thumbItem:10,
115              pager: false,
116              gallery: false,
117              galleryMargin: 5,
118              thumbMargin: 5,
119              currentPagerPosition: 'middle',
120           
121              enableTouch:true,
122              enableDrag:false,
123              freeMove:true,
124              swipeThreshold: 40,
125           
126              responsive : [
127                  {
128                      breakpoint:767.5,
129                      settings: {
130                          item: 1,
131                      }
132                  }
133                  ],
134           
135              onBeforeStart: function (el) {},
136              onSliderLoad: function (el) {},
137              onBeforeSlide: function (el) {},
138              onAfterSlide: function (el) {},
139              onBeforeNextSlide: function (el) {},
140              onBeforePrevSlide: function (el) {}
141          });
142        }
143
144        // shortcodes slider
145        $('#slider').owlCarousel({
146              items : 1,
147              nav   : true, 
148              rtl   : rtl,
149              loop  : true,
150              margin: 5,
151        });
152
153      if( education_zone_pro_data.header == 'three' ){
154        var p_side = 'right';
155        var s_side = 'right';
156      }else if( education_zone_pro_data.header == 'six' || education_zone_pro_data.header == 'one' ){
157        var p_side = 'left';
158        var s_side = 'right';
159      }else{
160        var p_side = 'left';
161        var s_side = 'left'; 
162      }
163      
164    	$('#responsive-menu-button').sidr({
165          name: 'sidr-main',
166          source: '#site-navigation',
167          side: p_side
168        });
169
170        $('#responsive-btn').sidr({
171            name: 'sidr-secondary',
172            source: '#secondary-navigation',
173            side: s_side
174        });
175
176        $('.map-section').click(function () {
177          $('.map-section iframe').css("pointer-events", "auto");
178        });
179
180        $( ".map-section" ).mouseleave(function() {
181          $('.map-section iframe').css("pointer-events", "none"); 
182        });
183   
184        
185           /** Lightbox */
186    if( education_zone_pro_data.lightbox == '1' ){
187        
188        $('.entry-content').find('.gallery-columns-1').find('.gallery-icon > a').attr( 'rel', 'group1' );
189        $('.entry-content').find('.gallery-columns-2').find('.gallery-icon > a').attr( 'rel', 'group2' );
190        $('.entry-content').find('.gallery-columns-3').find('.gallery-icon > a').attr( 'rel', 'group3' );
191        $('.entry-content').find('.gallery-columns-4').find('.gallery-icon > a').attr( 'rel', 'group4' );
192        $('.entry-content').find('.gallery-columns-5').find('.gallery-icon > a').attr( 'rel', 'group5' );
193        $('.entry-content').find('.gallery-columns-6').find('.gallery-icon > a').attr( 'rel', 'group6' );
194        $('.entry-content').find('.gallery-columns-7').find('.gallery-icon > a').attr( 'rel', 'group7' );
195        $('.entry-content').find('.gallery-columns-8').find('.gallery-icon > a').attr( 'rel', 'group8' );
196        $('.entry-content').find('.gallery-columns-9').find('.gallery-icon > a').attr( 'rel', 'group9' );
197        
198        $("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.png'],a[href$='.gif']").fancybox();
199        
200    }
201
202    /* Sticky Menu */ 
203
204    var windowWidth = $(window).width();   
205    if( education_zone_pro_data.sticky == '1' && windowWidth >= 992 ){
206        var mns = "sticky-menu";
207        if( education_zone_pro_data.header == 'three' ){
208          hdr = $('.site-header.header-three .header-top').height();
209          mn = $(".site-header.header-three .header-m");
210        } else if(education_zone_pro_data.header == 'four'){
211          hdr = $('.site-header.header-four .header-m').height();
212          mn = $(".site-header.header-four .header-bottom");
213        } else if(education_zone_pro_data.header == 'five'){
214          hdr = $('.site-header.header-five .header-holder').height();
215          mn = $(".site-header.header-five .header-bottom");
216        } else if(education_zone_pro_data.header == 'six'){
217          hdr = $('.site-header.header-six .header-top').outerHeight();
218          mn = $(".site-header.header-six .header-bottom");
219        } else{
220          hdr = $('.site-header .header-holder').height();
221          mn = $(".site-header .header-bottom");
222        }
223        headerBottomheight = $('.site-header .header-bottom').height();
224        headertopheight    = $('.site-header.header-three .header-m').height();
225        headerFourHeight   = $('.site-header.header-four .header-bottom').outerHeight();
226        headerFiveHeight   = $('.site-header.header-five .header-bottom').height();
227        headerSixHeight    = $('.site-header.header-six .header-bottom').height(); 
228
229        //mn = $(".site-header .header-bottom");   
230        
231        $(window).scroll(function() {
232            if( $(this).scrollTop() > hdr ) {
233                mn.addClass(mns);
234                if( education_zone_pro_data.header == 'three' ){
235                  $('.sticky-holder').css('height', headertopheight);
236                } else if( education_zone_pro_data.header == 'four' ) {
237                  $('.sticky-holder').css('height', headerFourHeight);
238                } else if(education_zone_pro_data.header == 'five'){
239                  $('.sticky-holder').css('height', headerFiveHeight);
240                } else if(education_zone_pro_data.header == 'six'){
241                  $('.sticky-holder').css('height', headerSixHeight);
242                }
243                else{
244                  $('.sticky-holder').css('height', headerBottomheight);
245                }
246            }else {
247              mn.removeClass(mns);
248              $('.sticky-holder').css('height', 0);
249            }
250        });
251    }
252
253    // Script for back to top
254    $(window).scroll(function(){
255        if($(this).scrollTop() > 300){
256          $('#rara-top').fadeIn();
257        }else{
258          $('#rara-top').fadeOut();
259        }
260    });
261    
262    $("#rara-top").click(function(){
263        $('html,body').animate({scrollTop:0},600);
264    });
265    /* Sticky Menu Ends */  
266    if( education_zone_pro_data.gallery_as_slider !== '1' ){
267      $('.gallery').imagesLoaded( function() {
268          $('.gallery').masonry({
269             itemSelector: '.gallery-item',
270             isOriginLeft: mrtl             
271          });
272      });
273    }
274    
275    /****SHORTCODE***/
276        
277    $('.rara_accordian .rara_accordian_content').hide(); /**Need to be CSS*/
278    $('.rara_accordian:first').children('.rara_accordian_content').show();
279    $('.rara_accordian:first').children('.rara_accordian_title').addClass('active');
280    $('.rara_accordian_title').click(function(){
281    if($(this).hasClass('active')){
282    }
283    else{
284      $(this).parent('.rara_accordian').siblings().find('.rara_accordian_content').slideUp();
285      $(this).next('.rara_accordian_content').slideToggle();
286      $(this).parent('.rara_accordian').siblings().find('.rara_accordian_title').removeClass('active')
287      $(this).toggleClass('active')
288    }
289    });
290    
291    $('.rara_toggle.close .rara_toggle_content').hide(); /**Need to be CSS*/
292    $('.rara_toggle.open .rara_toggle_title').addClass('active');
293    $('.rara_toggle_title').click(function(){
294      $(this).next('.rara_toggle_content').slideToggle();
295      $(this).toggleClass('active')
296    });
297    
298    $('.rara_tab').hide();/**Need to be CSS*/
299    $('.rara_tab_wrap').prepend('<div class="rara_tab_group clearfix"></div>');
300
301    $('.rara_tab_wrap').each(function(){
302        $(this).children('.rara_tab').find('.tab-title').prependTo($(this).find('.rara_tab_group'));
303        $(this).children('.rara_tab').wrapAll( "<div class='rara_tab_content clearfix' />");
304    });
305
306    $('#page').each(function(){
307        $(this).find('.rara_tab:first-child').show();
308        $(this).find('.tab-title:first-child').addClass('active')
309    });
310 
311    $('.rara_tab_group .tab-title').click(function(){
312        $(this).siblings().removeClass('active');
313        $(this).addClass('active');
314        $(this).parent('.rara_tab_group ').next('.rara_tab_content').find('.rara_tab').hide();
315        var ap_id = $(this).attr('id');
316        $(this).parent('.rara_tab_group ').next('.rara_tab_content').find('.'+ap_id).show();
317    });    
318    /****SHORTCODE***/ 
319
320        /* courses Isotope Filter */
321    if( $('.page-template-template-courses').length > 0 ){
322        // init Isotope
323        var $grid = $('.post-lists').imagesLoaded( function(){  
324        
325            $grid.isotope({
326              // options
327            });
328            
329            // filter items on button click
330            $('.filter-button-group').on( 'click', 'li', function() {
331              $('.filter-button-group li').removeClass('is-active');
332              $(this).addClass('is-active');
333              var filterValue = $(this).attr('data-filter');
334              $grid.isotope({ filter: filterValue });
335            });
336        
337        });
338    }
339    
340    /** Header Search form show/hide */
341    if( education_zone_pro_data.header !== 'one' ){
342      $('html').click(function() {
343          $('.example').slideUp();
344      });
345    }
346
347    $('.site-header .form-section').click(function(event){
348        event.stopPropagation();
349    });
350    
351    $("#search-btn").click(function(){
352        $(".example").slideToggle();
353        return false 
354    });
355
356      // match height
357      $('.thumb-text li > div').matchHeight();
358
359      $('.template-courses .cat-posts .post-lists li .text').matchHeight();
360
361      $('.choose-us .col').matchHeight();
362
363      // custom scroll bar
364      $(window).on("load",function(){
365        $(".team-section .col .text-holder").mCustomScrollbar({
366          theme: "dark-thin"
367        });
368        $(".featured-courses .description").mCustomScrollbar({
369          theme: "dark-thin"
370        });
371      });
372});
373

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.