Team:UCLA/Aal/javascripttemplate

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
-
function show_sidebar()
+
$(document).ready(function(){
-
{
+
  $("overlay").click(function(){
-
document.getElementById('test').animate({right:'200px'});
+
    $("test").animate({left:'250px'},5000);
-
}
+
  });
-
 
+
});
-
function hide_sidebar()
+
-
{
+
-
document.getElementById('test').animate({right:'-200px'};
+
-
}  
+
</script>
</script>
</html>
</html>

Revision as of 20:44, 6 August 2014