PageSourceSearch

https://devotaylomba.com/wp-content/themes/fazzy/js/portfolio.js

js devotaylomba.com collected 2026-10-02 11:38:56 UTC 1,690 bytes, 59 lines download raw bytes

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				$container.imagesLoaded().progress( function() {
20					$container.isotope({ //Isotope options, 'item' matches the class in the PHP
21						layoutMode : 'masonry',
22						percentPosition: true,
23						masonry: {
24						  columnWidth: '.portfolio-item'
25						}
26					});
27				});
28			}
29		 
30			//Add the class selected to the item that is clicked, and remove from the others
31			var $optionSets = $tab_id,
32			$optionLinks = $optionSets.find('li');
33			$optionLinks.on( "click", function(){
34				var $this = $(this);
35				// don't proceed if already selected
36				if ( $this.hasClass('selected') ) {
37				  return false;
38				}
39				var $optionSet = $this.parents($tab_id);
40				$optionSets.find('.selected').removeClass('selected');
41				$this.addClass('selected');
42			 
43				//When an item is clicked, sort the items.
44				 var selector = $(this).attr('data-portfolio-filter');
45				$container.isotope({ filter: selector });
46				return false;
47			});
48		});
49		$( '.item-popup' ).fancybox({
50			helpers : {
51				title : {
52					type : 'over'
53				}
54			}
55		});
56	});
57})(jQuery);
58
59

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.