Team:NCTU Formosa/source/header-notebook

From 2014.igem.org

(Difference between revisions)
Line 126: Line 126:
block.click(
block.click(
function() {
function() {
-
// index = block.index(this)+1;
 
index = $(this).closest('.calendar').find('.calendar-day').index(this)+1;
index = $(this).closest('.calendar').find('.calendar-day').index(this)+1;
$(this).closest('.cal-wrapper').find('.note:nth-child('+index+')').slideToggle('fast');
$(this).closest('.cal-wrapper').find('.note:nth-child('+index+')').slideToggle('fast');

Revision as of 18:50, 5 October 2014