Team:NCTU Formosa/source/header-notebook

From 2014.igem.org

(Difference between revisions)
Line 127: Line 127:
function() {
function() {
// index = block.index(this)+1;
// index = block.index(this)+1;
-
index = $(this).closest('.calendar').find('.calendar-day').index(this);
+
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:49, 5 October 2014