Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@danielkwok21
Last active September 5, 2017 01:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkwok21/ca041ad8461e12cc5f348b77881f2b14 to your computer and use it in GitHub Desktop.
Save danielkwok21/ca041ad8461e12cc5f348b77881f2b14 to your computer and use it in GitHub Desktop.
Potato frontend combined files
<!DOCTYPE html>
<html>
<head>
<h1>Hello potato</h1>
<p>It's a wonderful day</p>
<div>Square</div>
</head>
<body>
</body>
</html>
<style>
h1{
color:red;
}
p{
color:blue;
}
div{
background:#98bf21;
height:100px;
width:100px;
position:absolute;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("div").click(function(){
$("div").animate({left: '250px'});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment