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