Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * custom js functions
- */
- jQuery(function ($) {
- // filterable properties.
- var $container = $('.properties');
- $container.isotope({
- filter: '*',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false,
- }
- });
- $('nav.primary ul a').click(function(){
- var selector = $(this).attr('data-filter');
- $container.isotope({
- filter: selector,
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false,
- }
- });
- return false;
- });
- var $optionSets = $('nav.primary ul'),
- $optionLinks = $optionSets.find('a');
- $optionLinks.click(function(){
- var $this = $(this);
- // don't proceed if already selected
- if ( $this.hasClass('selected') ) {
- return false;
- }
- var $optionSet = $this.parents('nav.primary ul');
- $optionSet.find('.selected').removeClass('selected');
- $this.addClass('selected');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement