Skip to content

Commit 0bfa3f1

Browse files
committed
Minor updates
1 parent 8e338c8 commit 0bfa3f1

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $('.color').colorPicker({
6666

6767
The positionCallback can be used to optionally position the colorPicker different from its default; in case you want it to also show above or to the left of the input field etc.
6868
The callback will also be called on scroll.
69-
You need to return an object that holds ```left``` and ```top``` to position the colorPicker. See ./demo/index.js for an example:
69+
If you return an object (```{left: x, top: y}``` to position the colorPicker) then those coordinates will be taken, otherwhise the function just executes (what you need to do: re-append for example) and it takes the internal algorithm to position the color picker. See ./demo/index.js for an example:
7070

7171
```javascript
7272
positionCallback: function($elm) {

colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
Colors = function(options) {
3232
this.colors = {RND: {}};
3333
this.options = {
34-
color: 'rgba(204, 82, 37, 0.8)', // init value(s)...
34+
color: 'rgba(0,0,0,0)', // init value(s)...
3535
grey: grey,
3636
luminance: luminance,
3737
valueRanges: _valueRanges

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<div id="content-wrapper">
2626
<h1>Tiny jQuery colorPicker</h1>
2727
<p>Looking for mobile first, tiny foot print, fast, scaleable, flexible and pluggable...<br>
28-
This <strong>4.7KB</strong> (gZip) small HSB color picker is based on a subset of <a href="https://github.com/PitPik/colorPicker/blob/master/colors.js">colors.js</a> from it's big brother <a href="http://dematte.at/colorPicker/">colorPicker</a>, supports all modern features like touch and MS pointer, GPU accelerated rendering, battery friendly requestAnimationFrame and provides a lot of hooks for developers to write plugins (See demo plugins below in <a href="#demo">Demo</a>).</p>
28+
This <strong>5.07KB</strong> (gZip; 11.39KB minified) small HSB color picker is based on a subset of <a href="https://github.com/PitPik/colorPicker/blob/master/colors.js">colors.js</a> from it's big brother <a href="http://dematte.at/colorPicker/">colorPicker</a>, supports all modern features like touch and MS pointer, GPU accelerated rendering, battery friendly requestAnimationFrame and provides a lot of hooks for developers to write plugins (See demo plugins below in <a href="#demo">Demo</a>).</p>
2929
<a name="demo" id="demo" class="a-inline"></a>
3030
<h2>Demo</h2>
3131
On all elements with className 'color': <pre>$('.color').colorPicker();</pre>

0 commit comments

Comments
 (0)