Skip to content

Instantly share code, notes, and snippets.

@IvanLysenko
Last active December 18, 2015 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save IvanLysenko/5774975 to your computer and use it in GitHub Desktop.
Save IvanLysenko/5774975 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>HTML5/JS Poject1</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script src="http://code.jquery.com/jquery-2.0.2.min.js"></script> <!-- needed to run jQuery stuff -->
<script src="script.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
$(document).ready(function() {
$('body').append('<div id="unit"></div>');
$('#unit').click(function(){
$('body').append('<div id="unit"></div>');
$('body').append('<div id="unit"></div>');
$(this).fadeOut();
});
});
#unit {
height:5px;
width:5px;
border-radius:5px;
background-color:blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment