Team:NCTU Formosa/source/header-notebook

From 2014.igem.org

(Difference between revisions)
Line 89: Line 89:
block.click(
block.click(
function() {
function() {
-
index = block.index(this);
+
index = block.index(this)-1;
-
$(this).closest('.cal-wrapper').find('.note:nth-child('+index-1+')').slideToggle('fast');
+
$(this).closest('.cal-wrapper').find('.note:nth-child('+index+')').slideToggle('fast');
}
}
);}
);}
$(document).ready(function() {initMenu();});
$(document).ready(function() {initMenu();});
</script>
</script>

Revision as of 17:26, 30 September 2014