1/* Olio Theme Scripts */ 2 3(function($){ 4 "use strict"; 5 6 $(window).on('load', function() { 7 $('body').addClass('loaded'); 8 }); 9 10/*========================================================================= 11 Mobile Menu 12=========================================================================*/ 13 $('.menu-wrap ul.nav').slicknav({ 14 prependTo: '.header-section .navbar', 15 label: '', 16 allowParentLinks: true 17 }); 18/*========================================================================= 19 Feature Carousel 20=========================================================================*/ 21 $('#feature-carousel').owlCarousel({ 22 loop: true, 23 margin: 15, 24 autoplay: true, 25 smartSpeed: 500, 26 items: 1, 27 nav: true, 28 navText: ['<i class="arrow_carrot-left"></i>', '<i class="arrow_carrot-right"></i>'], 29 dots: false, 30 responsive : { 31 0 : { 32 items: 1, 33 }, 34 480 : { 35 items: 2, 36 }, 37 768 : { 38 items: 2, 39 }, 40 992 : { 41 items: 4 42 } 43 } 44 }); 45/*========================================================================= 46 Testimonial Carousel 47=========================================================================*/ 48 $('#testimonial-carousel').owlCarousel({ 49 loop: true, 50 margin: 15, 51 autoplay: true, 52 smartSpeed: 500, 53 items: 1, 54 nav: true, 55 navText: ['<i class="arrow_carrot-left"></i>', '<i class="arrow_carrot-right"></i>'], 56 dots: false, 57 responsive : { 58 0 : { 59 items: 1, 60 }, 61 480 : { 62 items: 2, 63 }, 64 768 : { 65 items: 2 66 }, 67 992 : { 68 items: 3 69 } 70 } 71 }); 72 73/*========================================================================= 74 Screenshot Carousel
75=========================================================================*/ 76 function getSlide() { 77 var wW = $(window).width(); 78 if (wW < 991) { 79 return 1; 80 } else if (wW < 1170) { 81 return 3; 82 } else { 83 return 5; 84 } 85 } 86 function getSlideSpace(){ 87 var wW = $(window).width(); 88 if (wW < 991) { 89 return 0; 90 } 91 return 20; 92 } 93 var swiper = new Swiper('.swiper-container', { 94 slidesPerView: getSlide(), 95 loop: true, 96 autoplay: true, 97 centeredSlides: true, 98 navigation: { 99 nextEl: '.swiper-next', 100 prevEl: '.swiper-prev', 101 }, 102 spaceBetween: getSlideSpace() 103 }); 104 105/*========================================================================= 106 Active venobox 107=========================================================================*/ 108 $('.img-popup').venobox({ 109 numeratio: true, 110 infinigall: true 111 }); 112 113/*========================================================================= 114 Initialize smoothscroll plugin 115=========================================================================*/ 116 smoothScroll.init({ 117 offset: 60 118 }); 119 120/*========================================================================= 121 Scroll To Top 122=========================================================================*/ 123 $(window).on( 'scroll', function () { 124 if ($(this).scrollTop() > 100) { 125 $('#scroll-to-top').fadeIn(); 126 } else { 127 $('#scroll-to-top').fadeOut(); 128 } 129 }); 130 131/*========================================================================= 132 WOW Active 133=========================================================================*/ 134 new WOW().init(); 135 136/*========================================================================= 137 MAILCHIMP 138=========================================================================*/ 139 if ($('.subscribe-form').length>0) { 140 /* MAILCHIMP */ 141 $('.subscribe-form').ajaxChimp({ 142 language: 'es', 143 callback: mailchimpCallback, 144 url: "//IconicThemes.us14.list-manage.com/subscribe/post?u=48e55a88ece7641124b31a029&id=361ec5b369" 145 }); 146 } 147 148 function mailchimpCallback(resp) { 149 if (resp.result === 'success') { 150 $('#subscribe-result').addClass('subs-result'); 151 $('.subscription-success').text(resp.msg).fadeIn(); 152 $('.subscription-error').fadeOut(); 153 154 } else if(resp.result === 'error') { 155 $('#subscribe-result').addClass('subs-result'); 156 $('.subscription-error').text(resp.msg).fadeIn(); 157 } 158 } 159 $.ajaxChimp.translations.es = { 160 'submit': 'Submitting...', 161 0: 'We have sent you a confirmation email', 162 1: 'Please enter your email', 163 2: 'An email address must contain a single @', 164 3: 'The domain portion of the email address is invalid (the portion after the @: )', 165 4: 'The username portion of the email address is invalid (the portion before the @: )', 166 5: 'This email address looks fake or invalid. Please enter a real email address' 167 }; 168 169})(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.