Giusto per rompere il ghiaccio, un piccolo showcase di un widget che ho fatto.
E' un colorpicker scritto in JavaScript, per mezzo del framework MooTools.
Riporto direttamente dal sito, così non devo riscrivere:
mooRainbow is a powerful Javascript color picker that allows you to visually choose and use colors as a real and useful application.
First of all mooRainbow is made with mootools Javascript Framework.
mooRainbow can be attached to any element in the DOM. A click event would automatically be attached to that element and simply clicking on it you will be able to show or hide mooRainbow.
It provides to you 2 fired events: onChange and onComplete, so you can easily manage what to do when picking up a color (ie: onChange -> when choosing a color, change my body background with that. onComplete -> when I'm done, change every tag <p> in the whole page with the selected color).
What I want you to know about mooRainbow is that:
First of all mooRainbow is made with mootools Javascript Framework.
mooRainbow can be attached to any element in the DOM. A click event would automatically be attached to that element and simply clicking on it you will be able to show or hide mooRainbow.
It provides to you 2 fired events: onChange and onComplete, so you can easily manage what to do when picking up a color (ie: onChange -> when choosing a color, change my body background with that. onComplete -> when I'm done, change every tag <p> in the whole page with the selected color).
What I want you to know about mooRainbow is that:
- mooRainbow is fully customizable via CSS file.
- mooRainbow keeps clean your DOM and generates valid XHTML and CSS
- mooRainbow provides you, as return, an object containing RGB, HSB and HEX of the choosen color.
- mooRainbow is really rapid thanks to mootools.
- mooRainbow fully works on Firefox (and friends)/Safari/Opera/IE
Sto per iniziare a riscrivere per intero il Widget che penso di rendere pubblico con la release di mootools 1.2. Fino ad allora ci sono 2 known bug che però non sono del tutto rilevanti.
Home: http://w00fz.altervista.org/mooRainbow
Docs: http://w00fz.altervista.org/mooRainbow/#doc
Demos: http://w00fz.altervista.org/mooRainbow/#demos (la Demo 2 è la più completa)
(Nonostante possa apparire piuttosto inutile, devo ammettere che ha riscosso non poco successo in giro per il web)
Commenta