TED TALKS

TED TALKS

jQuery(document).ready(function ($) {
// Isotope filters
//———————————————–
if ($(‘.isotope-container-5a40f64f389c7’).length > 0) {
$(window).load(function () {
var $container = $(‘.isotope-container-5a40f64f389c7’).isotope({
itemSelector: ‘.isotope-item’,
layoutMode: ‘masonry’,
transitionDuration: ‘0.6s’,
filter: “*”
});
// filter items on button click
$(‘.filters’).on(‘click’, ‘ul.nav li a’, function () {
var filterValue = $(this).attr(‘data-filter’);
$(“.filters”).find(“li.active”).removeClass(“active”);
$(this).parent().addClass(“active”);
$container.isotope({filter: filterValue});
return false;
});
});
}
;
});



01Jul, 2009

TED TALK: “Stefan Sagmeister”