Skip to content

create a panel to select the color you want.取色器.based on js,jquery.

Notifications You must be signed in to change notification settings

harveyprince/ColorBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ColorBox

create a panel to select the color you want.取色器.based on js,jquery.

使用方法[using method]

初始化[init]

html part

<div class="color_bo"></div>

actually, the color_bo can change to any string you like.
but it should keep the same with the follow when you use it.

js part

var c = new ColorBox($(".color_bo"));
c.initBox();

now you have the panel on your website
demo

取值方法[the method to get value]

you can use c.value to get the value.it's a decimal number
if you want to get the hexadecimal value like #FFFFFF
you can use c.getStringValue().

About

create a panel to select the color you want.取色器.based on js,jquery.

Resources

Stars

Watchers

Forks

Packages

No packages published