-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
39 lines (31 loc) · 792 Bytes
/
demo.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
30
31
32
33
34
35
36
37
38
39
<html>
<head>
<link href="colorShades.css" media="screen" rel="stylesheet" type="text/css">
<script src="vendors/jquery.min.js"></script>
<script src="vendors/tinycolor.js"></script>
<script src="colorShades.js"></script>
</head>
<body>
<input type="text" name="custom" id="custom" />
<br/>
<br/><br/><br/><br/>
<input type="text" name="custom1" id="custom1" />
<script>
$('#custom').colorShades({
l_items: 3,
r_items: 5,
step: 3,
base_color: '#568203',
onSelect: function() {
console.log($('#custom').val());
}
});
$('#custom1').colorShades({
l_items: 20,
r_items: 20,
step: 1,
base_color: '#568203'
});
</script>
</body>
</html>