1jQuery(function($){ 2 3 //region Isotope 4 if($.fn.isotope) { 5 6 var $w = $(window); 7 8 $w.load(function () { 9 var $isotops = $('.isotope'); 10 11 $isotops.each(function () { 12 var $el = $(this), 13 id = $el.attr('id'), 14 mode = $el.data('isotopeMode') || 'fitRows', 15 tmt; 16 17 18 $el.isotope({ 19 itemSelector: '.isotope-item', 20 layoutMode: mode, 21 animationOptions: { 22 duration: 400, 23 queue: false 24 } 25 }); 26 27 28 $w.resize(function(){ 29 clearTimeout(tmt); 30 tmt = setTimeout(function(){ 31 $el.isotope('layout'); 32 }, 150); 33 }); 34 35 var $menu = $('[data-isotope-nav="' + id + '"]'); 36 37 if ($menu.length) { 38 $menu.find('a').click(function (e) { 39 var $link = $(this); 40 if(!$link.hasClass('active')){ 41 var selector = $link.attr('data-filter'); 42 $link.parents('ul').eq(0).find('.active').removeClass('active'); 43 $link.addClass('active'); 44 $el.isotope({ filter: selector }); 45 } 46 e.preventDefault(); 47 }); 48 } 49 50 $w.resize(); 51 52 }); 53 54 }); 55 56 } 57 //endregion 58 59});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.