1; (function ($) { 2 "use strict"; 3 4 $(document).ready(function () { 5 6 7 if ($(".swp-isotope").length) { 8 9 var filterArea = $(".swp-isotope-area"); 10 11 filterArea.each(function () { 12 13 var filterAreaId = $(this).data("filter-section"); 14 15 var Self = $(this); 16 17 Self.find('.swp-isotope').addClass(filterAreaId); 18 19 var $galleryFilterArea = $('.' + filterAreaId); 20 21 //button 22 Self.find('.isotope-filters').addClass('swp' + filterAreaId); 23 24 var $galleryFilterMenu = $('.swp' + filterAreaId); 25 26 /*Filter*/ 27 $galleryFilterMenu.on('click', 'button, a', function () { 28 var $this = $(this), 29 $filterValue = $this.attr('data-filter'); 30 $galleryFilterMenu.find('button, a').removeClass('active'); 31 $this.addClass('active'); 32 $galleryFilterArea.isotope({ filter: $filterValue }); 33 }); 34 /*Grid*/ 35 $galleryFilterArea.each(function () { 36 var $this = $(this), 37 $galleryFilterItem = '.swp-item'; 38 $this.imagesLoaded(function () { 39 $this.isotope({ 40 itemSelector: $galleryFilterItem, 41 percentPosition: true, 42 masonry: { 43 columnWidth: '.swp-sizer', 44 } 45 }); 46 }); 47 }); 48 49 }); 50 51 } 52 53 }); 54})(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.