diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..8dad3da --- /dev/null +++ b/bower.json @@ -0,0 +1,33 @@ +{ + "name": "tinyColorPicker", + "description": "Tiny jQuery color picker for mobile and desktop with alpha channel", + "main": "jqColorPicker.min.js", + "authors": [ + "peterd " + ], + "license": "MIT", + "keywords": [ + "jquery", + "javascript", + "color", + "picker", + "colorpicker", + "mobile", + "WCAG2.0", + "requestAnimationFrame" + ], + "homepage": "https://github.com/PitPik/tinyColorPicker", + "moduleType": [ + "globals" + ], + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "jQuery": "^2.2.1" + } +} \ No newline at end of file diff --git a/demo/index.html b/demo/index.html index 6ab2508..7b87853 100644 --- a/demo/index.html +++ b/demo/index.html @@ -12,6 +12,8 @@ + + tiny jQuery color picker demo diff --git a/index.html b/index.html index 2f78d95..45a479a 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@

Tiny jQuery colorPicker

Looking for mobile first, tiny foot print, fast, scaleable, flexible and pluggable...
-This 4.7KB small HSB color picker is based on a subset of colors.js from it's big brother colorPicker, 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 Demo).

+This 4.7KB (gZip) small HSB color picker is based on a subset of colors.js from it's big brother colorPicker, 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 Demo).

Demo

On all elements with className 'color':
$('.color').colorPicker();
diff --git a/index.js b/index.js index a9a82f5..b4312e1 100644 --- a/index.js +++ b/index.js @@ -534,9 +534,9 @@ '.cp-alpha:after{', '.cp-alpha:after, .cp-rgb-r:after, .cp-rgb-g:after, .cp-rgb-b:after{') + '.cp-rgb-r:after{content:"R";}.cp-rgb-g:after{content:"G";}.cp-rgb-b:after{content:"B";}' + - 'div.cp-rgb-r{background:linear-gradient(to right, rgba(220,220,220,1) 0%,rgba(255,0,0,1) 100%);}' + - 'div.cp-rgb-g{background:linear-gradient(to right, rgba(220,220,220,1) 0%,rgba(0,255,0,1) 100%);}' + - 'div.cp-rgb-b{background:linear-gradient(to right, rgba(220,220,220,1) 0%,rgba(0,0,255,1) 100%);}', + 'div.cp-rgb-r{background-color: red;}' + + 'div.cp-rgb-g{background-color: green;}' + + 'div.cp-rgb-b{background-color: blue;}', renderCallback: function($elm, toggled) { diff --git a/jqColorPicker-amd-wrapper.js b/jqColorPicker-amd-wrapper.js index 6dca5f9..1571118 100644 --- a/jqColorPicker-amd-wrapper.js +++ b/jqColorPicker-amd-wrapper.js @@ -1,6 +1,6 @@ (function (factory) { if (typeof define === 'function' && define.amd) { - define(['jquery', './colors'], function (jQuery, Colors) { + define(['jquery', 'colors'], function (jQuery, Colors) { return factory(window, jQuery, Colors); }); } else {