Last active
September 5, 2017 01:48
-
-
Save danielkwok21/ca041ad8461e12cc5f348b77881f2b14 to your computer and use it in GitHub Desktop.
Potato frontend combined files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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