PageSourceSearch

https://www.turgleder.com/wp-content/themes/riviera/js/jquery.isotope.run.js?ver=1.0.0

js turgleder.com collected 2026-10-04 20:14:38 UTC 2,447 bytes, 104 lines download raw bytes

1/**
2 * @package WordPress
3 * @subpackage Riviera
4 * @since Riviera 1.0
5 * 
6 * Portfolio Sorting Run Script for jQuery Isotope Plugin
7 * Created by CMSMasters
8 * 
9 */
10
11
12jQuery(document).ready(function () { 
13	(function ($) { 
14		var container = $('section.portfolio');
15		
16		container.isotope( { 
17			itemSelector : 'article.project', 
18			layoutMode : 'fitRows', 
19			resizable : false, 
20			getSortData : { 
21				pj_name : function (el) { 
22					return el.find('.entry-title').text();
23				}, 
24				pj_date : function (el) { 
25					return parseInt(el.find('.meta-date').text());
26				} 
27			} 
28		} );
29		
30		$('.pj_options_block .pj_filter a').bind('click', function () { 
31			var selector = $(this).attr('data-filter'), 
32				text = $(this).text(), 
33				filter_el = $(this).parent().parent().parent().find('.pj_cat_filter');
34			
35			$(this).parent().parent().find('>li.current').removeClass('current');
36			$(this).parent().addClass('current');
37			
38			filter_el.attr( { 
39				title : text, 
40				'data-filter' : selector 
41			} ).find('span').text(text);
42			
43			container.isotope( { 
44				filter : selector 
45			} );
46			
47			return false;
48		} );
49		
50		$('.pj_options_block .pj_sort > a').bind('click', function () { 
51			var type = $(this).attr('name'), 
52				asc = (type === 'pj_name') ? true : false, 
53				current = ($(this).hasClass('current')) ? true : false, 
54				reversed = ($(this).hasClass('reversed')) ? true : false;
55			
56			if (current) { 
57				if (reversed) { 
58					$(this).removeClass('reversed');
59					
60					asc = true;
61				} else { 
62					$(this).addClass('reversed');
63					
64					asc = false;
65				}
66			} else { 
67				$(this).parent().find('.current').removeClass('current');
68				$(this).parent().find('.reversed').removeClass('reversed');
69				
70				if (type === 'pj_name') { 
71					$(this).addClass('current');
72				} else { 
73					$(this).addClass('current reversed');
74				}
75			}
76			
77			container.isotope( { 
78				sortBy : type, 
79				sortAscending : asc 
80			} );
81			
82			return false;
83		} );
84		
85		$(window).smartresize(function () { 
86			var postWidth = container.width();
87			
88			if (container.hasClass('four_columns')) { 
89				postWidth = container.width() / 4;
90			} else if (container.hasClass('three_columns')) { 
91				postWidth = container.width() / 3;
92			} else if (container.hasClass('two_columns')) { 
93				postWidth = container.width() / 2;
94			}
95			
96			container.isotope( { 
97				fitRows : { 
98					columnWidth : postWidth 
99				} 
100			} );
101		} );
102	} )(jQuery);
103} );
104

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.