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(' | + | var $content = $(this).closest('li').find('.content'); |
$(this).click(function(e){ | $(this).click(function(e){ | ||
e.preventDefault(); | e.preventDefault(); | ||
Line 298: | Line 298: | ||
<div id="satu" align="center"> <h1>June 2013</h1> | <div id="satu" align="center"> <h1>June 2013</h1> | ||
- | + | <li> | |
<a href='#' class='head'>Week 4</a> | <a href='#' class='head'>Week 4</a> | ||
<div class='content'>Content 1 | <div class='content'>Content 1 | ||
</div> | </div> | ||
+ | <li> | ||
</div> | </div> |
Revision as of 12:28, 16 September 2013