Team:XMU-China/Notebook Calendar

From 2014.igem.org

(Difference between revisions)
Line 337: Line 337:
var sidebar_sub_hover_display = side_bar_hover_target.children(".sidebar_sub").css("display");
var sidebar_sub_hover_display = side_bar_hover_target.children(".sidebar_sub").css("display");
if(sidebar_sub_hover_display = "none"){
if(sidebar_sub_hover_display = "none"){
-
side_bar_hover_target.animate({width:"275px"},200);
+
side_bar_hover_target.stop().animate({width:"275px"},200);
-
side_bar_hover_target.children(".sidebar_sub").slideDown("normal");
+
};
};
$(".sidebar_main").mouseleave(function(){
$(".sidebar_main").mouseleave(function(){
Line 344: Line 343:
var sidebar_sub_hoveroff_display = side_bar_hoveroff_target.children(".sidebar_sub").css("display");
var sidebar_sub_hoveroff_display = side_bar_hoveroff_target.children(".sidebar_sub").css("display");
if(sidebar_sub_hover_display = "block"){
if(sidebar_sub_hover_display = "block"){
-
side_bar_hover_target.children(".sidebar_sub").slideUp(100);
+
side_bar_hover_target.stop().animate({width:"155px"},100);
-
side_bar_hover_target.animate({width:"155px"},100);
+
};
};
});
});
Line 352: Line 350:
$(".navbar_main").mouseenter(function(){
$(".navbar_main").mouseenter(function(){
var nav_bar_hover_target = $(this);
var nav_bar_hover_target = $(this);
-
nav_bar_hover_target.children(".navbar_sub").slideDown();
+
nav_bar_hover_target.children(".navbar_sub").stop().slideDown();
$(".navbar_main").mouseleave(function(){
$(".navbar_main").mouseleave(function(){
var nav_bar_hoveroff_target = $(this);
var nav_bar_hoveroff_target = $(this);
-
nav_bar_hoveroff_target.children(".navbar_sub").slideUp();
+
nav_bar_hoveroff_target.children(".navbar_sub").stop().slideUp();
});
});
});
});

Revision as of 16:18, 17 October 2014

side_bar

DNA Hexagon
Previous Next
    February

1st:today we made...
2nd:today we made...

Return

Feb

Previous Next
    March

1st:today we made...
2nd:today we made...

Return

Mar

Previous Next
    April

1st:today we made...
2nd:today we made...

Return

Apr

Previous Next
    May

1st:today we made...
2nd:today we made...

Return

May

Previous Next
    June

1st:today we made...
2nd:today we made...

Return

Jun

Previous Next
    July

1st:today we made...
2nd:today we made...

Return

Jul

Previous Next
    August

1st:today we made...
2nd:today we made...

Return

Aug

Previous Next
    September

1st:today we made...
2nd:today we made...

Return

Sep

Previous Next
    October

1st:today we made...
2nd:today we made...

Return

Oct