Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Apr 17, 2020
1 parent dab4937 commit 3db1625
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta content="#000" name="theme-color">
<meta content="width=device-width" name="viewport">
<meta content="Color Picker is a simple JavaScript application that aims to provide custom color picker feature to the web with the most basic appearance and usability." name="description">
<title>Color Picker</title>
<title>Color Picker &middot; A simple JavaScript application that aims to provide custom color picker feature to the web with the most basic appearance and usability.</title>
<link href="favicon.ico" rel="icon">
<link href="color-picker.css" rel="stylesheet">
<style>
Expand Down Expand Up @@ -290,6 +290,14 @@ <h2>Hooks</h2>
</tr>
</thead>
<tbody>
<tr>
<td><code>change</code></td>
<td>Will be triggered on every color change.</td>
</tr>
<tr>
<td><code>drag</code></td>
<td>Will be triggered when the color picker control is dragging.</td>
</tr>
<tr>
<td><code>enter</code></td>
<td>Will be triggered when color picker pane is visible.</td>
Expand All @@ -303,25 +311,17 @@ <h2>Hooks</h2>
<td>Will be triggered when color picker pane is positioned.</td>
</tr>
<tr>
<td><code>change</code></td>
<td>Will be triggered on every color change.</td>
<td><code>pop</code></td>
<td>Will be triggered after <code>picker.pop()</code>.</td>
</tr>
<tr>
<td><code>start</code></td>
<td>Will be triggered when the color picker control starts dragging.</td>
</tr>
<tr>
<td><code>drag</code></td>
<td>Will be triggered when the color picker control is dragging.</td>
</tr>
<tr>
<td><code>stop</code></td>
<td>Will be triggered when the color picker control stops dragging.</td>
</tr>
<tr>
<td><code>pop</code></td>
<td>Will be triggered after <code>picker.pop()</code>.</td>
</tr>
</tbody>
</table>
<h3>picker.hooks</h3>
Expand All @@ -348,9 +348,9 @@ <h2>License</h2>
<p>Use it for free, pay if you get paid. So, you&rsquo;ve just benefited financially after using this project? It&rsquo;s a good idea to share a little financial support with this open source project too. Your support will motivate me to do any further development, as well as to provide voluntary support to overcome problems related to this project.</p>
<p>Thank you! ❤️</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input name="cmd" value="_s-xclick" type="hidden">
<input name="hosted_button_id" value="TNVGH7NQ7E4EU" type="hidden">
<p><button type="submit" class="button">Donate</button></p>
<input name="cmd" type="hidden" value="_s-xclick">
<input name="hosted_button_id" type="hidden" value="TNVGH7NQ7E4EU">
<p><button type="submit">Donate</button></p>
</form>
</main>
<footer>
Expand All @@ -359,7 +359,7 @@ <h2>License</h2>
</footer>
<script src="color-picker.js"></script>
<script>
var source = document.querySelector('form').color;
var source = document.forms[0].color;
source.value = '#' + ('00000' + (Math.random() * (1 << 24) | 0).toString(16)).slice(-6); // Random hex color
var picker = new CP(source);
picker.on('change', function(r, g, b, a) {
Expand Down

0 comments on commit 3db1625

Please sign in to comment.