File "setting.js"

Full path: E:/sites/Single15/tinmung2007/webroot/thien chua/assets/js/portfolio/setting.js
File size: 1.01 KiB (1033 bytes)
MIME-type:
Charset: utf-8

Download   Open   Back


jQuery(document).ready(function($){

if (jQuery().quicksand) {

 	// Clone applications to get a second collection
	var $data = $(".portfolio-area").clone();
	
	//NOTE: Only filter on the main portfolio page, not on the subcategory pages
	$('.filter li').click(function(e) {
		$(".filter li").removeClass("active");	
		// Use the last category class as the category to filter by. This means that multiple categories are not supported (yet)
		var filterClass=$(this).attr('class').split(' ').slice(-1)[0];
		
		if (filterClass == 'all') {
			var $filteredData = $data.find('.portfolio-item');
		} else {
			var $filteredData = $data.find('.portfolio-item[data-type=' + filterClass + ']');
		}
		$(".portfolio-area").quicksand($filteredData, {
			duration: 600,
			adjustHeight: 'auto'
		}, function () {
		

					jQuery('ul.da-thumbs > li').hoverdir();
					$("a[data-pretty^='prettyPhoto']").prettyPhoto();

						});		
		$(this).addClass("active"); 			
		return false;
	});
	
}//if quicksand

});

PHP File Manager