forked from mattfarina/farbtastic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
54 lines (47 loc) · 1.58 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" charset="utf-8" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<!--[if IE]><script type="text/javascript" src="http://explorercanvas.googlecode.com/svn/tags/m3/excanvas.compiled.js"></script><![endif]-->
<title>Farbtastic v2</title>
<script type="text/javascript" charset="utf-8" src="../src/farbtastic.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
$('#colorpicker1').farbtastic('#color1');
$('#colorpicker2').farbtastic({ callback: '#color2', width: 150 });
});
</script>
<style type="text/css" media="screen">
.colorpicker {
float: left;
margin: 1em;
}
form {
margin: 2em 1em 0 1;
text-align: center;
}
body {
font-family: "Lucida Grande", "Lucida Unicode", "Lucida Sans", sans-serif;
}
p {
clear: both;
}
</style>
</head>
<body>
<h1>Farbtastic 2.0 alpha</h1>
<h2>Canvas/JS. No external CSS, no images.</h2>
<h3>Note: this is an alpha version, not suitable for use on production websites.</h3>
<div class="colorpicker">
<div id="colorpicker1"></div>
<form><input type="text" id="color1" /></form>
</div>
<div class="colorpicker">
<div id="colorpicker2"></div>
<form><input type="text" id="color2" /></form>
</div>
<p><a href="http://acko.net/">› Acko.net</a></p>
</body>
</html>