Team:Goettingen/suplement/scripts
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 7: | Line 7: | ||
}); | }); | ||
$(".f-medium").click(function(){ | $(".f-medium").click(function(){ | ||
- | + | $("p").css("font-size","13pt"); | |
}); | }); | ||
function proFlyout(which){ | function proFlyout(which){ | ||
var x="."+which,y=".f-"+which,z="#id-"+which; | var x="."+which,y=".f-"+which,z="#id-"+which; | ||
- | $(z).mouseenter(function(){$(y).fadeIn( | + | $(z).mouseenter(function(){$(y).fadeIn();$(x).addClass("deact");}); |
- | $(z).mouseleave(function(){$(x).removeClass("deact");$(y).fadeOut( | + | $(z).mouseleave(function(){$(x).removeClass("deact");$(y).fadeOut();}); |
}; | }; |
Revision as of 21:16, 3 June 2013
//universal
$(".f-larger").click(function(){ $("p").css("font-size","14pt"); }); $(".f-smaller").click(function(){ $("p").css("font-size","12pt"); }); $(".f-medium").click(function(){ $("p").css("font-size","13pt"); });
function proFlyout(which){
var x="."+which,y=".f-"+which,z="#id-"+which; $(z).mouseenter(function(){$(y).fadeIn();$(x).addClass("deact");}); $(z).mouseleave(function(){$(x).removeClass("deact");$(y).fadeOut();});
};