Team:NCTU Formosa/source/header-notebook
From 2014.igem.org
(Difference between revisions)
Line 85: | Line 85: | ||
var index; | var index; | ||
block.hover(function(){window.status = $(this)}, function(){window.status = ""}); | block.hover(function(){window.status = $(this)}, function(){window.status = ""}); | ||
- | + | $('.note').hide(); | |
block.click( | block.click( | ||
Line 91: | Line 91: | ||
index = block.index(this); | index = block.index(this); | ||
$(this).closest('.cal-wrapper').find('.note').css("display", "none"); | $(this).closest('.cal-wrapper').find('.note').css("display", "none"); | ||
+ | $(this).closest('.cal-wrapper').find('.note').slideToggle('fast'); | ||
//$(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 16:56, 30 September 2014