Skip to content

Commit

Permalink
Updated to version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EastDesire committed Oct 27, 2015
1 parent 9e08fb6 commit 194eeb2
Show file tree
Hide file tree
Showing 7 changed files with 1,364 additions and 668 deletions.
Binary file removed arrow.gif
Binary file not shown.
Binary file removed cross.gif
Binary file not shown.
12 changes: 0 additions & 12 deletions demo.html

This file was deleted.

Binary file removed hs.png
Binary file not shown.
Binary file removed hv.png
Binary file not shown.
41 changes: 41 additions & 0 deletions jscolor-example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<title>jscolor Example</title>
</head>
<body style="text-align:center;">



<script src="jscolor.js"></script>



<h2>Example 1</h2>
My favorite color: <input class="jscolor" value="66ff00">



<h2>Example 2</h2>

<button class="jscolor"
data-jscolor="{value:'000000', valueElement:'chosen-value', onFineChange:'setTextColor(this)'}">
Pick text color
</button>

HEX value: <input id="chosen-value">

<script>
function setTextColor(picker) {
document.getElementsByTagName('body')[0].style.color = '#' + picker.toString()
}
</script>



<p style="margin-top:3em;">Check out <a href="http://jscolor.com/examples/">more examples at jscolor.com</a>!</p>



</body>
</html>
Loading

0 comments on commit 194eeb2

Please sign in to comment.