Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- var tags = $(".portfolio__lcolumn__category > li > a");
- tags.click(function (e) {
- var tag = $(this).text();
- if (!$(this).hasClass("active")) {
- tags.removeClass("active");
- $(this).addClass("active");
- }
- tag = "#" + tag.replace(" ", "-").toLowerCase();
- $(".portfolio__rcolumn__box > li").hide();
- if (tag == "#all") {
- $(".portfolio__rcolumn__box > li").show();
- } else {
- $(".portfolio__rcolumn__box > li:contains(" + tag + ")").show();
- }
- e.preventDefault();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement