Team:KIT-Kyoto
From 2014.igem.org
(Difference between revisions)
Lovetaylor (Talk | contribs) |
|||
Line 185: | Line 185: | ||
}); | }); | ||
$('.hide').css('opacity','0'); | $('.hide').css('opacity','0'); | ||
- | $('. | + | $('.true a,.true a').hover(function(){ |
- | var tnum = $('. | + | var tnum = $('.true a').index(this); |
$('.show').eq(tnum).stop().animate({opacity:'0'},400); | $('.show').eq(tnum).stop().animate({opacity:'0'},400); | ||
$('.hide').eq(tnum).stop().animate({opacity:'1'},400); | $('.hide').eq(tnum).stop().animate({opacity:'1'},400); | ||
}, | }, | ||
function(){ | function(){ | ||
- | var tnum = $('. | + | var tnum = $('.true a').index(this); |
$('.show').eq(tnum).stop().animate({opacity:'1'},400); | $('.show').eq(tnum).stop().animate({opacity:'1'},400); | ||
$('.hide').eq(tnum).stop().animate({opacity:'0'},400); | $('.hide').eq(tnum).stop().animate({opacity:'0'},400); | ||
Line 213: | Line 213: | ||
$("#container").css({marginTop:'65px',marginLeft:'0px'}); | $("#container").css({marginTop:'65px',marginLeft:'0px'}); | ||
}else{ | }else{ | ||
+ | $(".show").addClass('true'); | ||
+ | $(".hide").addClass('true1') | ||
$("#close").removeClass('close'); | $("#close").removeClass('close'); | ||
$("#SideMenu").css({"left":"-215px"}); | $("#SideMenu").css({"left":"-215px"}); |
Revision as of 05:17, 13 October 2014