philptr / colorpick.js Goto Github PK
View Code? Open in Web Editor NEWA simple and minimal jQuery color picker plugin for the modern web.
Home Page: https://zetstudios.com
A simple and minimal jQuery color picker plugin for the modern web.
Home Page: https://zetstudios.com
initialColor
and initialColor
are fine
recentMax
and others are ignored
Not to change JS this can be achieved by providing an optional data attribute for each color picker.
Instead of
<div class="colorPickSelector"></div>
code can be
<div class="colorPickSelector" data-init="#ffffff"></div>
Since it is in div class name, i cant get the value
Tried to use it on input types, but doesnt work
I am trying to use this plugin twice, each time for different event binding.
<div class="colorPickSelector" id="color1"></div><h6>Error Bars</h6>
<div class="colorPickSelector" id="color2"></div><h6>Data Point</h6><br>
How to modify the script, by applying the changes for 2 different events??
I have a vue project, and for some reasons I need to use jQuery and a color picker plugin.
I found this lib is pretty and I want to use it in my project. But how can I use it?
I have used following css in cdn (https://www.jqueryscript.net/demo/Flat-HTML5-Palette-Color-Picker-For-jQuery-colorPick-js/colorPick.css). it's show mixed content issue when I load in HTTPS.
Because fonts are loading in http: mode not the https:
http://fonts.gstatic.com/s/opensans/v13/cJZKeOuBrn4kERxqtaUH3bO3LdcAZYWl9Si6vvxL-qU.woff
Hello,
I'm using the custom event function from the docs and when I refresh the page the event fires on its own and I got in the console this: "The user has selected the color: #3498DB"
Any ideas?
Best Regards!
To solve, the color picker should be positioned relative to the trigger element.
I found a problem in IE11 with JQuery.each code block. IE write "syntax error"
jQuery.each(this.palette, (index, item) => { $("#colorPick").append('<div class="colorPickButton" hexValue="' + item + '" style="background:' + item + '"></div>'); });
solved the problem:
jQuery.each(this.palette, function (index, item) { $("#colorPick").append('<div class="colorPickButton" hexValue="' + item + '" style="background:' + item + '"></div>'); });
the issue occurs on line 143
Description
The text in the popup, namely "Default Palette" and "Recent" is selectable by the user.
For a good UX, this should not be selectable.
Picker doesn't open when loaded dynamically after the DOM is loaded.
I can duplicate colors and ColorPick.js will display three #EEE blocks.
$(".picker").colorPick({ 'palette': ["#eee", "#eee", "#eee"] });
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.