Color Picker Safari
About
A simple component to select color in the same way you select color in Adobe Photoshop
Last update
23.05.2009 - Check Download tab
Color picker input (advanced). Supported on IE10+, Firefox, Chrome, Safari and Opera. 'Can I use' provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
The Macintosh OS X Color Picker. OS X on the Mac introduced an amazingly powerful Color Picker, and it's only improved since then. This tutorial has been updated to show the Color Picker in Mac OS 10.5.7; but if you are using a different version, I'm sure that you'll be able to figure out where things are in yours. Safari 5 provides the same level of support for color picker as Chrome 8 and Firefox 3.6. Internet Explorer 8's 'Color Picker' Internet Explorer 8 support is similar to that of all the previously. Color picker is not working in safari browser. Ask Question Asked 4 years, 1 month ago. Active 1 year ago. Viewed 8k times 9. I am using fabric js library for.
Features
- Flat mode - as element in page
- Powerful controls for color selection
- Easy to customize the look by changing some images
- Fits into the viewport
Color Picker Safari Free
License
Dual licensed under the MIT and GPL licenses.
Examples
Flat mode.
Custom skin and using flat mode to display the color picker in a custom widget.
Attached to an text field and using callback functions to update the color with field's value and set the value back in the field by submiting the color.
Attached to DOMElement and using callbacks to live preview the color and adding animation.
Download
colorpicker.zip (89 kb): jQuery, Javscript files, CSS files, images, examples and instructions.
Changelog
- 23.05.2009
- Added: close on color selection example
- Added: restore original color option
- Changed: color update on key up event
- Fixed: colorpicker hide and show methods
- Fixed: reference to options. Multiple fields with colorpickers is possible now.
- Fixed: RGB to HSB convertion
- 22.08.2008
- Fixed bug: where some events were not canceled right on Safari
- Fixed bug: where teh view port was not detected right on Safari
- 16-07-2008
- Fixed bug where the letter 'F' could not be typed in the Hex field
- Fixed bug where the changes on Hex field where not parsed
- Added new option 'livePreview'
- 08-07-2008
- Fixed typo in the code, both JavaScript and CSS
- Changed the cursor for some elements
- Added new demo explaining how to implement custom skin
- 07.07.2008
- The first release.
Implement
Attach the Javascript and CSS files to your document. Edit CSS file and fix the paths to images and change colors to fit your site theme.
Invocation code
All you have to do is to select the elements in a jQuery way and call the plugin.
Color Picker For Safari
Options
A hash of parameters. All parameters are optional.
eventName | string | The desired event to trigger the colorpicker. Default: 'click' |
color | string or hash | The default color. String for hex color or hash for RGB and HSB ({r:255, r:0, b:0}) . Default: 'ff0000' |
flat | boolean | Whatever if the color picker is appended to the element or triggered by an event. Default false |
livePreview | boolean | Whatever if the color values are filled in the fields while changing values on selector or a field. If false it may improve speed. Default true |
onShow | function | Callback function triggered when the color picker is shown |
onBeforeShow | function | Callback function triggered before the color picker is shown |
onHide | function | Callback function triggered when the color picker is hidden |
onChange | function | Callback function triggered when the color is changed |
onSubmit | function | Callback function triggered when the color it is chosen |
Set color
If you want to set a new color.
Color Picker Safari
The 'color' argument is the same format as the option color, string for hex color or hash for RGB and HSB ({r:255, r:0, b:0}).
Html Color Picker Safari
Hosted by MediaSecure