1(function($) { 2 "use strict"; 3 4 // Nivo Lightbox 5 6 $('a.light').nivoLightbox(); 7 $('.gallery-item a').nivoLightbox(); 8 $('.woocommerce-product-gallery__wrapper a').nivoLightbox(); 9 10 // Mobile Menu 11 12 $('#primary').slicknav({ 13 label: "Menu", 14 prependTo: "#classic-mobile" 15 }); 16 17 // Fixed Menu 18 19 if ( $( ".has-sticky-menu" ).length ) { 20 21 var sticky = new Waypoint.Sticky({ 22 element: $('.has-sticky-menu #header')[0], 23 }) 24 25 } 26 27 if ( $( ".has-sticky-menu #classic-mobile" ).length ) { 28 29 var sticky_mobile = new Waypoint.Sticky({ 30 element: $('.has-sticky-menu #classic-mobile')[0], 31 }) 32 33 } 34 35 // Scroll To Top 36 37 jQuery(".scroll-button").hide(); 38 39 jQuery(function () { 40 jQuery(window).scroll(function () { 41 if (jQuery(this).scrollTop() > 50) { 42 jQuery('.scroll-button').fadeIn(); 43 } else { 44 jQuery('.scroll-button').fadeOut(); 45 } 46 }); 47 48 jQuery('.scroll-button a').click(function () { 49 jQuery('body,html').animate({ 50 scrollTop: 0 51 }, 400); 52 return false; 53 }); 54 }); 55 56 /* Slider */ 57 58 $('.slider').owlCarousel({ 59 nav: true, 60 navText: ['',''], 61 dots: false, 62 mobileBoost: true, 63 margin: 0, // margin 10px till 960 breakpoint 64 merge: true, 65 center: false, 66 autoplay:true, 67 autoplayTimeout: 3000, 68 autoplaySpeed: 6000, 69 smartSpeed: 1500, 70 autoplayHoverPause: true, 71 items: 1 72 }); 73 74 $('.carousel').owlCarousel({ 75 items:3, 76 nav: true, 77 dots: false, 78 loop:true, 79 mobileBoost: true, 80 navText: ['',''], 81 autoWidth: true, 82 margin: 0, 83 merge: false, 84 center: false, 85 autoplay:true, 86 autoHeight: false, 87 autoplayTimeout: 3000, 88 autoplaySpeed: 6000, 89 smartSpeed: 1500, 90 autoplayHoverPause: true 91 }); 92 93 $('.simple-carousel').owlCarousel({ 94 items: 1, 95 nav: true, 96 dots: false, 97 mobileBoost: true, 98 navText: ['',''], 99 margin: 0, 100 merge: false, 101 center: true, 102 autoplay:true, 103 autoplayTimeout: 3000, 104 autoplaySpeed: 6000, 105 smartSpeed: 1500, 106 autoplayHoverPause: true, 107 loop:true, 108 responsive:{ 109 1025:{ 110 items:4, 111 center: true 112 } 113 } 114 }); 115 116 $('.newsticker').owlCarousel({ 117 items: 1, 118 nav: true, 119 navText: ['',''], 120 dots: false, 121 mobileBoost: true, 122 animateIn: 'fadeInDown', 123 animateOut: 'fadeOut', 124 autoplay:true, 125 autoWidth:false, 126 margin: 0, 127 merge: false, 128 center: false 129 }); 130 131 // Grid 132 133 var $container6 = $('.container-6cols'); 134 $container6.imagesLoaded( function() { 135 $container6.isotope({ 136 percentPosition: true, 137 itemSelector : '.grid-item', 138 masonry: { 139 columnWidth: '.grid-sizer' 140 } 141 }); 142 }); 143 var $container4 = $('.container-4cols'); 144 $container4.imagesLoaded( function() { 145 $container4.isotope({ 146 percentPosition: true, 147 itemSelector : '.grid-item', 148 masonry: { 149 columnWidth: '.grid-sizer' 150 } 151 }); 152 }); 153 var $container3 = $('.container-3cols'); 154 $container3.imagesLoaded( function() { 155 $container3.isotope({ 156 percentPosition: true, 157 itemSelector : '.grid-item', 158 masonry: { 159 columnWidth: '.grid-sizer' 160 } 161 }); 162 }); 163 var $container2 = $('.container-2cols'); 164 $container2.imagesLoaded( function() { 165 $container2.isotope({ 166 percentPosition: true, 167 itemSelector : '.grid-item', 168 masonry: { 169 columnWidth: '.grid-sizer' 170 } 171 }); 172 }); 173 174 var $container6fit = $('.container-6cols.fit'); 175 $container6fit.imagesLoaded( function() { 176 $container6fit.isotope({ 177 percentPosition: true, 178 itemSelector : '.grid-item', 179 layoutMode: 'fitRows', 180 masonry: { 181 columnWidth: '.grid-sizer' 182 } 183 }); 184 }); 185 var $container4fit = $('.container-4cols.fit'); 186 $container4fit.imagesLoaded( function() { 187 $container4fit.isotope({ 188 percentPosition: true, 189 itemSelector : '.grid-item', 190 layoutMode: 'fitRows', 191 masonry: { 192 columnWidth: '.grid-sizer' 193 } 194 }); 195 }); 196 var $container3fit = $('.container-3cols.fit'); 197 $container3fit.imagesLoaded( function() { 198 $container3fit.isotope({ 199 percentPosition: true, 200 itemSelector : '.grid-item', 201 layoutMode: 'fitRows', 202 masonry: { 203 columnWidth: '.grid-sizer' 204 } 205 }); 206 }); 207 var $container2fit = $('.container-2cols.fit'); 208 $container2fit.imagesLoaded( function() { 209 $container2fit.isotope({ 210 percentPosition: true, 211 itemSelector : '.grid-item', 212 layoutMode: 'fitRows', 213 masonry: { 214 columnWidth: '.grid-sizer' 215 } 216 }); 217 }); 218 219 // Ajax Load More 220 221 $('.post-previous a').live('click', function(e) { 222 e.preventDefault(); 223 $(this).addClass('loading').text('Loading...'); 224 $.ajax({ 225 type: "GET", 226 url: $(this).attr('href') + '#grid-content', 227 dataType: "html", 228 success: function(out, result, nextlink) { 229 230 result = $(out).find('#grid-content .grid-item'); 231 nextlink = $(out).find('.post-previous a').attr('href'); 232 233 $('#grid-content').append(result).imagesLoaded(function(){ 234 $('#grid-content').isotope( 'appended', result, true ); 235 $('#grid-content').isotope( 'reloadItems' ); 236 $('#grid-content').isotope( 'layout' ); 237 }); 238 239 $('.post-previous a').removeClass('loading').text('Load More'); 240 if (nextlink != undefined) { 241 $('.post-previous a').attr('href', nextlink); 242 } else { 243 $('.post-previous a').remove(); 244 $('.post-previous').addClass('load-more last').text('The end...'); 245 } 246 } 247 }); 248 }); 249 250 251 252 /* Foundation */ 253 254 $(document).foundation(); 255 256 // Off-canvas Swipe 257 258 if ( $( ".off-canvas-wrap.sticky-off-canvas" ).length ) { 259 260 $(document).on("swiperight swipeleft", function (e) { 261 if (e.type === "swiperight") { 262 $('.off-canvas-wrap.sticky-off-canvas').removeClass('move-left'); 263 } else if (e.type === "swipeleft") { 264 $('.off-canvas-wrap.sticky-off-canvas').addClass('move-left'); 265 } 266 }); 267 } 268 269 270})(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.