jQuery – GcColor

GcColor ir vienkāršs jQuery spraudnis, ar kura palīdzību varam papildināt interfeisu ar krāsu izvēlni.
Šis konkrētais spraudnis ir papildināts Color Picker – jQuery plugin
GcColor is a remake of Stefan Petre’s jQuery colorpicker plug-in. Main purpose of rewriting this plug-in was a diferent ideology of plug-in’s architecture.
- Stefan’s plug-in created multiple DOM instances of colorpicker dialog in page (one dialog per input element).
- I could not get direct link back to callee element without knowing it’s ID.
- The HSB to RGB calculation’s had some bug where calculation from HEX color value to RGB, then to HSB, then back to RGB and then back to HEX gave diferent value from initial HEX value (for example #431313 showed up as #421212). This one was mostly fault of JavaScript floating point calculations, so i tried some other algorythms here and wrote it down from this one.
For now the plugin only support slide-down interface, but in the future I hope to make flat mode
http://www.gusc.lv/jquery/gccolor.html
Legupielādēt GcColor v.1.0beta (76.38 KB), 12 reizes
Autors: Roberts Mozgis (rob)
Web izstrādātājs ar vairāku gadu pieredzi. Esmu strādājis pie daudziem interesantiem projektiem Latvijā un ārpus tās. Specializācija PHP, JavaScript, CSS, Html, kā viss ap datubāzēm.






Ir ko teikt?