

$(window).load(function () { // isotop var $container = $('#isotope-items'), $optionSet = $('#isotope-options'), $optionSets = $('#isotope-filters'), $optionLinks = $optionSets.find('a'); $container.isotope({ filter: '*', layoutMode: 'fitRows' }); $optionLinks.click(function () { var $this = $(this); // don't proceed if already selected if ($this.hasClass('selected')) { return false; } $optionSet.find('.selected').removeClass('selected'); $this.addClass('selected'); var selector = $(this).attr('data-filter'); $container.isotope({ filter: selector }); return false; }); $(window).on("resize", function (event) { $container.isotope('reLayout'); }); // touchTouch $('.thumb-isotope .thumbnail a').touchTouch(); });