Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////GALLERY START////////////////
- $('.portfolio-categories_item a').click(function() {
- $('.portfolio-categories_item').removeClass('selected');
- $(this).parent('li').addClass('selected');
- thisItem = $(this).attr('rel');
- if(thisItem != 'all') {
- $('.gallery-item[rel='+thisItem+']').slideDown(1000);
- $('.gallery-item[rel!='+thisItem+']').slideUp(1000);
- } else {
- $('.gallery-item').slideDown(1000);
- }
- return false;
- });
- /////////GALLERY end////////////////
- //html
- ul.portfolio-categories
- li.portfolio-categories_item.selected
- a(href="#" rel="all") All Works
- li.portfolio-categories_item
- a(href="#" rel="print") Print
- ...
- #gallery
- div(rel="print").gallery-item
- div(rel="html").gallery-item
Add Comment
Please, Sign In to add comment