Created
January 14, 2015 01:40
-
-
Save Hectorsito20/5dca8dd6822192d7820c to your computer and use it in GitHub Desktop.
This is a description.
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
<html> | |
<head> | |
<title>Javascript xample</title> | |
<meta charset="utf-8"> | |
<script src="js/jquery.js"></script> | |
<style> | |
</style> | |
</head> | |
<body> | |
<div id="main"> | |
<div id="color" data-hex="#000000"></div> | |
<script type="text/javascript"> | |
$("#color").click(function (event) { | |
var color = $(this).data("hex"); | |
append.(color); | |
}); | |
</script> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment