2150 |
mathias |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
2 |
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
3 |
<html>
|
|
|
4 |
<head>
|
|
|
5 |
<title>Dojox ColorPicker Test</title>
|
|
|
6 |
<style type="text/css">
|
|
|
7 |
@import "../../../dojo/resources/dojo.css";
|
|
|
8 |
@import "../../../dijit/themes/tundra/tundra.css";
|
|
|
9 |
@import "../../../dijit/themes/dijit.css";
|
|
|
10 |
@import "../../../dijit/tests/css/dijitTests.css";
|
|
|
11 |
@import "../ColorPicker/ColorPicker.css";
|
|
|
12 |
</style>
|
|
|
13 |
|
|
|
14 |
<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: true"></script>
|
|
|
15 |
<script type="text/javascript" src="../ColorPicker.js"></script>
|
|
|
16 |
<script type="text/javascript">
|
|
|
17 |
// dojo.require("dojox.widget.ColorPicker");
|
|
|
18 |
dojo.require("dojo.parser"); // scan page for widgets and instantiate them
|
|
|
19 |
|
|
|
20 |
</script>
|
|
|
21 |
</head>
|
|
|
22 |
<body class="tundra">
|
|
|
23 |
|
|
|
24 |
<h1 class="testTitle">Dojox ColorPicker test</h1>
|
|
|
25 |
|
|
|
26 |
<h3>defaults:</h3>
|
|
|
27 |
<div id="picker" dojoType="dojox.widget.ColorPicker"
|
|
|
28 |
onChange="console.log('new val:',this.value)"
|
|
|
29 |
></div>
|
|
|
30 |
|
|
|
31 |
<h3>no animation, no hsv, no rgb, no webSafe info:</h3>
|
|
|
32 |
<div id="pickerToo" dojoType="dojox.widget.ColorPicker"
|
|
|
33 |
animatePoint="false"
|
|
|
34 |
showHsv="false"
|
|
|
35 |
showRgb="false"
|
|
|
36 |
webSafe="false"
|
|
|
37 |
onChange="console.log('new val:',this.value)"
|
|
|
38 |
></div>
|
|
|
39 |
|
|
|
40 |
</body>
|
|
|
41 |
</html>
|