Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created August 4, 2016 18:30
Show Gist options
  • Save Bijesse/fb8ec8d35f2cb289d1e560dd0ccd9ed2 to your computer and use it in GitHub Desktop.
Save Bijesse/fb8ec8d35f2cb289d1e560dd0ccd9ed2 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=fb8ec8d35f2cb289d1e560dd0ccd9ed2
<!DOCTYPE html>
<html>
<head>
<title>Gravity Starter Code</title>
</head>
<body>
<img id="pic" src="https://s-media-cache-ak0.pinimg.com/236x/24/2d/2e/242d2e2f40995f6f6ef2cd10a245c196.jpg">
<div id="ground"></div>
</body>
</html>
//sets element to value $square
var $pic = $("#pic");
$pic.click(function(){
//Your code goes here
});
#pic {
position: absolute;
width: 50px;
width: 60px;
left: 50%;
top: 5%;
}
#ground {
position: absolute;
background-color: black;
width: 100%;
height: 20px;
top: 95%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment