Team:NCTU Formosa/source/header-notebook

From 2014.igem.org

(Difference between revisions)
Line 13: Line 13:
clear:both;
clear:both;
}
}
-
 
.cal-wrapper {
.cal-wrapper {
display: block;
display: block;
Line 44: Line 43:
border:0;
border:0;
margin-bottom: 5px;
margin-bottom: 5px;
-
cursor: pointer;
 
}
}
.calendar-day li {
.calendar-day li {
Line 59: Line 57:
line-height: 30px;
line-height: 30px;
margin-bottom: 5px;
margin-bottom: 5px;
 +
cursor: pointer;
}
}
.calendar-day:hover li {
.calendar-day:hover li {
Line 81: Line 80:
<script>
<script>
function initMenu() {
function initMenu() {
-
var block = $(".day");
+
var block = $(".calendar-day");
-
block.addClass("clickable");
+
block.hover(function(){window.status = $(this)}, function(){window.status = ""});
block.hover(function(){window.status = $(this)}, function(){window.status = ""});
-
$('.open').hide();
+
$('.single').hide();
block.click(
block.click(
function() {
function() {
-
$(this).parents('div:eq(0)').find('.open').slideToggle('fast');
+
$(this).parents('div:eq(0)').find('.calendar-note').slideToggle('fast');
}
}
);}
);}
$(document).ready(function() {initMenu();});
$(document).ready(function() {initMenu();});
</script>
</script>

Revision as of 15:45, 29 September 2014