Team:NCTU Formosa/source/header-notes
From 2013.igem.org
(Difference between revisions)
Line 118: | Line 118: | ||
.caldot{width:12px;height:12px;border-radius:6px;margin-left:3px;margin-top:4px;margin-right:3px;} | .caldot{width:12px;height:12px;border-radius:6px;margin-left:3px;margin-top:4px;margin-right:3px;} | ||
</style> | </style> | ||
+ | <script> | ||
+ | function initMenu() { | ||
+ | var block = $(".day"); | ||
+ | block.addClass("clickable"); | ||
+ | block.hover(function(){window.status = $(this)}, function(){window.status = ""}); | ||
+ | |||
+ | $('.open').hide(); | ||
+ | block.click( | ||
+ | function() { | ||
+ | $(this).parents('div:eq(0)').find('.open').slideToggle('fast'); | ||
+ | } | ||
+ | );} | ||
+ | $(document).ready(function() {initMenu();}); | ||
+ | </script> |
Revision as of 18:36, 13 September 2013