Created
September 5, 2017 01:47
-
-
Save danielkwok21/37da6bbf69830977672f54964069bc04 to your computer and use it in GitHub Desktop.
Potato frontend files (separated)
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
h1{ | |
color:red; | |
} | |
p{ | |
color:blue; | |
} | |
div{ | |
background:#98bf21; | |
height:100px; | |
width:100px; | |
position:absolute; | |
} |
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> | |
<link href="potato.css" rel="stylesheet" type="text/css" /> | |
<html> | |
<head> | |
<h1>Hello potato</h1> | |
<p>It's a wonderful day</p> | |
<div>Square</div> | |
</head> | |
<body> | |
</body> | |
</html> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script type="text/javascript" src="potato.js"></script> |
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
$(document).ready(function(){ | |
$("div").click(function(){ | |
$("div").animate({left: '250px'}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment