Team:Goettingen/suplement/scripts

From 2013.igem.org

(Difference between revisions)
m
Line 10: Line 10:
   });
   });
-
//for home
+
function proFlyout(which){
-
  $("#our-project").hide();
+
   var x="."+which,y=".f-"+which,z="#id-"+which;
-
    
+
   $(z).mouseenter(function(){$(y).fadeIn("fast");$(x).addClass("deact");});
-
  $(".bkg").click(function(){
+
   $(z).mouseleave(function(){$(x).removeClass("deact");$(y).fadeOut("fast");});
-
$("#background").show();
+
};
-
$("#our-project").hide();
+
-
  });
+
-
   $(".opr").click(function(){
+
-
$("#our-project").show();
+
-
$("#background").hide();  
+
-
  });
+
-
 
+
-
 
+
-
//for team
+
-
 
+
-
  $("#supervisors").hide();
+
-
  $("#students").hide();
+
-
 
+
-
  $(".OurTeam").click(function(){
+
-
$("#OurTeam").show();
+
-
$("#supervisors").hide();
+
-
$("#students").hide();
+
-
  });
+
-
   $(".supervisors").click(function(){
+
-
$("#OurTeam").hide();
+
-
$("#supervisors").show();
+
-
$("#students").hide();
+
-
  });
+
-
  $(".students").click(function(){
+
-
$("#OurTeam").hide();
+
-
$("#supervisors").hide();
+
-
$("#students").show();
+
-
  });
+

Revision as of 20:52, 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("fast");$(x).addClass("deact");});
 $(z).mouseleave(function(){$(x).removeClass("deact");$(y).fadeOut("fast");});

};