-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
29 lines (29 loc) · 925 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!doctype html>
<html>
<head>
<title>ColorPicker Test</title>
<link type="text/css" rel="stylesheet" href="colorpicker.css" media="all" />
<script type="text/javascript" src="colorpicker.js"></script>
</head>
<body>
<input id="color_input" type="text" value="" />
<div id="color_selector" class="colorpicker-selector"></div>
<div style="padding-bottom:300px"></div>
<input id="color_input2" type="text" value="" />
<div id="color_selector2" class="colorpicker-selector colorpicker-dark"></div>
<script type="text/javascript">
setTimeout(function(){
new ColorPicker(document.getElementById("color_selector"), {
input: document.getElementById("color_input"),
color: 'rgba(0, 255, 0, 0.6)',
format: 'rgba'
});
new ColorPicker(document.getElementById("color_selector2"), {
input: document.getElementById("color_input2"),
color: 'rgba(255, 0, 0, 0.6)',
format: 'rgba'
});
}, 100);
</script>
</body>
</html>