Team:NCTU Formosa/source/header-notebook

From 2014.igem.org

(Difference between revisions)
Line 83: Line 83:
function initMenu() {
function initMenu() {
var block = $(".calendar-day");
var block = $(".calendar-day");
-
var index;
+
var index;
-
block.hover(function(){window.status = $(this)}, function(){window.status = ""});
+
block.hover(function(){window.status = $(this)}, function(){window.status = ""});
-
+
$('.note').hide();
-
// $('.single').hide();
+
 
block.click(
block.click(
function() {
function() {
-
index = block.index( this );
+
index = block.index(this);
-
$(this).closest('.cal-wrapper').find('.single:eq(index)').slideToggle('fast');
+
$(this).closest('.cal-wrapper').find('.note:index(index)').slideToggle('fast');
}
}
);}
);}
$(document).ready(function() {initMenu();});
$(document).ready(function() {initMenu();});
-
 
+
/*
$(document).ready(function(){
$(document).ready(function(){
   $(".calendar-day").click(function(){
   $(".calendar-day").click(function(){
Line 100: Line 100:
   });
   });
});
});
-
 
+
*/
</script>
</script>

Revision as of 16:37, 30 September 2014