Team:NCTU Formosa/source/header-notebook
From 2014.igem.org
(Difference between revisions)
Line 81: | Line 81: | ||
function initMenu() { | function initMenu() { | ||
var block = $(".calendar-day"); | var block = $(".calendar-day"); | ||
+ | var index; | ||
block.hover(function(){window.status = $(this)}, function(){window.status = ""}); | block.hover(function(){window.status = $(this)}, function(){window.status = ""}); | ||
Line 86: | Line 87: | ||
block.click( | block.click( | ||
function() { | function() { | ||
- | $(this). | + | index = block.index( this ); |
+ | $(this).closest('.cal-wrapper').find('.single:eq(index)').slideToggle('fast'); | ||
} | } | ||
);} | );} | ||
$(document).ready(function() {initMenu();}); | $(document).ready(function() {initMenu();}); | ||
</script> | </script> |
Revision as of 01:53, 30 September 2014