color-picker
color-picker copied to clipboard
Fix picker position/cursor when page has non-fixed position.
This is a solution for #29. The easiest way was to force the placement of the picker to be placed at root child, and adjust origins from there, losing the custom container/bucket feature.
The script works quite well. Is it possible to place the script in the header of the HTML file? What do you have to change to make it work. At the moment an error is given in line 207 because the parent element cannot be found.
You need to execute the color picker creation on document ready.
window.addEventListener('DOMContentLoaded', () => {
// Your code here...
});