Team:Minnesota/Team Students

From 2012.igem.org

(Difference between revisions)
m
m
Line 67: Line 67:
//Team page specific
//Team page specific
-
function psiAnimationOn(obj){
+
function psiAnimationOn(obj, name, description, imgstr){
       obj.css("opacity","0.4");
       obj.css("opacity","0.4");
       obj.css("filter","alpha(opacity=40)");
       obj.css("filter","alpha(opacity=40)");
       obj.css("width","85px");
       obj.css("width","85px");
       obj.css("height","85px");
       obj.css("height","85px");
 +
      $("#pstName").css("font-weight","bold");
 +
      $("#pstName").text(name);
 +
      $("#pstDescription").css("font-size",14);
 +
      $("#pstDescription").text(description);
 +
      $("#profileSelectorImg").attr("src",imgstr);
 +
     
}
}
function psiAnimationOff(obj){
function psiAnimationOff(obj){
Line 83: Line 89:
$("#PSI1").hover(
$("#PSI1").hover(
     function() {
     function() {
-
       psiAnimationOn($("#PSI1"));
+
       var thisNameStr = "George Chao";
-
      $("#profileSelectorImg").attr("src","http://i1158.photobucket.com/albums/p607/iGEM_MN/George_resized.png");
+
       var desStr = "George is double majoring in Genetics, Cell Biology and Development and Computer Science. He plans to attend graduate school, and hopefully direct a lab in the future. His interests include ballroom dance, food, programming, video games, rollerblading, and biking. If he needs a caffeine boost George will drink an iced mocha with no whipped cream or an energy drink (NOS and Rockstar Black Citrus being his personal favorites). To protect himself from the sun he stays indoors (he’s a researcher, what do you expect?). His movie character alter ego: Harold Crick from Stranger than Fiction.";
-
      $("#pstName").css("font-weight","bold");
+
      var imgStr = "http://i1158.photobucket.com/albums/p607/iGEM_MN/George_resized.png";
-
      $("#pstName").text("George Chao");
+
      psiAnimationOn($("#PSI1"),thisNameStr, desStr, imgStr);
-
       $("#pstDescription").css("font-size",14);
+
-
      $("#pstDescription").text("George is double majoring in Genetics, Cell Biology and Development and Computer Science. He plans to attend graduate school, and hopefully direct a lab in the future. His interests include ballroom dance, food, programming, video games, rollerblading, and biking. If he needs a caffeine boost George will drink an iced mocha with no whipped cream or an energy drink (NOS and Rockstar Black Citrus being his personal favorites). To protect himself from the sun he stays indoors (he’s a researcher, what do you expect?). His movie character alter ego: Harold Crick from Stranger than Fiction.");
+
     },           
     },           
     function() {
     function() {

Revision as of 22:35, 14 September 2012

Team:Minnesota - Main Style Template Team:Minnesota

Like us on FB and follow us on Twitter!

Please mouse over each icon to learn about our team members!