1(function($) {� 2 "use strict";� 3 $(document).ready(function(){� 4 $( '.bwp-portfolio' ).each(function(){� 5 var $this = $(this);� 6 var $id = this.id;� 7 var $pf_id = ('#' + this.id );� 8 var $bwp_style = $this.data('style');� 9 var $container_id = $('#container_'+ $id);� 10 var $tab_id = $('#tab_'+ $id);� 11 var $container = $container_id; � 12 if( $bwp_style == 'fitRows' ){� 13 $container.imagesLoaded().progress( function() {� 14 $container.isotope({ //Isotope options, 'item' matches the class in the PHP� 15 layoutMode : 'fitRows'� 16 });� 17 });� 18 }else{� 19 var window_width = $( window ).width();� 20 if (window_width >= 768) {� 21 $container.imagesLoaded().progress( function() {� 22 $container.isotope({ //Isotope options, 'item' matches the class in the PHP� 23 layoutMode : 'masonry',� 24 percentPosition: true,� 25 masonry: {� 26 columnWidth: '.portfolio-item'� 27 }� 28 });� 29 });� 30 }� 31 }� 32 //Add the class selected to the item that is clicked, and remove from the others� 33 var $optionSets = $tab_id,� 34 $optionLinks = $optionSets.find('li');� 35 $optionLinks.on( "click", function(){� 36 var $this = $(this);� 37 // don't proceed if already selected� 38 if ( $this.hasClass('selected') ) {� 39 return false;� 40 }� 41 var $optionSet = $this.parents($tab_id);� 42 $optionSets.find('.selected').removeClass('selected');� 43 $this.addClass('selected');� 44 //When an item is clicked, sort the items.� 45 var selector = $(this).attr('data-portfolio-filter');� 46 $container.isotope({ filter: selector });� 47 return false;� 48 });� 49 });� 50 $( '.item-popup' ).fancybox({� 51 helpers : {� 52 title : {� 53 type : 'over'� 54 }� 55 }� 56 });� 57 });� 58})(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.