Team:ETH Zurich/labblog/buttons

From 2014.igem.org

(Difference between revisions)
Line 14: Line 14:
         var filtertag = $(this).attr('class');
         var filtertag = $(this).attr('class');
         $("article").hide().filter('.' + filtertag).show();
         $("article").hide().filter('.' + filtertag).show();
-
    });
 
-
 
-
 
-
 
-
    $('.link-sort-list').on("click", function() {
 
-
$("#sort-list article").sort(function (a, b) {
 
-
    return parseInt(a.date > parseInt(b.date);
 
-
}).each(function(){
 
-
    var elem = $(this);
 
-
    elem.remove();
 
-
    $(elem).appendTo("#sort-list");
 
-
})
 
     });
     });
});
});

Revision as of 16:59, 28 August 2014

View all Lab Weekly Meetings Modeling
Oldest Newest