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.eq(this)+1;
+
index = block.index(this)+1;
alert(index);
alert(index);
-
$(this).closest('.cal-wrapper').find('.note:nth-child('+index+')').slideToggle('fast');
+
$(this).closest('.card').find('.note:nth-child('+index+')').slideToggle('fast');
}
}
);}
);}
$(document).ready(function() {initMenu();});
$(document).ready(function() {initMenu();});
</script>
</script>

Revision as of 18:33, 5 October 2014