Team:Oxford

From 2014.igem.org

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

Revision as of 21:36, 2 September 2014