Line 285: | Line 285: | ||
var content_right_border=$("#content-right-border").eq(0); | var content_right_border=$("#content-right-border").eq(0); | ||
+ | |||
var nav_shrink_func= function () { | var nav_shrink_func= function () { | ||
var nav_flag=false; | var nav_flag=false; | ||
nav_shrink.click(function () { | nav_shrink.click(function () { | ||
if(!nav_flag){ | if(!nav_flag){ | ||
− | slow_transition.addClass("transform_hide"); | + | //slow_transition.addClass("transform_hide"); |
− | content_right_border. | + | content_right_border.animate({ |
+ | 'margin-left':'40px' | ||
+ | },200); | ||
nav_shrink_icon.attr("src","https://static.igem.org/mediawiki/2016/1/17/T--BIT-China--img--pumpkin--expand.png"); | nav_shrink_icon.attr("src","https://static.igem.org/mediawiki/2016/1/17/T--BIT-China--img--pumpkin--expand.png"); | ||
− | nav_shrink. | + | nav_shrink.animate({ |
+ | left:'200px' | ||
+ | },200); | ||
nav_flag=true; | nav_flag=true; | ||
} | } | ||
else{ | else{ | ||
− | slow_transition.removeClass("transform_hide"); | + | //slow_transition.removeClass("transform_hide"); |
− | content_right_border. | + | content_right_border.animate({ |
+ | 'margin-left':'220px' | ||
+ | },200); | ||
nav_shrink_icon.attr("src","https://static.igem.org/mediawiki/2016/8/8a/T--BIT-China--img--pumpkin--collapse.png"); | nav_shrink_icon.attr("src","https://static.igem.org/mediawiki/2016/8/8a/T--BIT-China--img--pumpkin--collapse.png"); | ||
− | nav_shrink. | + | nav_shrink.animate({ |
+ | left:'90px' | ||
+ | },200); | ||
nav_flag=false; | nav_flag=false; |
Revision as of 09:07, 7 November 2016