Sākums » JavaScript, Lejupielādes, css

jQuery – GcColor

26.02.2009 14:39 464 skatījumi Nav komentāru

jquerygccolor

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.

  1. Stefan’s plug-in created multiple DOM instances of colorpicker dialog in page (one dialog per input element).
  2. I could not get direct link back to callee element without knowing it’s ID.
  3. 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

Demo un vairāk info gusc.lv

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.

VN:F [1.2.3_620]
Rating: 5.0/5 (1 vote cast)

Ir ko teikt?

Vari izmantot:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Raksta komentāru RSS