PageSourceSearch

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

js simplifya.com collected 2026-09-25 04:34:37 UTC 12,116 bytes, 437 lines download raw bytes

1/*
2 Project name:       MODELTHEME
3 Project author:     ModelTheme
4 File name:          Custom JS
5*/
6
7
8
9
10jQuery('.select-car-type').select2();
11jQuery('.select-car-category').select2();
12
13
14jQuery("[class$='mt_circle']").percircle();
15
16
17  if ( jQuery( "#grid" ).length ) {
18    (function() {
19
20      function init() {
21        var speed = 300,
22          easing = mina.backout;
23
24        [].slice.call ( document.querySelectorAll( '#grid a' ) ).forEach( function( el ) {
25          var s = Snap( el.querySelector( 'svg' ) ), path = s.select( 'path' ),
26            pathConfig = {
27              from : path.attr( 'd' ),
28              to : el.getAttribute( 'data-path-hover' )
29            };
30
31          el.addEventListener( 'mouseenter', function() {
32            path.animate( { 'path' : pathConfig.to }, speed, easing );
33          } );
34
35          el.addEventListener( 'mouseleave', function() {
36            path.animate( { 'path' : pathConfig.from }, speed, easing );
37          } );
38        } );
39      }
40
41      init();
42
43    })();
44  }
45
46
47
48
49// if ( jQuery( "#mt-members-slideshow" ).length ) {
50//   document.documentElement.className = 'js';
51//   var slideshow = new CircleSlideshow(document.getElementById('mt-members-slideshow'));
52// }
53
54
55
56
57
58
59
60(function ($) {
61  'use strict';
62
63  jQuery( document ).ready(function() {
64    /*
65    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> TESTIMONIALS01 SLIDER (Shortcode)
66    */
67    jQuery(".testimonials-container").owlCarousel({
68        navigation      : false, // Show next and prev buttons
69        pagination      : true,
70        autoPlay        : false,
71        slideSpeed      : 700,
72        paginationSpeed : 700,
73        itemsCustom : [
74            [0,     1],
75            [450,   1],
76            [600,   2],
77            [700,   2],
78            [1000,  2],
79            [1200,  2],
80            [1400,  2],
81            [1600,  2]
82        ]
83    });
84    jQuery(".members-container").owlCarousel({
85        navigation      : true, // Show next and prev buttons
86        pagination      : false,
87        autoPlay        : false,
88        slideSpeed      : 700,
89        paginationSpeed : 700,
90        singleItem      : true,
91        itemsCustom : [
92            [0,     1],
93            [450,   1],
94            [600,   1],
95            [700,   1],
96            [1000,  1],
97            [1200,  1],
98            [1400,  1],
99            [1600,  1]
100        ]
101    });
102    jQuery( ".owl-prev").html('<i class="fa fa-long-arrow-left" aria-hidden="true"></i>');
103    jQuery( ".owl-next").html('<i class="fa fa-long-arrow-right" aria-hidden="true"></i>');
104    jQuery(".testimonials-container-1").owlCarousel({
105        navigation      : false, // Show next and prev buttons
106        pagination      : false,
107        autoPlay        : false,
108        slideSpeed      : 700,
109        paginationSpeed : 700,
110        itemsCustom : [
111            [0,     1],
112            [450,   1],
113            [600,   1],
114            [700,   1],
115            [1000,  1],
116            [1200,  1],
117            [1400,  1],
118            [1600,  1]
119        ]
120    });
121    jQuery(".testimonials-container-2").owlCarousel({
122        navigation      : false, // Show next and prev buttons
123        pagination      : false,
124        autoPlay        : false,
125        slideSpeed      : 700,
126        paginationSpeed : 700,
127        itemsCustom : [
128            [0,     1],
129            [450,   1],
130            [600,   2],
131            [700,   2],
132            [1000,  2],
133            [1200,  2],
134            [1400,  2],
135            [1600,  2]
136        ]
137    });
138    jQuery(".testimonials-container-3").owlCarousel({
139        navigation      : false, // Show next and prev buttons
140        pagination      : false,
141        autoPlay        : false,
142        slideSpeed      : 700,
143        paginationSpeed : 700,
144        itemsCustom : [
145            [0,     1],
146            [450,   1],
147            [600,   2],
148            [700,   2],
149            [1000,  3],
150            [1200,  3],
151            [1400,  3],
152            [1600,  3]
153        ]
154    });
155
156    /*
157    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> TESTIMONIALS02 SLIDER (Shortcode)
158    */
159    jQuery(".testimonials02-container").owlCarousel({
160      navigation      : false, // Show next and prev buttons
161      pagination      : true,
162      autoPlay        : true,
163      slideSpeed      : 700,
164      paginationSpeed : 700,
165      navigationText  : ["<i class='icon-arrow-left'></i>","<i class='icon-arrow-right'></i>"],
166      // navigationText  : ["",""],
167      singleItem      : true
168    });
169
170    /*
171    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> TWEETS SLIDER (Shortcode)
172    */
173    jQuery(".mt_tweets_slider").owlCarousel({
174      navigation      : false, // Show next and prev buttons
175      pagination      : false,
176      autoPlay        : false,
177      slideSpeed      : 700,
178      paginationSpeed : 700,
179      singleItem      : true
180    });
181
182
183    /*
184    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> MEMBERS FANCY SLIDER (Shortcode)
185    */
186    jQuery(".mt_members_fancy_slider").owlCarousel({
187      navigation      : true, // Show next and prev buttons
188      pagination      : false,
189      autoPlay        : false,
190      slideSpeed      : 700,
191      paginationSpeed : 700,
192      autoPlay : true,
193      autoPlayTimeout:10000,
194      autoPlayHoverPause:true,
195      itemsCustom : [
196          [0,     1],
197          [450,   1],
198          [600,   2],
199          [700,   2],
200          [1000,  4],
201          [1200,  4],
202          [1400,  4],
203          [1600,  4]
204      ]
205    });
206    jQuery( ".owl-prev").html('<i class="fa fa-long-arrow-left" aria-hidden="true"></i>');
207    jQuery( ".owl-next").html('<i class="fa fa-long-arrow-right" aria-hidden="true"></i>');
208
209    /*
210    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> CLIENTS SLIDER (Shortcode)
211    */
212    jQuery(".clients_container_shortcode-1").owlCarousel({
213        navigation      : false, // Show next and prev buttons
214        pagination      : false,
215        autoPlay        : false,
216        slideSpeed      : 700,
217        paginationSpeed : 700,
218        autoPlay : true,
219        autoPlayTimeout:10000,
220        autoPlayHoverPause:true,
221        itemsCustom : [
222            [0,     1],
223            [450,   1],
224            [600,   1],
225            [700,   1],
226            [1000,  1],
227            [1200,  1],
228            [1400,  1],
229            [1600,  1]
230        ]
231    });
232    jQuery(".clients_container_shortcode-2").owlCarousel({
233        navigation      : false, // Show next and prev buttons
234        pagination      : false,
235        autoPlay        : false,
236        slideSpeed      : 700,
237        paginationSpeed : 700,
238        autoPlay : true,
239        autoPlayTimeout:10000,
240        autoPlayHoverPause:true,
241        itemsCustom : [
242            [0,     1],
243            [450,   1],
244            [600,   2],
245            [700,   2],
246            [1000,  2],
247            [1200,  2],
248            [1400,  2],
249            [1600,  2]
250        ]
251    });
252    jQuery(".clients_container_shortcode-3").owlCarousel({
253        navigation      : false, // Show next and prev buttons
254        pagination      : false,
255        autoPlay        : false,
256        slideSpeed      : 700,
257        paginationSpeed : 700,
258        autoPlay : true,
259        autoPlayTimeout:10000,
260        autoPlayHoverPause:true,
261        itemsCustom : [
262            [0,     1],
263            [450,   1],
264            [600,   2],
265            [700,   2],
266            [1000,  3],
267            [1200,  3],
268            [1400,  3],
269            [1600,  3]
270        ]
271    });
272
273    jQuery(".clients_container_shortcode-4").owlCarousel({
274        navigation      : false, // Show next and prev buttons
275        pagination      : false,
276        autoPlay        : false,
277        slideSpeed      : 700,
278        paginationSpeed : 700,
279        autoPlay : true,
280        autoPlayTimeout:10000,
281        autoPlayHoverPause:true,
282        itemsCustom : [
283            [0,     1],
284            [450,   1],
285            [600,   2],
286            [700,   3],
287            [1000,  4],
288            [1200,  4],
289            [1400,  4],
290            [1600,  4]
291        ]
292    });
293
294
295    jQuery(".clients_container_shortcode-5").owlCarousel({
296        navigation      : false, // Show next and prev buttons
297        pagination      : false,
298        autoPlay        : false,
299        slideSpeed      : 700,
300        paginationSpeed : 700,
301        autoPlay : true,
302        autoPlayTimeout:10000,
303        autoPlayHoverPause:true,
304        itemsCustom : [
305            [0,     1],
306            [450,   2],
307            [600,   2],
308            [700,   5],
309            [1000,  6],
310            [1200,  6],
311            [1400,  6],
312            [1600,  6]
313        ]
314    });
315
316    /*
317    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> GET DIV HEIGHT (Shortcode) 
318    */
319
320    jQuery(document).ready( function() {
321        var height = jQuery(".about_image").height();
322        jQuery('.about_text_holder').css('height',height);
323    });
324
325    jQuery(document).ready( function() {
326        var height = jQuery(".portfolio03_thumbnail").height();
327        jQuery('.color_verlay_portfolio3').css('height',height);
328    });
329
330    jQuery(document).ready( function() {
331        var height = jQuery(".color_verlay_portfolio3").height();
332        jQuery('.portfolio03_title_subtitle_holder').css('height',height);
333    });
334
335    /*
336    * ||||||||||||||||||||||||||||||||||||||||||||||||||||||||-> SERVICES SLIDER (Shortcode)
337    */
338
339    // SET LEFT SIDE height of RIGHT SIDE
340    jQuery( '.right-side' ).ready(function() {
341      var right_side_height = jQuery('.right-side').height();
342      jQuery( '.left-side' ).height( right_side_height )
343    });
344
345
346
347    var sync1 = jQuery("#service_big_slides");
348    var sync2 = jQuery("#service_small_slides");
349   
350    jQuery(".service_small_slides_holder .fa-angle-right").click(function(){
351      sync1.trigger('owl.next');
352    })
353    jQuery(".service_small_slides_holder .fa-angle-left").click(function(){
354      sync1.trigger('owl.prev');
355    })
356
357
358    sync1.owlCarousel({
359      // mouseDrag: false,
360      center:true,
361      loop: true,
362      navigationText:  ["<",">"],
363      rewindNav: true,
364      singleItem : true,
365      slideSpeed : 1000,
366      navigation: false,
367      pagination: false,
368      afterAction : syncPosition,
369      responsiveRefreshRate : 200,
370      afterInit : function(elem){
371        this.jumpTo(1);
372      }
373    });
374   
375    sync2.owlCarousel({
376      // mouseDrag: false,
377      center:true,
378      loop: true,
379      items : 3,
380      itemsDesktop      : [1199,3],
381      itemsDesktopSmall     : [979,3],
382      itemsTablet       : [768,3],
383      itemsMobile       : [479,3],
384      pagination:false,
385      responsiveRefreshRate : 100,
386      afterInit : function(el){
387        el.find(".owl-item").eq(1).addClass("synced");
388      }
389    });
390   
391    function syncPosition(el){
392      var current = this.currentItem;
393      jQuery("#service_small_slides")
394        .find(".owl-item")
395        .removeClass("synced")
396        .eq(current)
397        .addClass("synced")
398      if(jQuery("#service_small_slides").data("owlCarousel") !== undefined){
399        center(current)
400      }
401    }
402   
403    jQuery("#service_small_slides").on("click", ".owl-item", function(e){
404      e.preventDefault();
405      var number = jQuery(this).data("owlItem");
406      sync1.trigger("owl.goTo",number);
407    });
408   
409    function center(number){
410      var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
411      var num = number;
412      var found = false;
413      for(var i in sync2visible){
414        if(num === sync2visible[i]){
415          var found = true;
416        }
417      }
418   
419      if(found===false){
420        if(num>sync2visible[sync2visible.length-1]){
421          sync2.trigger("owl.goTo", num - sync2visible.length+2)
422        }else{
423          if(num - 1 === -1){
424            num = 0;
425          }
426          sync2.trigger("owl.goTo", num);
427        }
428      } else if(num === sync2visible[sync2visible.length-1]){
429        sync2.trigger("owl.goTo", sync2visible[1])
430      } else if(num === sync2visible[0]){
431        sync2.trigger("owl.goTo", num-1)
432      }
433      
434    }
435
436  });
437} (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.