-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (50 loc) · 2 KB
/
index.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<title>Tiny Color Chooser built on Prototype</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="js/prototype.1.6.js" type="text/javascript"></script>
<script src="js/tiny-color-chooser.js" type="text/javascript"></script>
<link href="css/tiny-color-chooser.css" rel="stylesheet" type="text/css" />
<style type="text/css">
pre {
background: #DDD;
border: 1px solid #AAA;
width: 800px;
padding: 10px;
text-align: left;
overflow: auto
}
</style>
</head>
<body>
<!-- <div class="center">-->
<h1>Tiny Color Chooser Usage</h1>
<div>
Color chooser with default settings
<br/><input id="color_chooser_1" type="hidden"/>
<script type="text/javascript">
new TinyColorChooser("color_chooser_1");
</script>
<pre>new TinyColorChooser("color_chooser_1");</pre>
</div>
<div>
You can setup your own scope of colors
<br/><input id="color_chooser_2" type="hidden"/>
<script type="text/javascript">
new TinyColorChooser("color_chooser_2", {
colors: ["AAA","BBB","CCC","DDD","FFF"],
default_color: "BBB",
popup_height: 26,
popup_width: 102
});
</script>
<pre>new TinyColorChooser("color_chooser_2", {
colors: ["AAA","BBB","CCC","DDD","FFF"],
default_color: "BBB",
popup_height: 26,
popup_width: 102
});</pre>
</div>
</body>
</html>