1(function ($) { 2 "use strict"; 3 4 // Preloader 5 $(window).on('load', function () { 6 if ($('#preloader').length) { 7 $('#preloader').delay(100).fadeOut('slow', function () { 8 $(this).remove(); 9 }); 10 } 11 }); 12 13 // Back to top button 14 $(window).scroll(function() { 15 if ($(this).scrollTop() > 100) { 16 $('.back-to-top').fadeIn('slow'); 17 } else { 18 $('.back-to-top').fadeOut('slow'); 19 } 20 }); 21 $('.back-to-top').click(function(){ 22 $('html, body').animate({scrollTop : 0},1500, 'easeInOutExpo'); 23 return false; 24 }); 25 26 var nav = $('nav'); 27 var navHeight = nav.outerHeight(); 28 29 /*--/ ScrollReveal /Easy scroll animations for web and mobile browsers /--*/ 30 window.sr = ScrollReveal(); 31 sr.reveal('.foo', { duration: 1000, delay: 15 }); 32 33 /*--/ Carousel owl /--*/ 34 $('#carousel').owlCarousel({ 35 loop: true, 36 margin: -1, 37 items: 1, 38 nav: true, 39 navText: ['<i class="ion-ios-arrow-back" aria-hidden="true"></i>', '<i class="ion-ios-arrow-forward" aria-hidden="true"></i>'], 40 autoplay: true, 41 autoplayTimeout: 3000, 42 autoplayHoverPause: true 43 }); 44 45 /*--/ Animate Carousel /--*/ 46 $('.intro-carousel').on('translate.owl.carousel', function () { 47 $('.intro-content .intro-title').removeClass('zoomIn animated').hide(); 48 $('.intro-content .intro-price').removeClass('fadeInUp animated').hide(); 49 $('.intro-content .intro-title-top, .intro-content .spacial').removeClass('fadeIn animated').hide(); 50 }); 51 52 $('.intro-carousel').on('translated.owl.carousel', function () { 53 $('.intro-content .intro-title').addClass('zoomIn animated').show(); 54 $('.intro-content .intro-price').addClass('fadeInUp animated').show(); 55 $('.intro-content .intro-title-top, .intro-content .spacial').addClass('fadeIn animated').show(); 56 }); 57 58 /*--/ Navbar Collapse /--*/ 59 $('.navbar-toggle-box-collapse').on('click', function () { 60 $('body').removeClass('box-collapse-closed').addClass('box-collapse-open'); 61 }); 62 $('.close-box-collapse, .click-closed').on('click', function () { 63 $('body').removeClass('box-collapse-open').addClass('box-collapse-closed'); 64 $('.menu-list ul').slideUp(700); 65 }); 66 67 /*--/ Navbar Menu Reduce /--*/ 68 $(window).trigger('scroll'); 69 $(window).bind('scroll', function () { 70 var pixels = 50; 71 var top = 1200; 72 if ($(window).scrollTop() > pixels) { 73 $('.navbar-default').addClass('navbar-reduce'); 74 $('.navbar-default').removeClass('navbar-trans'); 75 } else { 76 $('.navbar-default').addClass('navbar-trans'); 77 $('.navbar-default').removeClass('navbar-reduce'); 78 } 79 if ($(window).scrollTop() > top) { 80 $('.scrolltop-mf').fadeIn(1000, "easeInOutExpo"); 81 } else { 82 $('.scrolltop-mf').fadeOut(1000, "easeInOutExpo"); 83 } 84 }); 85 86 /*--/ Property owl /--*/ 87 $('#property-carousel').owlCarousel({ 88 loop: true, 89 margin: 30, 90 responsive: { 91 0: { 92 items: 1, 93 }, 94 769: { 95 items: 2, 96 }, 97 992: { 98 items: 3, 99 } 100 } 101 }); 102 103 /*--/ Property owl owl /--*/ 104 $('#property-single-carousel').owlCarousel({ 105 loop: true, 106 margin: 0, 107 nav: true, 108 navText: ['<i class="ion-ios-arrow-back" aria-hidden="true"></i>', '<i class="ion-ios-arrow-forward" aria-hidden="true"></i>'], 109 responsive: { 110 0: { 111 items: 1, 112 } 113 } 114 }); 115 116 /*--/ News owl /--*/ 117 $('#new-carousel').owlCarousel({ 118 loop: true, 119 margin: 30, 120 responsive: { 121 0: { 122 items: 1, 123 }, 124 769: { 125 items: 2, 126 }, 127 992: { 128 items: 3, 129 } 130 } 131 }); 132 133 /*--/ Testimonials owl /--*/ 134 $('#testimonial-carousel').owlCarousel({ 135 margin: 0, 136 autoplay: true, 137 nav: true, 138 animateOut: 'fadeOut', 139 animateIn: 'fadeInUp', 140 navText: ['<i class="ion-ios-arrow-back" aria-hidden="true"></i>', '<i class="ion-ios-arrow-forward" aria-hidden="true"></i>'], 141 autoplayTimeout: 4000, 142 autoplayHoverPause: true, 143 responsive: { 144 0: { 145 items: 1, 146 } 147 } 148 }); 149 150})(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.