Team:Hong Kong HKUST/notebook

From 2013.igem.org

(Difference between revisions)
Line 12: Line 12:
     $(document).ready(function(){
     $(document).ready(function(){
       $('.head').each(function(){
       $('.head').each(function(){
-
      var $content = $(this).closest('li').find('.content');
+
        var $content = $(this).closest('li').find('.content');
-
      $(this).click(function(e){
+
        $(this).click(function(e){
-
      e.preventDefault();
+
          e.preventDefault();
-
      $content.not(':animated').slideToggle();
+
          $content.not(':animated').slideToggle();
     });
     });
 +
});
});
});
   </script>
   </script>

Revision as of 04:14, 19 August 2013