Skip to content

Instantly share code, notes, and snippets.

@mikolalysenko
Forked from IvanLysenko/index.html
Created June 13, 2013 16:16
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 mikolalysenko/5775044 to your computer and use it in GitHub Desktop.
Save mikolalysenko/5775044 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>
<div id='unit'></div>
</body>
</html>
$(document).ready(function() {
$('#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