Team:Oxford

From 2014.igem.org

(Difference between revisions)
m (abstracting the split hooks to bind to animateSplit() ~josefnpat)
m (Removing the ready override for #x ~josefnpat)
Line 262: Line 262:
   });
   });
});
});
 +
 +
function animateSplit(){
 +
  $("#right").animate({left:'85%'});
 +
  $("#left").animate({left:'3.1%'});
 +
  $("#abstract").animate({width:'69.9%', left:'15.1%'});
 +
}
$("#split").click(function(){
$("#split").click(function(){
Line 271: Line 277:
});
});
-
function animateSplit(){
+
$("#x").click(function(){
-
  $("#right").animate({left:'85%'});
+
  $("#right").animate({left:'50%'});
-
  $("#left").animate({left:'3.1%'});
+
  $("#left").animate({left:'38.1%'});
-
  $("#abstract").animate({width:'69.9%', left:'15.1%'});
+
  $("#abstract").animate({width:'0%', left:'50%'});
-
}
+
-
 
+
-
$(document).ready(function(){
+
-
  $("#x").click(function(){
+
-
    $("#right").animate({left:'50%'});
+
-
    $("#left").animate({left:'38.1%'});
+
-
    $("#abstract").animate({width:'0%', left:'50%'});
+
-
  });
+
});
});

Revision as of 21:38, 2 September 2014