1(function($){ 2 "use strict"; 3 jQuery(document).on('ready', function () { 4 5 // Header Sticky 6 $(window).on('scroll',function() { 7 if ($(this).scrollTop() > 120){ 8 $('.navbar-area').addClass("is-sticky"); 9 } 10 else{ 11 $('.navbar-area').removeClass("is-sticky"); 12 } 13 }); 14 15 $(function () { 16 $('[data-toggle="tooltip"]').tooltip(); 17 }); 18 19 // Newsletter Modal JS 20 if (jQuery(".newsletter-modal")[0]) { 21 var popDisplayed = $.cookie('popDisplayed'); 22 if(popDisplayed == '1'){ 23 console.log(''); 24 }else{ 25 setTimeout(function(){ 26 $("body").addClass('modal-open'); 27 $("#newsletter-modal").fadeIn(500); 28 }, 3000); 29 $.cookie('popDisplayed', '1', { expires: 1 }); 30 31 $(".btn-yes").on('click', function () { 32 $("#newsletter-modal").fadeOut(500); 33 $("body").removeClass('modal-open'); 34 }); 35 } 36 } 37 38 // Odometer JS 39 $('.odometer').appears(function(e) { 40 var odo = $(".odometer"); 41 odo.each(function() { 42 var countNumber = $(this).attr("data-count"); 43 $(this).html(countNumber); 44 }); 45 }); 46 47 48 $(".search-submit, .blog_widget #bbp_search_submit").val('ï'); 49 50 // Bbpress Breadcrumbs 51 if ($('.bbp-breadcrumb').length > 0) { 52 $( '.bbp-breadcrumb' ).appendTo( $(".bbpress-breadcrumbs")); 53 } 54 55 // Others Option Responsive JS 56 $(".others-option-for-responsive .dot-menu").on("click", function(){ 57 $(".others-option-for-responsive .container .container").toggleClass("active"); 58 }); 59 60 // Button Hover JS 61 $(function() { 62 $('.default-btn') 63 .on('mouseenter', function(e) { 64 var parentOffset = $(this).offset(), 65 relX = e.pageX - parentOffset.left, 66 relY = e.pageY - parentOffset.top; 67 $(this).find('span').css({top:relY, left:relX}) 68 }) 69 .on('mouseout', function(e) { 70 var parentOffset = $(this).offset(), 71 relX = e.pageX - parentOffset.left, 72 relY = e.pageY - parentOffset.top; 73 $(this).find('span').css({top:relY, left:relX}) 74 }); 75 }); 76 77 // FAQ Accordion 78 $(function() { 79 $('.accordion').find('.accordion-title').on('click', function(){ 80 // Adds Active Class 81 $(this).toggleClass('active'); 82 // Expand or Collapse This Panel 83 $(this).next().slideToggle('fast'); 84 // Hide The Other Panels 85 $('.accordion-content').not($(this).next()).slideUp('fast'); 86 // Removes Active Class From Other Titles 87 $('.accordion-title').not($(this)).removeClass('active'); 88 }); 89 }); 90 91 // Mean Menu 92 $('.mean-menu').meanmenu({ 93 meanScreenWidth: "1199" 94 }); 95 96 $(".learnpress .become-teacher-form .form-fields .form-field label").first().append("<span>*</span>"); 97 $(".learnpress .become-teacher-form .form-fields .form-field:nth-child(2) label").append("<span>*</span>"); 98 99 // Banner Animation 100 window.onload = function() { 101 var timeline = new TimelineMax(); 102 timeline.from(".main-banner-content, .main-banner-courses-list, .banner-wrapper-content, .banner-wrapper-image, .banner-content, .banner-image", 1, {y:60},0) 103 } 104 105 // Banner Animation 106 window.onload = function() { 107 var timeline = new TimelineMax(); 108 timeline.from(".online-art-banner-image, .online-art-banner-content, .online-art-banner-wrap-image, .instructor-banner-content, .instructor-banner-image", 1, {y:60},0) 109 } 110 111 // TweenMax JS 112 $('.oa-video-box').mousemove(function(e){ 113 var wx = $(window).width(); 114 var wy = $(window).height(); 115 var x = e.pageX - this.offsetLeft; 116 var y = e.pageY - this.offsetTop; 117 var newx = x - wx/2; 118 var newy = y - wy/2; 119 $('.oa-video-shape-1, .oa-video-shape-2, .oa-video-shape-3').each(function(){ 120 var speed = $(this).attr('data-speed'); 121 if($(this).attr('data-revert')) speed *= -1; 122 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 123 }); 124 }); 125 126 // Isotop Js 127 var $grid = $('.blog-items, .courses-items').isotope({ 128 itemSelector: '.grid-item', 129 percentPosition: true, 130 masonry: { 131 // Use outer width of grid-sizer for columnWidth 132 columnWidth: '.grid-item' 133 } 134 }); 135 136 // Isotop Js 137 var $grid = $('.op-gallery-items').isotope({ 138 itemSelector: '.grid-item', 139 percentPosition: true, 140 masonry: { 141 // Use outer width of grid-sizer for columnWidth 142 columnWidth: '.grid-item' 143 } 144 }); 145 146 $('.op-gallery-items').magnificPopup({ 147 delegate: 'a', 148 type: 'image', 149 tLoading: 'Loading image #%curr%...', 150 mainClass: 'mfp-img-mobile', 151 gallery: { 152 enabled: true, 153 navigateByImgClick: true, 154 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 155 }, 156 image: { 157 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 158 titleSrc: function(item) { 159 return item.el.attr('title'); 160 } 161 } 162 }); 163 164 // Popup Image 165 $('.popup-btn').magnificPopup({ 166 type: 'image', 167 gallery: { 168 enabled:true 169 } 170 }); 171 172 // Tabs 173 (function ($) { 174 $('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current'); 175 $('.tab ul.tabs li a').on('click', function (g) { 176 var tab = $(this).closest('.tab'), 177 index = $(this).closest('li').index(); 178 tab.find('ul.tabs > li').removeClass('current'); 179 $(this).closest('li').addClass('current'); 180 tab.find('.tab-content').find('div.tabs-item').not('div.tabs-item:eq(' + index + ')').slide
180Up(); 181 tab.find('.tab-content').find('div.tabs-item:eq(' + index + ')').slideDown(); 182 g.preventDefault(); 183 }); 184 })(jQuery); 185 186 // Price Range Slider JS 187 $(".js-range-of-price").ionRangeSlider({ 188 type: "double", 189 drag_interval: true, 190 min_interval: null, 191 max_interval: null, 192 }); 193 194 // Input Plus & Minus Number JS 195 $('.input-counter').each(function() { 196 var spinner = jQuery(this), 197 input = spinner.find('input[type="text"]'), 198 btnUp = spinner.find('.plus-btn'), 199 btnDown = spinner.find('.minus-btn'), 200 min = input.attr('min'), 201 max = input.attr('max'); 202 203 btnUp.on('click', function() { 204 var oldValue = parseFloat(input.val()); 205 if (oldValue >= max) { 206 var newVal = oldValue; 207 } else { 208 var newVal = oldValue + 1; 209 } 210 spinner.find("input").val(newVal); 211 spinner.find("input").trigger("change"); 212 }); 213 btnDown.on('click', function() { 214 var oldValue = parseFloat(input.val()); 215 if (oldValue <= min) { 216 var newVal = oldValue; 217 } else { 218 var newVal = oldValue - 1; 219 } 220 spinner.find("input").val(newVal); 221 spinner.find("input").trigger("change"); 222 }); 223 }); 224 225 // Nice Select JS 226 $('select').niceSelect(); 227 228 // Popup Video 229 $('.popup-youtube').magnificPopup({ 230 disableOn: 320, 231 type: 'iframe', 232 mainClass: 'mfp-fade', 233 removalDelay: 160, 234 preloader: false, 235 fixedContentPos: false 236 }); 237 238 // Go to Top 239 $(function(){ 240 // Scroll Event 241 $(window).on('scroll', function(){ 242 var scrolled = $(window).scrollTop(); 243 if (scrolled > 300) $('.go-top').addClass('active'); 244 if (scrolled < 300) $('.go-top').removeClass('active'); 245 }); 246 // Click Event 247 $('.go-top').on('click', function() { 248 $("html, body").animate({ scrollTop: "0" }, 500); 249 }); 250 }); 251 }); 252 253 // WoW JS 254 $(window).on ('load', function (){ 255 if ($(".wow").length) { 256 var wow = new WOW ({ 257 boxClass: 'wow', // Animated element css class (default is wow) 258 animateClass: 'animated', // Animation css class (default is animated) 259 offset: 20, // Distance to the element when triggering the animation (default is 0) 260 mobile: true, // Trigger animations on mobile devices (default is true) 261 live: true, // Act on asynchronously loaded content (default is true) 262 }); 263 wow.init(); 264 } 265 }); 266 267 $( window ).on( 'elementor/frontend/init', function() { 268 elementorFrontend.hooks.addAction( 'frontend/element_ready/widget', function( $scope ) { 269 // Blog Slides 270 $('.blog-slides').owlCarousel({ 271 loop: true, 272 nav: true, 273 dots: true, 274 autoplayHoverPause: true, 275 autoplay: true, 276 margin: 30, 277 navText: [ 278 "<i class='bx bx-chevron-left'></i>", 279 "<i class='bx bx-chevron-right'></i>" 280 ], 281 responsive: { 282 0: { 283 items: 1, 284 }, 285 576: { 286 items: 1, 287 }, 288 768: { 289 items: 2, 290 }, 291 992: { 292 items: 3, 293 } 294 } 295 }); 296 297 // Feedback Slides 298 $('.feedback-slides').owlCarousel({ 299 loop: true, 300 nav: false, 301 dots: true, 302 autoplayHoverPause: true, 303 autoplay: true, 304 animateOut: 'fadeOut', 305 autoHeight: true, 306 items: 1, 307 navText: [ 308 "<i class='bx bx-chevron-left'></i>", 309 "<i class='bx bx-chevron-right'></i>" 310 ], 311 }); 312 // Sidebar Sticky 313 $('.courses-sidebar-sticky').stickySidebar({ 314 topSpacing: 90, 315 bottomSpacing: 90 316 }); 317 318 // Testimonials Slides 319 $('.testimonials-slides').owlCarousel({ 320 loop: true, 321 nav: false, 322 dots: true, 323 autoplayHoverPause: true, 324 autoplay: true, 325 animateOut: 'fadeOut', 326 autoHeight: true, 327 items: 1, 328 navText: [ 329 "<i class='bx bx-chevron-left'></i>", 330 "<i class='bx bx-chevron-right'></i>" 331 ], 332 }); 333 334 // Feedback Slides Two 335 $('.feedback-slides-two').owlCarousel({ 336 loop: true, 337 nav: false, 338 dots: true, 339 autoplayHoverPause: true, 340 autoplay: true, 341 margin: 30, 342 navText: [ 343 "<i class='bx bx-chevron-left'></i>", 344 "<i class='bx bx-chevron-right'></i>" 345 ], 346 responsive: { 347 0: { 348 items: 1, 349 }, 350 576: { 351 items: 1, 352 }, 353 768: { 354 items: 2, 355 }, 356 1200: { 357 items: 2, 358 } 359 } 360 }); 361 362 // Article Image Slides 363 $('.article-image-slides').owlCarousel({ 364 loop: true, 365 nav: true, 366 dots: false, 367 autoplayHoverPause: true, 368 autoplay: true, 369 animateOut: 'fadeOut', 370 items: 1, 371 navText: [ 372 "<i class='flaticon-chevron'></i>", 373 "<i class='flaticon-right-arrow'></i>" 374 ], 375 }); 376 377 // Courses Slides 378 $('.courses-slides').owlCarousel({ 379 loop: true, 380 nav: true, 381 dots: true, 382 autoplayHoverPause: true, 383 autoplay: true, 384 margin: 30, 385 navText: [ 386 "<i class='bx bx-chevron-left'></i>", 387 "<i class='bx bx-chevron-right'></i>" 388 ], 389 responsive: { 390 0: { 391 items: 1, 392 }, 393 576: { 394 items: 1, 395 }, 396 768: { 397 items: 2, 398 }, 399 992: { 400 items: 3, 401 } 402 } 403 }); 404 405 // Advisor Slides Two 406 $('.advisor-slides-two').owlCarousel({ 407 loop: true, 408 nav: false, 409 dots: true, 410 autoplayHoverPause: true, 411 autoplay: true, 412 margin: 30, 413 navText: [ 414 "<i class='bx bx-chevron-left'></i>", 415 "<i class='bx bx-chevron-right'></i>" 416 ], 417 responsive: { 418 0: { 419 items: 1, 420 }, 421 576: { 422 items: 2, 423 }, 424 768: { 425 items: 2, 426 }, 427 992: { 428 items: 3, 429 } 430 } 431 }); 432 433 // Advisor Slides 434 $('.advisor-slides').owlCarousel({ 435 loop: true, 436 nav: false, 437 dots: true, 438 autoplayHoverPause: true, 439 autoplay: true, 440 margin: 30, 441 navText: [ 442 "<i class='bx bx-chevron-left'></i>", 443 "<i class='bx bx-chevron-right'></i>" 444 ], 445 responsive: { 446 0: { 447 items: 1, 448 }, 449 576: { 450 items: 2, 451 }, 452 768: { 453 items: 1, 454 }, 455 992: { 456 items: 2, 457 } 458 } 459 }); 460 461 // MixItUp Shorting 462 $(function(){ 463 $('.shorting').mixItUp(); 464 }); 465 466 // TweenMax JS 467 $('.main-banner, .banner-section, .banner-wrapper-area, .banner-wrapper').mousemove(function(e){ 468 var wx = $(window).width(); 469 var wy = $(window).height(); 470 var x = e.pageX - this.offsetLeft; 471 var y = e.pageY - this.offsetTop; 472 var newx = x - wx/2; 473 var newy = y - wy/2; 474 $('.banner-shape1, .banner-shape2, .banner-shape3, .banner-shape4, .banner-shape5, .banner-shape6, .banner-shape7, .banner-shape8, .banner-shape9, .banner-shape10, .banner-shape11, .banner-shape12, .banner-shape13').each(function(){ 475 var speed = $(this).attr('data-speed'); 476 if($(this).attr('data-revert')) speed *= -1; 477 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 478 }); 479 }); 480 $('.about-area, .about-area-two, .about-area-three').mou
480semove(function(e){ 481 var wx = $(window).width(); 482 var wy = $(window).height(); 483 var x = e.pageX - this.offsetLeft; 484 var y = e.pageY - this.offsetTop; 485 var newx = x - wx/2; 486 var newy = y - wy/2; 487 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 488 var speed = $(this).attr('data-speed'); 489 if($(this).attr('data-revert')) speed *= -1; 490 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 491 }); 492 }); 493 $('.funfacts-and-feedback-area').mousemove(function(e){ 494 var wx = $(window).width(); 495 var wy = $(window).height(); 496 var x = e.pageX - this.offsetLeft; 497 var y = e.pageY - this.offsetTop; 498 var newx = x - wx/2; 499 var newy = y - wy/2; 500 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 501 var speed = $(this).attr('data-speed'); 502 if($(this).attr('data-revert')) speed *= -1; 503 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 504 }); 505 }); 506 $('.get-instant-courses-area').mousemove(function(e){ 507 var wx = $(window).width(); 508 var wy = $(window).height(); 509 var x = e.pageX - this.offsetLeft; 510 var y = e.pageY - this.offsetTop; 511 var newx = x - wx/2; 512 var newy = y - wy/2; 513 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 514 var speed = $(this).attr('data-speed'); 515 if($(this).attr('data-revert')) speed *= -1; 516 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 517 }); 518 }); 519 $('.view-all-courses-area, .view-all-courses-area-two').mousemove(function(e){ 520 var wx = $(window).width(); 521 var wy = $(window).height(); 522 var x = e.pageX - this.offsetLeft; 523 var y = e.pageY - this.offsetTop; 524 var newx = x - wx/2; 525 var newy = y - wy/2; 526 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 527 var speed = $(this).attr('data-speed'); 528 if($(this).attr('data-revert')) speed *= -1; 529 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 530 }); 531 }); 532 $('.premium-access-area').mousemove(function(e){ 533 var wx = $(window).width(); 534 var wy = $(window).height(); 535 var x = e.pageX - this.offsetLeft; 536 var y = e.pageY - this.offsetTop; 537 var newx = x - wx/2; 538 var newy = y - wy/2; 539 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 540 var speed = $(this).attr('data-speed'); 541 if($(this).attr('data-revert')) speed *= -1; 542 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 543 }); 544 }); 545 $('.slogan-area').mousemove(function(e){ 546 var wx = $(window).width(); 547 var wy = $(window).height(); 548 var x = e.pageX - this.offsetLeft; 549 var y = e.pageY - this.offsetTop; 550 var newx = x - wx/2; 551 var newy = y - wy/2; 552 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 553 var speed = $(this).attr('data-speed'); 554 if($(this).attr('data-revert')) speed *= -1; 555 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 556 }); 557 }); 558 $('.subscribe-area').mousemove(function(e){ 559 var wx = $(window).width(); 560 var wy = $(window).height(); 561 var x = e.pageX - this.offsetLeft; 562 var y = e.pageY - this.offsetTop; 563 var newx = x - wx/2; 564 var newy = y - wy/2; 565 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 566 var speed = $(this).attr('data-speed'); 567 if($(this).attr('data-revert')) speed *= -1; 568 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 569 }); 570 }); 571 $('.feedback-area').mousemove(function(e){ 572 var wx = $(window).width(); 573 var wy = $(window).height(); 574 var x = e.pageX - this.offsetLeft; 575 var y = e.pageY - this.offsetTop; 576 var newx = x - wx/2; 577 var newy = y - wy/2; 578 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 579 var speed = $(this).attr('data-speed'); 580 if($(this).attr('data-revert')) speed *= -1; 581 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 582 }); 583 }); 584 $('.success-story-area').mousemove(function(e){ 585 var wx = $(window).width(); 586 var wy = $(window).height(); 587 var x = e.pageX - this.offsetLeft; 588 var y = e.pageY - this.offsetTop; 589 var newx = x - wx/2; 590 var newy = y - wy/2; 591 $('.shape1, .shape2, .shape3, .shape4, .shape6, .shape7, .shape8, .shape9, .shape10, .shape11, .shape12, .shape13, .shape14, .shape15, .shape16, .shape17, .shape18, .shape19, .shape20, .shape21, .shape22, .shape23').each(function(){ 592 var speed = $(this).attr('data-speed'); 593 if($(this).attr('data-revert')) speed *= -1; 594 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 595 }); 596 }); 597 598 $('.health-coaching-banner-area').mousemove(function(e){ 599 var wx = $(window).width(); 600 var wy = $(window).height(); 601 var x = e.pageX - this.offsetLeft; 602 var y = e.pageY - this.offsetTop; 603 var newx = x - wx/2; 604 var newy = y - wy/2; 605 $('.health-coaching-shape2, .health-coaching-shape4, .health-coaching-shape5, .health-coaching-shape6, .health-coaching-shape7').each(function(){ 606 var speed = $(this).attr('data-speed'); 607 if($(this).attr('data-revert')) speed *= -1; 608 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 609 }); 610 }); 611 $('.experience-area').mousemove(function(e){ 612 var wx = $(window).width(); 613 var wy = $(window).height(); 614 var x = e.pageX - this.offsetLeft; 615 var y = e.pageY - this.offsetTop; 616 var newx = x - wx/2; 617 var newy = y - wy/2; 618 $('.experience-shape1, .experience-shape2').each(function(){ 619 var speed = $(this).attr('data-speed'); 620 if($(this).attr('data-revert')) speed *= -1; 621 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 622 }); 623 }); 624 625 // TweenMax JS 626 $('.kindergarten-main-banner').mousemove(function(e){ 627 var wx = $(window).width(); 628 var wy = $(window).height(); 629 var x = e.pageX - this.offsetLeft; 630 var y = e.pageY - this.offsetTop; 631 var newx = x - wx/2; 632 var newy = y - wy/2; 633 $('.kindergarten-banner-image .image img').each(function(){ 634 var speed = $(this).attr('data-speed'); 635 if($(this).attr('data-revert')) speed *= -1; 636 TweenMax.to($(this), 1, {x: (1 - newx*speed), y: (1 - newy*speed)}); 637 }); 638 }); 639 640 // Feedback Slides Three 641 $('.feedback-slides-three').owlCarousel({ 642 loop: true, 643 nav: true, 644 dots: false, 645 autoplayHoverPause: true, 646 autoplay: true, 647 margin: 0, 648 navText: [ 649 "<i class='flaticon-chevron'></i>", 650 "<i class='flaticon-right-arrow'></i>" 651 ], 652 responsive: { 653 0: { 654 items: 1, 655 }, 656 576: { 657 items: 2, 658 }, 659 768: { 660 items: 2, 661 }, 662 992: { 663 items: 3, 664 }, 665 1200: { 666 items: 4, 667 }, 668 1550: { 669 items: 5, 670 } 671 } 672 }); 673 674 // Services Slides 675 $('.services-slides').owlCarousel({ 676 loop: true, 677 nav: true, 678 dots: false, 679 autoplayHoverPause: true, 680 autoplay: true, 681 margin: 30, 682 navText: [ 683 "<i class='flaticon-chevron'></i>", 684 "<i class='flaticon-right-arrow'></i>" 685 ], 686 responsive: { 687 0: { 688 items: 1, 689 }, 690 576: { 691 items: 2, 692 }, 693 768: { 694 items: 2, 695 }, 696 992: { 697 items: 3, 698 } 699 } 700 }); 701 702 // Courses Slides Two 703 $('.courses-slides-two').owlCarousel({ 704 loop: false, 705 nav: true, 706 dots: false, 707 autoplayHoverPause: true, 708 autoplay: true, 709 margin: 30, 710 navText: [ 711 "<i class='flaticon-chevron'></i>", 712 "<i class='flaticon-right-arrow'></i>" 713 ], 714 responsive: { 715 0: { 716 items: 1, 717 }, 718 576: { 719 items: 1, 720 }, 721 768: { 722 items: 2, 723 }, 724 992: { 725 items: 3, 726 } 727 } 728 }); 729 730 $('.gym-banner-slides').owlCarousel({ 731 items: 1, 732 nav: true, 733 loop: true, 734 dots: false, 735 autoplay: false, 736 animateIn: 'fadeIn', 737 animateOut: 'fadeOut', 738 autoplayHoverPause: true, 739 onInitialized: sliderCounter, // When the plugin has initialized. 740 onTranslated: sliderCounter, // When the translation of the stage has finished. 741 navText: [ 742 "<i class='flaticon-chevron'></i>", 743 "<i class='flaticon-right-arrow'></i>" 744 ], 745 responsive: { 746 0: { 747 autoHeight: true 748 }, 749 576: { 750 autoHeight: false 751 }, 752 768: { 753 autoHeight: false 754 }, 755 992: { 756 autoHeight: false 757 } 758 } 759 }); 760 761 function sliderCounter(event) { 762 var element = event.target; // DOM element, in this example .owl-carousel 763 var items = event.item.count; // Number of items 764 var item = event.item.index * 1; // Position of the current item 765 766 // it loop is true then reset counter from 1 767 if (item > items) { 768 item = item - items 769 } 770 $(element).parent().find('.sliderCounter').html("0" + item + "/0" + items) 771 } 772 773 // Gym Feedback Slides 774 $('.gym-feedback-slides').owlCarousel({ 775 items: 1, 776 nav: true, 777 loop: true, 778 dots: false, 779 autoplay: false, 780 autoHeight: true, 781 animateOut: 'fadeOut', 782 autoplayHoverPause: true, 783 navText: [ 784 "<i class='flaticon-chevron'></i>", 785 "<i class='flaticon-right-arrow'></i>" 786 ], 787 }); 788 789 // Trainer Slides 790 $('.trainer-slides').owlCarousel({ 791 nav: false, 792 margin: 30, 793 loop: true, 794 dots: false, 795 autoplay: false, 796 autoplayHoverPause: true, 797 navText: [ 798 "<i class='flaticon-chevron'></i>", 799 "<i class='flaticon-right-arrow'></i>" 800 ], 801 responsive: { 802 0: { 803 items: 1 804 }, 805 576: { 806 items: 2 807 }, 808 768: { 809 items: 2 810 }, 811 992: { 812 items: 3 813 }, 814 1200: { 815 items: 4 816 }, 817 1550: { 818 items: 5 819 } 820 } 821 }); 822 823 // Testimonials Slides 824 $('.testimonials-slides-two').owlCarousel({ 825 items: 1, 826 nav: true, 827 loop: true, 828 dots: false, 829 autoplay: true, 830 autoplayHoverPause: true, 831 navText: [ 832 "<i class='bx bx-chevron-left'></i>", 833 "<i class='bx bx-chevron-right'></i>" 834 ] 835 }); 836 837 // Partner Slides 838 $('.partner-slides').owlCarousel({ 839 loop: true, 840 nav: false, 841 dots: false, 842 autoplayHoverPause: true, 843 autoplay: true, 844 margin: 30, 845 navText: [ 846 "<i class='bx bx-chevron-left'></i>", 847 "<i class='bx bx-chevron-right'></i>" 848 ], 849 responsive: { 850 0: { 851 items: 2 852 }, 853 576: { 854 items: 3 855 }, 856 768: { 857
857 items: 4 858 }, 859 1200: { 860 items: 5 861 } 862 } 863 }); 864 865 // Coaching Feedback Slides 866 $('.coaching-feedback-slides').owlCarousel({ 867 items: 1, 868 loop: true, 869 nav: false, 870 dots: true, 871 margin: 30, 872 autoplay: true, 873 autoplayHoverPause: true, 874 navText: [ 875 "<i class='bx bx-chevron-left'></i>", 876 "<i class='bx bx-chevron-right'></i>" 877 ] 878 }); 879 880 // Motivation Feedback Slides 881 $('.motivation-feedback-slides').owlCarousel({ 882 items: 1, 883 loop: true, 884 nav: false, 885 dots: true, 886 margin: 30, 887 autoplay: true, 888 autoplayHoverPause: true, 889 navText: [ 890 "<i class='bx bx-chevron-left'></i>", 891 "<i class='bx bx-chevron-right'></i>" 892 ] 893 }); 894 895 // Motivation Events Slides 896 $('.motivation-events-slides').owlCarousel({ 897 items: 1, 898 loop: true, 899 nav: false, 900 dots: true, 901 margin: 30, 902 autoplay: true, 903 autoplayHoverPause: true, 904 navText: [ 905 "<i class='bx bx-chevron-left'></i>", 906 "<i class='bx bx-chevron-right'></i>" 907 ] 908 }); 909 910 // Kitchen Feedback Slides 911 $('.kitchen-feedback-slides').owlCarousel({ 912 items: 1, 913 loop: true, 914 nav: true, 915 dots: false, 916 margin: 30, 917 autoplay: true, 918 autoplayHoverPause: true, 919 navText: [ 920 "<i class='bx bx-chevron-left'></i>", 921 "<i class='bx bx-chevron-right'></i>" 922 ] 923 }); 924 925 // OA Feedback Slides 926 $('.oa-feedback-slides').owlCarousel({ 927 loop: true, 928 nav: true, 929 dots: false, 930 autoplayHoverPause: true, 931 autoplay: true, 932 animateOut: 'fadeOut', 933 autoHeight: true, 934 items: 1, 935 navText: [ 936 "<i class='bx bx-chevron-left'></i>", 937 "<i class='bx bx-chevron-right'></i>" 938 ] 939 }); 940 941 // Instructor Feedback Slides 942 $('.instructor-feedback-slides').owlCarousel({ 943 loop: true, 944 nav: true, 945 dots: false, 946 autoplayHoverPause: true, 947 autoplay: true, 948 margin: 30, 949 navText: [ 950 "<i class='bx bx-chevron-left'></i>", 951 "<i class='bx bx-chevron-right'></i>" 952 ], 953 responsive: { 954 0: { 955 items: 1 956 }, 957 576: { 958 items: 1 959 }, 960 768: { 961 items: 2 962 }, 963 1200: { 964 items: 3 965 } 966 } 967 }); 968 969 /* End "Online Art Demo" & "Single Instructor Demo" "JS" */ 970 971 /* College Website */ 972 973 // cw-partner 974 $('.cw-partner').owlCarousel({ 975 loop: true, 976 margin: 30, 977 nav: false, 978 dots: false, 979 autoplayHoverPause: true, 980 autoplay: true, 981 982 responsive:{ 983 0:{ 984 items: 1 985 }, 986 600:{ 987 items: 3 988 }, 989 1000:{ 990 items: 4, 991 margin: 50, 992 } 993 } 994 }) 995 996 // cw-courses-slider 997 $('.cw-courses-slider').owlCarousel({ 998 loop: false, 999 margin: 24, 1000 nav: true, 1001 dots: true, 1002 autoplayHoverPause: true, 1003 autoplay: true, 1004 navText: [ 1005 "<i class='bx bx-chevron-left'></i>", 1006 "<i class='bx bx-chevron-right'></i>" 1007 ], 1008 1009 responsive:{ 1010 0:{ 1011 items: 1 1012 }, 1013 768:{ 1014 items: 2 1015 }, 1016 992:{ 1017 items: 3, 1018 }, 1019 1200:{ 1020 items: 4, 1021 } 1022 } 1023 }) 1024 1025 // cw-courses-slider 1026 $('.cw-feedback-slider').owlCarousel({ 1027 loop: false, 1028 margin: 24, 1029 nav: true, 1030 dots: false, 1031 autoplayHoverPause: true, 1032 autoplay: true, 1033 navText: [ 1034 "<i class='bx bx-chevron-left'></i>", 1035 "<i class='bx bx-chevron-right'></i>" 1036 ], 1037 1038 responsive:{ 1039 0:{ 1040 items: 1 1041 }, 1042 768:{ 1043 items: 1 1044 }, 1045 992:{ 1046 items: 2, 1047 }, 1048 1200:{ 1049 items: 1, 1050 }, 1051 1400:{ 1052 items: 2, 1053 } 1054 } 1055 }) 1056 1057 // cw-college-staff-slider 1058 $('.cw-college-staff-slider').owlCarousel({ 1059 loop: false, 1060 margin: 24, 1061 nav: true, 1062 dots: true, 1063 autoplayHoverPause: true, 1064 autoplay: true, 1065 navText: [ 1066 "<i class='bx bx-chevron-left'></i>", 1067 "<i class='bx bx-chevron-right'></i>" 1068 ], 1069 responsive:{ 1070 0:{ 1071 items: 1 1072 }, 1073 768:{ 1074 items: 2 1075 }, 1076 992:{ 1077 items: 3, 1078 }, 1079 1200:{ 1080 items: 4, 1081 } 1082 } 1083 }) 1084 /* End College Website */ 1085 1086 /* Online Photography Home */ 1087 // op-partner 1088 $('.op-partner').owlCarousel({ 1089 loop: true, 1090 margin: 30, 1091 nav: false, 1092 dots: false, 1093 autoplayHoverPause: true, 1094 autoplay: true, 1095 1096 responsive:{ 1097 0:{ 1098 items: 1 1099 }, 1100 600:{ 1101 items: 3 1102 }, 1103 1000:{ 1104 items: 5, 1105 margin: 50, 1106 } 1107 } 1108 }) 1109 1110 // op-feedback-slides 1111 $('.op-feedback-slides').owlCarousel({ 1112 loop: true, 1113 nav: true, 1114 dots: true, 1115 autoplayHoverPause: true, 1116 autoplay: true, 1117 items: 1, 1118 navText: [ 1119 "<i class='bx bx-chevron-left'></i>", 1120 "<i class='bx bx-chevron-right'></i>" 1121 ] 1122 }); 1123 }); 1124 }); 1125 1126 $(window).load(function(){ 1127 $('.shorting-menu .filter.all').click(); 1128 }); 1129 1130 // Preloader 1131 $(window).on('load', function () { 1132 $('.preloader').fadeOut(); 1133 }); 1134 1135 // LP course continue button url 1136 $(window).on('load', function () { 1137 $(function() { 1138 setTimeout(function() { 1139 var lp_continue_btn_url = $('#learn-press-course .course-summary-sidebar .course-sidebar-preview .lp-course-buttons form').attr('action'); 1140 $('.courses-details-info .btn-box .lp-form').attr('action', lp_continue_btn_url); 1141 }, 1000); 1142 }); 1143 }); 1144}(jQuery)); 1145
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.