1$(document).ready(function(){ 2 3 4function lightboxPhoto() { 5 6 $("a[rel^='prettyPhoto']").prettyPhoto({ 7 animationSpeed:'fast', 8 slideshow:5000, 9 theme:'dark_rounded', 10 show_title:false, 11 overlay_gallery: false 12 }); 13 14 } 15 16 if($().prettyPhoto) { 17 18 lightboxPhoto(); 19 20 } 21 22 23if ($().quicksand) { 24 25 // Clone applications to get a second collection 26 var $data = $(".portfolio-area").clone(); 27 28 //NOTE: Only filter on the main portfolio page, not on the subcategory pages 29 $('.portfolio-categ li').click(function(e) { 30 $(".filter li").removeClass("active"); 31 // Use the last category class as the category to filter by. This means that multiple categories are not supported (yet) 32 var filterClass=$(this).attr('class').split(' ').slice(-1)[0]; 33 34 if (filterClass == 'all') { 35 var $filteredData = $data.find('.portfolio-item2'); 36 } else { 37 var $filteredData = $data.find('.portfolio-item2[data-type=' + filterClass + ']'); 38 } 39 $(".portfolio-area").quicksand($filteredData, { 40 duration: 600, 41 adjustHeight: 'auto' 42 }, function () { 43 44 lightboxPhoto(); 45 }); 46 $(this).addClass("active"); 47 return false; 48 }); 49 50}//if quicksand 51 52});
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.