PageSourceSearch

https://www.todopatuweb.net/wp-content/plugins/modeltheme-framework/js/modeltheme-custom.js?ver=1.0.0

js todopatuweb.net collected 2026-09-25 22:55:25 UTC 19,253 bytes, 669 lines download raw bytes

1/*
2 Project name:       MODELTHEME
3 Project author:     ModelTheme
4 File name:          Custom JS
5*/
6
7
8
9
10// TIMELINE VERTICAL
11jQuery(document).ready(function($){
12  var timelineBlocks = $('.cd-timeline-block'),
13    offset = 0.8;
14
15  //hide timeline blocks which are outside the viewport
16  hideBlocks(timelineBlocks, offset);
17
18  //on scolling, show/animate timeline blocks when enter the viewport
19  $(window).on('scroll', function(){
20    (!window.requestAnimationFrame) 
21      ? setTimeout(function(){ showBlocks(timelineBlocks, offset); }, 100)
22      : window.requestAnimationFrame(function(){ showBlocks(timelineBlocks, offset); });
23  });
24
25  function hideBlocks(blocks, offset) {
26    blocks.each(function(){
27      ( $(this).offset().top > $(window).scrollTop()+$(window).height()*offset ) && $(this).find('.cd-timeline-img, .cd-timeline-content, .cd-date, .timeline_item_title, .timeline_item_content').addClass('is-hidden');
28    });
29  }
30
31  function showBlocks(blocks, offset) {
32    blocks.each(function(){
33      ( $(this).offset().top <= $(window).scrollTop()+$(window).height()*offset && $(this).find('.cd-timeline-img').hasClass('is-hidden') ) && $(this).find('.cd-timeline-img, .cd-timeline-content, .cd-date, .timeline_item_title, .timeline_item_content').removeClass('is-hidden').addClass('bounce-in');
34    });
35  }
36});
37
38
39jQuery('.select-car-type').select2();
40jQuery('.select-car-category').select2();
41
42
43  if ( jQuery( "#grid" ).length ) {
44    (function() {
45
46      function init() {
47        var speed = 300,
48          easing = mina.backout;
49
50        [].slice.call ( document.querySelectorAll( '#grid a' ) ).forEach( function( el ) {
51          var s = Snap( el.querySelector( 'svg' ) ), path = s.select( 'path' ),
52            pathConfig = {
53              from : path.attr( 'd' ),
54              to : el.getAttribute( 'data-path-hover' )
55            };
56
57          el.addEventListener( 'mouseenter', function() {
58            path.animate( { 'path' : pathConfig.to }, speed, easing );
59          } );
60
61          el.addEventListener( 'mouseleave', function() {
62            path.animate( { 'path' : pathConfig.from }, speed, easing );
63          } );
64        } );
65      }
66
67      init();
68
69    })();
70  }
71
72
73
74
75
76(function ($) {
77  'use strict';
78
79  jQuery( document ).ready(function() {
80    /*
81    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> TESTIMONIALS01 SLIDER (Shortcode)
82    */
83    jQuery(".testimonials-container").owlCarousel({
84        navigation      : false, // Show next and prev buttons
85        pagination      : true,
86        autoPlay        : false,
87        slideSpeed      : 700,
88        paginationSpeed : 700,
89        itemsCustom : [
90            [0,     1],
91            [450,   1],
92            [600,   2],
93            [700,   2],
94            [1000,  2],
95            [1200,  2],
96            [1400,  2],
97            [1600,  2]
98        ]
99    });
100    jQuery(".members-container").owlCarousel({
101        navigation      : false, // Show next and prev buttons
102        pagination      : false,
103        autoPlay        : false,
104        slideSpeed      : 700,
105        paginationSpeed : 700,
106        singleItem      : true,
107        itemsCustom : [
108            [0,     1],
109            [450,   1],
110            [600,   1],
111            [700,   1],
112            [1000,  1],
113            [1200,  1],
114            [1400,  1],
115            [1600,  1]
116        ]
117    });
118    jQuery(".testimonials-container-1").owlCarousel({
119        navigation      : false, // Show next and prev buttons
120        pagination      : false,
121        autoPlay        : false,
122        slideSpeed      : 700,
123        paginationSpeed : 700,
124        itemsCustom : [
125            [0,     1],
126            [450,   1],
127            [600,   1],
128            [700,   1],
129            [1000,  1],
130            [1200,  1],
131            [1400,  1],
132            [1600,  1]
133        ]
134    });
135    jQuery(".testimonials-container-2").owlCarousel({
136        navigation      : false, // Show next and prev buttons
137        pagination      : true,
138        autoPlay        : false,
139        slideSpeed      : 700,
140        paginationSpeed : 700,
141        itemsCustom : [
142            [0,     1],
143            [450,   1],
144            [600,   2],
145            [700,   2],
146            [1000,  2],
147            [1200,  2],
148            [1400,  2],
149            [1600,  2]
150        ]
151    });
152    jQuery(".testimonials-container-3").owlCarousel({
153        navigation      : false, // Show next and prev buttons
154        pagination      : false,
155        autoPlay        : false,
156        slideSpeed      : 700,
157        paginationSpeed : 700,
158        itemsCustom : [
159            [0,     1],
160            [450,   1],
161            [600,   2],
162            [700,   2],
163            [1000,  3],
164            [1200,  3],
165            [1400,  3],
166            [1600,  3]
167        ]
168    });
169
170    /*
171    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> TESTIMONIALS02 SLIDER (Shortcode)
172    */
173    jQuery(".testimonials02-container").owlCarousel({
174      navigation      : false, // Show next and prev buttons
175      pagination      : true,
176      autoPlay        : false,
177      slideSpeed      : 700,
178      paginationSpeed : 700,
179      singleItem      : true
180    });
181
182    /*
183    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> TWEETS SLIDER (Shortcode)
184    */
185    jQuery(".mt_tweets_slider").owlCarousel({
186      navigation      : false, // Show next and prev buttons
187      pagination      : false,
188      autoPlay        : false,
189      slideSpeed      : 700,
190      paginationSpeed : 700,
191      singleItem      : true
192    });
193
194
195    /*
196    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> MEMBERS FANCY SLIDER (Shortcode)
197    */
198    jQuery(".mt_members_fancy_slider").owlCarousel({
199      navigation      : false, // Show next and prev buttons
200      pagination      : false,
201      autoPlay        : false,
202      slideSpeed      : 700,
203      paginationSpeed : 700,
204      autoPlay : true,
205      autoPlayTimeout:10000,
206      autoPlayHoverPause:true,
207      itemsCustom : [
208          [0,     1],
209          [450,   1],
210          [600,   2],
211          [700,   2],
212          [1000,  4],
213          [1200,  4],
214          [1400,  4],
215          [1600,  4]
216      ]
217    });
218
219
220    /*
221    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> CLIENTS SLIDER (Shortcode)
222    */
223    jQuery(".clients_container_shortcode-1").owlCarousel({
224        navigation      : false, // Show next and prev buttons
225        pagination      : false,
226        autoPlay        : false,
227        slideSpeed      : 700,
228        paginationSpeed : 700,
229        autoPlay : true,
230        autoPlayTimeout:10000,
231        autoPlayHoverPause:true,
232        itemsCustom : [
233            [0,     1],
234            [450,   1],
235            [600,   1],
236            [700,   1],
237            [1000,  1],
238            [1200,  1],
239            [1400,  1],
240            [1600,  1]
241        ]
242    });
243    jQuery(".clients_container_shortcode-2").owlCarousel({
244        navigation      : false, // Show next and prev buttons
245        pagination      : false,
246        autoPlay        : false,
247        slideSpeed      : 700,
248        paginationSpeed : 700,
249        autoPlay : true,
250        autoPlayTimeout:10000,
251        autoPlayHoverPause:true,
252        itemsCustom : [
253            [0,     1],
254            [450,   1],
255            [600,   2],
256            [700,   2],
257            [1000,  2],
258            [1200,  2],
259            [1400,  2],
260            [1600,  2]
261        ]
262    });
263    jQuery(".clients_container_shortcode-3").owlCarousel({
264        navigation      : false, // Show next and prev buttons
265        pagination      : false,
266        autoPlay        : false,
267        slideSpeed      : 700,
268        paginationSpeed : 700,
269        autoPlay : true,
270        autoPlayTimeout:10000,
271        autoPlayHoverPause:true,
272        itemsCustom : [
273            [0,     1],
274            [450,   1],
275            [600,   2],
276            [700,   2],
277            [1000,  3],
278            [1200,  3],
279            [1400,  3],
280            [1600,  3]
281        ]
282    });
283
284    jQuery(".clients_container_shortcode-4").owlCarousel({
285        navigation      : false, // Show next and prev buttons
286        pagination      : false,
287        autoPlay        : false,
288        slideSpeed      : 700,
289        paginationSpeed : 700,
290        autoPlay : true,
291        autoPlayTimeout:10000,
292        autoPlayHoverPause:true,
293        itemsCustom : [
294            [0,     1],
295            [450,   1],
296            [600,   2],
297            [700,   3],
298            [1000,  4],
299            [1200,  4],
300            [1400,  4],
301            [1600,  4]
302        ]
303    });
304
305
306    jQuery(".clients_container_shortcode-5").owlCarousel({
307        navigation      : false, // Show next and prev buttons
308        pagination      : false,
309        autoPlay        : false,
310        slideSpeed      : 700,
311        paginationSpeed : 700,
312        autoPlay : true,
313        autoPlayTimeout:10000,
314        autoPlayHoverPause:true,
315        itemsCustom : [
316            [0,     1],
317            [450,   2],
318            [600,   2],
319            [700,   3],
320            [1000,  4],
321            [1200,  4],
322            [1400,  5],
323            [1600,  5]
324        ]
325    });
326
327        /*
328    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> ICODROPS SLIDER (Shortcode)
329    */
330    jQuery(".icodrops_slider_container_shortcode-1").owlCarousel({
331        navigation      : false, // Show next and prev buttons
332        pagination      : false,
333        autoPlay        : false,
334        slideSpeed      : 700,
335        paginationSpeed : 700,
336        autoPlay : true,
337        autoPlayTimeout:10000,
338        autoPlayHoverPause:true,
339        itemsCustom : [
340            [0,     1],
341            [450,   1],
342            [600,   1],
343            [700,   1],
344            [1000,  1],
345            [1200,  1],
346            [1400,  1],
347            [1600,  1]
348        ]
349    });
350    jQuery(".icodrops_slider_container_shortcode-2").owlCarousel({
351        navigation      : false, // Show next and prev buttons
352        pagination      : false,
353        autoPlay        : false,
354        slideSpeed      : 700,
355        paginationSpeed : 700,
356        autoPlay : true,
357        autoPlayTimeout:10000,
358        autoPlayHoverPause:true,
359        itemsCustom : [
360            [0,     1],
361            [450,   1],
362            [600,   2],
363            [700,   2],
364            [1000,  2],
365            [1200,  2],
366            [1400,  2],
367            [1600,  2]
368        ]
369    });
370    jQuery(".icodrops_slider_container_shortcode-3").owlCarousel({
371        navigation      : false, // Show next and prev buttons
372        pagination      : false,
373        autoPlay        : false,
374        slideSpeed      : 700,
375        paginationSpeed : 700,
376        autoPlay : true,
377        autoPlayTimeout:10000,
378        autoPlayHoverPause:true,
379        itemsCustom : [
380            [0,     1],
381            [450,   1],
382            [600,   2],
383            [700,   2],
384            [1000,  3],
385            [1200,  3],
386            [1400,  3],
387            [1600,  3]
388        ]
389    });
390
391    jQuery(".icodrops_slider_container_shortcode-4").owlCarousel({
392        navigation      : false, // Show next and prev buttons
393        pagination      : false,
394        autoPlay        : false,
395        slideSpeed      : 700,
396        paginationSpeed : 700,
397        autoPlay : true,
398        autoPlayTimeout:10000,
399        autoPlayHoverPause:true,
400        itemsCustom : [
401            [0,     1],
402            [450,   1],
403            [600,   2],
404            [700,   3],
405            [1000,  4],
406            [1200,  4],
407            [1400,  4],
408            [1600,  4]
409        ]
410    });
411
412
413    jQuery(".icodrops_slider_container_shortcode-5").owlCarousel({
414        navigation      : false, // Show next and prev buttons
415        pagination      : false,
416        autoPlay        : false,
417        slideSpeed      : 700,
418        paginationSpeed : 700,
419        autoPlay : true,
420        autoPlayTimeout:10000,
421        autoPlayHoverPause:true,
422        itemsCustom : [
423            [0,     1],
424            [450,   2],
425            [600,   2],
426            [700,   2.95],
427            [1000,  3.4],
428            [1200,  3.4],
429            [1400,  3.25],
430            [1600,  3.7]
431        ]
432    });
433
434    /*
435        * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> CATEGORY PRODUCTS (Shortcode) 
436    */
437
438        jQuery(".categories_shortcode_2").owlCarousel({
439            navigation      : false, // Show next and prev buttons
440            pagination      : false,
441            autoPlay        : false,
442            slideSpeed      : 700,
443            paginationSpeed : 700,
444            navigationText  : ["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>"],
445            itemsCustom : [
446                [0,     1],
447                [450,   2],
448                [600,   2],
449                [700,   2],
450                [1000,  2],
451                [1200,  2],
452                [1400,  2],
453                [1600,  2]
454            ]
455        });
456
457        jQuery(".categories_shortcode_3").owlCarousel({
458            navigation      : false, // Show next and prev buttons
459            pagination      : false,
460            autoPlay        : false,
461            slideSpeed      : 700,
462            paginationSpeed : 700,
463            navigationText  : ["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>"],
464            itemsCustom : [
465                [0,     1],
466                [450,   2],
467                [600,   2],
468                [700,   2],
469                [1000,  3],
470                [1200,  3],
471                [1400,  3],
472                [1600,  3]
473            ]
474        });
475
476        jQuery(".categories_shortcode_4").owlCarousel({
477            navigation      : false, // Show next and prev buttons
478            pagination      : false,
479            autoPlay        : false,
480            slideSpeed      : 700,
481            paginationSpeed : 700,
482            navigationText  : ["<i class='fa fa-arrow-left'></i>","<i class='fa fa-arrow-right'></i>"],
483            itemsCustom : [
484                [0,     1],
485                [450,   2],
486                [600,   2],
487                [700,   2],
488                [1000,  4],
489                [1200,  4],
490                [1400,  4],
491                [1600,  4]
492            ]
493        });
494
495
496        if ( jQuery( ".woocommerce_categories" ).length ) {
497            
498            jQuery(".category a").click(function () {
499                var attr = jQuery(this).attr("class");
500
501                jQuery(".products_by_category").removeClass("active");
502                jQuery(attr).addClass("active");
503
504                jQuery('.category').removeClass("active");
505                jQuery(this).parent('.category').addClass("active");
506
507            });  
508
509            jQuery('.products_category .products_by_category:first').addClass("active");
510            jQuery('.categories_shortcode .category:first').addClass("active");
511
512        }
513
514    /*
515    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> GET DIV HEIGHT (Shortcode) 
516    */
517
518    jQuery(document).ready( function() {
519        var height = jQuery(".about_image").height();
520        jQuery('.about_text_holder').css('height',height);
521    });
522
523    jQuery(document).ready( function() {
524        var height = jQuery(".portfolio03_thumbnail").height();
525        jQuery('.color_verlay_portfolio3').css('height',height);
526    });
527
528    jQuery(document).ready( function() {
529        var height = jQuery(".color_verlay_portfolio3").height();
530        jQuery('.portfolio03_title_subtitle_holder').css('height',height);
531    });
532
533    /*
534    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> SERVICES SLIDER (Shortcode)
535    */
536
537    // SET LEFT SIDE height of RIGHT SIDE
538    jQuery( '.right-side' ).ready(function() {
539      var right_side_height = jQuery('.right-side').height();
540      jQuery( '.left-side' ).height( right_side_height )
541    });
542
543
544
545    var sync1 = jQuery("#service_big_slides");
546    var sync2 = jQuery("#service_small_slides");
547   
548    jQuery(".service_small_slides_holder .fa-angle-right").click(function(){
549      sync1.trigger('owl.next');
550    })
551    jQuery(".service_small_slides_holder .fa-angle-left").click(function(){
552      sync1.trigger('owl.prev');
553    })
554
555
556    sync1.owlCarousel({
557      // mouseDrag: false,
558      center:true,
559      loop: true,
560      navigationText:  ["<",">"],
561      rewindNav: true,
562      singleItem : true,
563      slideSpeed : 1000,
564      navigation: false,
565      pagination: false,
566      afterAction : syncPosition,
567      responsiveRefreshRate : 200,
568      afterInit : function(elem){
569        this.jumpTo(1);
570      }
571    });
572   
573    sync2.owlCarousel({
574      // mouseDrag: false,
575      center:true,
576      loop: true,
577      items : 2,
578      itemsDesktop      : [1199,2],
579      itemsDesktopSmall     : [979,3],
580      itemsTablet       : [768,3],
581      itemsMobile       : [479,3],
582      pagination:false,
583      responsiveRefreshRate : 100,
584      afterInit : function(el){
585        el.find(".owl-item").eq(1).addClass("synced");
586      }
587    });
588   
589    function syncPosition(el){
590      var current = this.currentItem;
591      jQuery("#service_small_slides")
592        .find(".owl-item")
593        .removeClass("synced")
594        .eq(current)
595        .addClass("synced")
596      if(jQuery("#service_small_slides").data("owlCarousel") !== undefined){
597        center(current)
598      }
599    }
600   
601    jQuery("#service_small_slides").on("click", ".owl-item", function(e){
602      e.preventDefault();
603      var number = jQuery(this).data("owlItem");
604      sync1.trigger("owl.goTo",number);
605    });
606   
607    function center(number){
608      var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
609      var num = number;
610      var found = false;
611      for(var i in sync2visible){
612        if(num === sync2visible[i]){
613          var found = true;
614        }
615      }
616   
617      if(found===false){
618        if(num>sync2visible[sync2visible.length-1]){
619          sync2.trigger("owl.goTo", num - sync2visible.length+2)
620        }else{
621          if(num - 1 === -1){
622            num = 0;
623          }
624          sync2.trigger("owl.goTo", num);
625        }
626      } else if(num === sync2visible[sync2visible.length-1]){
627        sync2.trigger("owl.goTo", sync2visible[1])
628      } else if(num === sync2visible[0]){
629        sync2.trigger("owl.goTo", num-1)
630      }
631      
632    }
633
634    // Tabs
635
636    jQuery('.naccs .menu div').click(function(){
637      var tab_id = jQuery(this).attr('data-tab');
638
639      jQuery('.naccs .menu div').removeClass('active');
640      jQuery('.naccs ul li').removeClass('active');
641      jQuery('.naccs .gc--1-of-3').removeClass('active');
642      jQuery('.naccs .gc--2-of-3').removeClass('active');
643
644      
645      jQuery(this).parent().parent().addClass('active');
646      jQuery("#"+tab_id).parent().parent().addClass('active');
647      jQuery(this).addClass('active');
648      jQuery("#"+tab_id).addClass('active');
649    })
650
651
652  });
653} (jQuery) )
654
655  // Same hight event 4 columns
656
657  jQuery.fn.equalHeights = function(){
658  var max_height = 0;
659  jQuery(this).each(function(){
660    max_height = Math.max(jQuery(this).height(), max_height);
661  });
662  jQuery(this).each(function(){
663    jQuery(this).height(max_height);
664  });
665};
666
667jQuery(document).ready(function(){
668    jQuery('.row-4events .mt-single-event-inner').equalHeights();
669});

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.