Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oktoshi committed Nov 2, 2024
1 parent 8181bee commit ec25076
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,7 @@ jQuery(function($) {
});

//portfolio
$(window).load(function(){
$portfolio_selectors = $('.portfolio-filter >li>a');
if($portfolio_selectors!='undefined'){
$portfolio = $('.portfolio-items');
$portfolio.isotope({
itemSelector : 'li',
layoutMode : 'fitRows'
});
$portfolio_selectors.on('click', function(){
$portfolio_selectors.removeClass('active');
$(this).addClass('active');
var selector = $(this).attr('data-filter');
$portfolio.isotope({ filter: selector });
return false;
});
}
});


//contact form
var form = $('.contact-form');
Expand Down

0 comments on commit ec25076

Please sign in to comment.