Skip to content

Instantly share code, notes, and snippets.

@danielkwok21
Created September 5, 2017 01:47
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/37da6bbf69830977672f54964069bc04 to your computer and use it in GitHub Desktop.
Save danielkwok21/37da6bbf69830977672f54964069bc04 to your computer and use it in GitHub Desktop.
Potato frontend files (separated)
h1{
color:red;
}
p{
color:blue;
}
div{
background:#98bf21;
height:100px;
width:100px;
position:absolute;
}
<!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>
$(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