Team:NCTU Formosa/source/header-notebook

From 2014.igem.org

(Difference between revisions)
Line 144: Line 144:
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');
 +
$(this).closest('.cal-wrapper').find('.note:nth-child('+index+')').siblings().hide();
}
}
);}
);}
$(document).ready(function() {initMenu();});
$(document).ready(function() {initMenu();});
</script>
</script>

Revision as of 16:02, 14 October 2014