Team:UT Dallas/Team

From 2013.igem.org

(Difference between revisions)
Line 6: Line 6:
<dl class="accordion">
<dl class="accordion">
-
<dt><a href="">Panel 1</a></dt>
+
<dt link='page_link'>About UTD</dt>
<dd></dd>
<dd></dd>
Line 21: Line 21:
      
      
   var allPanels = $('.accordion > dd').hide();
   var allPanels = $('.accordion > dd').hide();
-
   
+
   $('.accordion > dt').click(function()  
-
   $('.accordion > dt').click(function() {
+
-
    var str=$(this).next().html();
+
-
    if(str.length>1)
+
     {
     {
-
    allPanels.slideUp();
+
      var str = $(this).next().html();
-
    $(this).next().slideDown();
+
      if (str.length > 1)
-
    return false;
+
  {
-
    }
+
          allPanels.slideUp();
 +
          $(this).next().slideDown();
 +
      }
 +
  else
 +
  {
 +
alert($(this).attr('link'));
 +
  }
 +
  return false;
   });
   });
-
 
+
  })(jQuery);
-
})(jQuery);
+
</script>
</script>
</html>
</html>

Revision as of 22:46, 6 September 2013

About UTD
Panel 2
Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis.
Panel 3
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo. Suspendisse potenti.