|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>Dial</title> |
|
|
6 |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
|
8 |
<link rel="stylesheet" href="../assets/css/main.css"> |
|
|
9 |
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
|
10 |
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
|
11 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
12 |
|
|
|
13 |
</head> |
|
|
14 |
<body> |
|
|
15 |
<!-- |
|
|
16 |
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
|
17 |
--> |
|
|
18 |
<div id="doc"> |
|
|
19 |
<div id="hd"> |
|
|
20 |
<h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
<a href="#toc" class="jump">Jump to Table of Contents</a> |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
<h1>Dial</h1> |
|
|
27 |
<div class="yui3-g"> |
|
|
28 |
<div class="yui3-u-3-4"> |
|
|
29 |
<div id="main"> |
|
|
30 |
<div class="content"><div class="intro" style="min-height:181px;"> |
|
|
31 |
<p> |
|
|
32 |
<img src="../assets/dial/images/dial_drag.png" alt="Screenshot of the Dial widget" style="border: 1px solid #bfbfbf; float:right; height:146px; margin: 0 0 8px 8px; width:154px;"> |
|
|
33 |
The Dial widget is a circular value input control. It's like a real-world, analog volume control dial, but with much finer UI control. |
|
|
34 |
Have you ever needed a slider with a 2000 unit range, wanted 1 unit accuracy, but didn't have 2000 pixels of real estate for a slider? |
|
|
35 |
The Dial widget is made for cases like this. |
|
|
36 |
</p> |
|
|
37 |
<p> |
|
|
38 |
The user sets the value of the dial by dragging its handle or clicking on the ring. |
|
|
39 |
</p> |
|
|
40 |
</div> |
|
|
41 |
|
|
|
42 |
<h2 id="getting-started">Getting Started</h2> |
|
|
43 |
|
|
|
44 |
<p> |
|
|
45 |
To include the source files for Dial and its dependencies, first load |
|
|
46 |
the YUI seed file if you haven't already loaded it. |
|
|
47 |
</p> |
|
|
48 |
|
|
|
49 |
<pre class="code prettyprint"><script src="http://yui.yahooapis.com/3.10.3/build/yui/yui-min.js"></script></pre> |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
<p> |
|
|
53 |
Next, create a new YUI instance for your application and populate it with the |
|
|
54 |
modules you need by specifying them as arguments to the <code>YUI().use()</code> method. |
|
|
55 |
YUI will automatically load any dependencies required by the modules you |
|
|
56 |
specify. |
|
|
57 |
</p> |
|
|
58 |
|
|
|
59 |
<pre class="code prettyprint"><script> |
|
|
60 |
// Create a new YUI instance and populate it with the required modules. |
|
|
61 |
YUI().use('dial', function (Y) { |
|
|
62 |
// Dial is available and ready for use. Add implementation |
|
|
63 |
// code here. |
|
|
64 |
}); |
|
|
65 |
</script></pre> |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
<p> |
|
|
69 |
For more information on creating YUI instances and on the |
|
|
70 |
<a href="http://yuilibrary.com/yui/docs/api/classes/YUI.html#method_use"><code>use()</code> method</a>, see the |
|
|
71 |
documentation for the <a href="../yui/index.html">YUI Global Object</a>. |
|
|
72 |
</p> |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
<h2 id="using-the-dial-widget">Using the Dial Widget</h2> |
|
|
76 |
<h3 id="anatomy-of-a-dial">Anatomy of a Dial</h3> |
|
|
77 |
|
|
|
78 |
<h4 id="dom-structure">Dom Structure</h4> |
|
|
79 |
<p> |
|
|
80 |
The major parts of the Dial are: |
|
|
81 |
<ul> |
|
|
82 |
<li>Ring</li> |
|
|
83 |
<li>Marker</li> |
|
|
84 |
<li>User-draggable handle</li> |
|
|
85 |
<li>Reset button</li> |
|
|
86 |
</ul> |
|
|
87 |
The ring is the background element and container of the other elements. |
|
|
88 |
The marker is always displayed at a fixed but configurable distance from the dial center. |
|
|
89 |
Its position around the dial indicates the current value as the user drags the handle or clicks |
|
|
90 |
on the ring to adjust the value. |
|
|
91 |
When not being dragged, the handle occupies the same space as the marker, and the marker is not displayed. |
|
|
92 |
When the keyboard is used for input, the marker is not displayed. |
|
|
93 |
The reset button restores the dial to the initial configuration value. |
|
|
94 |
</p> |
|
|
95 |
<p>A label string and a value string are dislayed above the dial. |
|
|
96 |
</p> |
|
|
97 |
<p>Like other form controls, Dials are inline elements.</p> |
|
|
98 |
<img src="../assets/dial/images/dial_anatomy.png" alt="illustration of the parts of a Dial"> |
|
|
99 |
|
|
|
100 |
<h3 id="markup-structure">Markup Structure</h3> |
|
|
101 |
<p>The final rendered Dial has the markup structure shown below:</p> |
|
|
102 |
|
|
|
103 |
<pre class="code prettyprint"><div id="demo"> |
|
|
104 |
<div class="yui3-widget yui3-dial"> |
|
|
105 |
<div class="yui3-dial-content"> |
|
|
106 |
<div class="yui3-dial-label" id="[custom YUI gen id for screen reader]"> |
|
|
107 |
<span class="yui3-dial-label-string">My label</span> |
|
|
108 |
<span class="yui3-dial-value-string">30</span> |
|
|
109 |
</div> |
|
|
110 |
<div class="yui3-dial-ring"> |
|
|
111 |
<div class="yui3-dial-north-mark"></div> |
|
|
112 |
<div class="yui3-dial-marker yui3-dial-marker-hidden"></div> |
|
|
113 |
<div class="yui3-dial-center-button"> |
|
|
114 |
<div class="yui3-dial-reset-str"></div> |
|
|
115 |
</div> |
|
|
116 |
<div class="yui3-dial-handle yui3-dd-draggable" title="Drag to set value" tabindex="0" role="slider" aria-valuenow="30" aria-valuemin="-220" aria-valuemax="220" aria-valuetext="30" aria-labelledby="[custom YUI gen id for screen reader]"></div> |
|
|
117 |
</div> |
|
|
118 |
</div> |
|
|
119 |
</div> |
|
|
120 |
</div></pre> |
|
|
121 |
|
|
|
122 |
<h3 id="instantiating-the-dial">Instantiating the Dial</h3> |
|
|
123 |
<p> |
|
|
124 |
<strong>Note:</strong> be sure to add the <code>yui3-skin-sam</code> classname to the |
|
|
125 |
page's <code><body></code> element or to a parent element of the widget in order to apply |
|
|
126 |
the default CSS skin. See <a href="http://yuilibrary.com/yui/docs/tutorials/skins/">Understanding Skinning</a>. |
|
|
127 |
</p> |
|
|
128 |
<pre class="code prettyprint"><body class="yui3-skin-sam"> <!-- You need this skin class --></pre> |
|
|
129 |
|
|
|
130 |
<p> |
|
|
131 |
The only markup required to instantiate a <code>Dial</code> is an HTML tag into which the widget will be rendered. |
|
|
132 |
</p> |
|
|
133 |
<pre class="code prettyprint"><div id="demo"></div></pre> |
|
|
134 |
|
|
|
135 |
<p><code>Dial</code> extends the <code>Widget</code> class, following the same pattern |
|
|
136 |
as any widget constructor, accepting a configuration object to |
|
|
137 |
set the initial configuration for the widget.</p> |
|
|
138 |
<p>Some commonly used configuration attributes are shown below.</p> |
|
|
139 |
<pre class="code prettyprint">YUI().use('dial', function(Y) { |
|
|
140 |
var dial = new Y.Dial({ |
|
|
141 |
min:-220, |
|
|
142 |
max:220, |
|
|
143 |
stepsPerRevolution:100, |
|
|
144 |
value: 30, |
|
|
145 |
}); |
|
|
146 |
});</pre> |
|
|
147 |
|
|
|
148 |
<p> |
|
|
149 |
After creating and configuring the new <code>Dial</code>, |
|
|
150 |
Call the <code>render</code> method on your <code>Dial</code> object, passing it |
|
|
151 |
the <code>selector</code> of a container object. |
|
|
152 |
This renders it in the container and makes it usable. |
|
|
153 |
</p> |
|
|
154 |
<pre class="code prettyprint">var dial = new Y.Dial(); |
|
|
155 |
dial.render("#demo");</pre> |
|
|
156 |
|
|
|
157 |
|
|
|
158 |
<h4 id="attributes">Attributes</h4> |
|
|
159 |
<p>The following configuration attributes are provided to define default values for each Dial widget:</p> |
|
|
160 |
|
|
|
161 |
<table> |
|
|
162 |
<thead> |
|
|
163 |
<tr> |
|
|
164 |
<th>Attribute</th> |
|
|
165 |
<th>Description</th> |
|
|
166 |
<th>Default</th> |
|
|
167 |
</tr> |
|
|
168 |
</thead> |
|
|
169 |
<tbody> |
|
|
170 |
<tr> |
|
|
171 |
<td><code>min</code></td> |
|
|
172 |
<td>Minimum input value allowed</td> |
|
|
173 |
<td><code>-220</code></td> |
|
|
174 |
</tr> |
|
|
175 |
<tr> |
|
|
176 |
<td><code>max</code></td> |
|
|
177 |
<td>Maximum input value allowed</td> |
|
|
178 |
<td><code>220</code></td> |
|
|
179 |
</tr> |
|
|
180 |
<tr> |
|
|
181 |
<td><code>diameter</code></td> |
|
|
182 |
<td>Diameter of the dial control in pixels</td> |
|
|
183 |
<td><code>100</code></td> |
|
|
184 |
</tr> |
|
|
185 |
<tr> |
|
|
186 |
<td><code>centerButtonDiameter</code></td> |
|
|
187 |
<td>The diameter of the center button. This value is a percentage of the diameter of the Dial widget.</td> |
|
|
188 |
<td><code>0.5</code></td> |
|
|
189 |
</tr> |
|
|
190 |
<tr> |
|
|
191 |
<td><code>markerDiameter</code></td> |
|
|
192 |
<td>The diameter of the marker that follows the angle of the handle as it is dragged. This value is a percentage of the diameter of the Dial widget.</td> |
|
|
193 |
<td><code>0.1</code></td> |
|
|
194 |
</tr> |
|
|
195 |
<tr> |
|
|
196 |
<td><code>handleDiameter</code></td> |
|
|
197 |
<td>The diameter of the handle that sets the Dial value. This value is a percentage of the diameter of the Dial widget.</td> |
|
|
198 |
<td><code>0.2</code></td> |
|
|
199 |
</tr> |
|
|
200 |
<tr> |
|
|
201 |
<td><code>value</code></td> |
|
|
202 |
<td>The initial value which will set the UI display</td> |
|
|
203 |
<td><code>0</code></td> |
|
|
204 |
</tr> |
|
|
205 |
<tr> |
|
|
206 |
<td><code>minorStep</code></td> |
|
|
207 |
<td>Value is incremented/decremented by this value on arrow key press.</td> |
|
|
208 |
<td><code>1</code></td> |
|
|
209 |
</tr> |
|
|
210 |
<tr> |
|
|
211 |
<td><code>majorStep</code></td> |
|
|
212 |
<td>Value is incremented/decremented by this value on page up/down key press.</td> |
|
|
213 |
<td><code>10</code></td> |
|
|
214 |
</tr> |
|
|
215 |
<tr> |
|
|
216 |
<td><code>stepsPerRevolution</code></td> |
|
|
217 |
<td>One revolution of the dial adds/subtracts this many value units.</td> |
|
|
218 |
<td><code>100</code></td> |
|
|
219 |
</tr> |
|
|
220 |
<tr> |
|
|
221 |
<td><code>decimalPlaces</code></td> |
|
|
222 |
<td>Number of digits to the right of decimal point to retain in the value.</td> |
|
|
223 |
<td><code>0</code></td> |
|
|
224 |
</tr> |
|
|
225 |
<tr> |
|
|
226 |
<td><code>strings</code></td> |
|
|
227 |
<td>Display text strings are isolated in object literals and are handled through YUI's Internationalization utility. |
|
|
228 |
See the examples for ways to replace these strings. |
|
|
229 |
</td> |
|
|
230 |
<td><code>{label:'My label', resetStr:'Reset', tooltipHandle:'Drag to set value'}</code></td> |
|
|
231 |
</tr> |
|
|
232 |
<tr> |
|
|
233 |
<td><code>handleDistance</code></td> |
|
|
234 |
<td>This is the distance from the center of the dial to the center of the marker and handle when at rest. This value is a percentage of the radius of the Dial widget.</td> |
|
|
235 |
<td><code>0.75</code></td> |
|
|
236 |
</tr> |
|
|
237 |
</tbody> |
|
|
238 |
</table> |
|
|
239 |
<h4 id="setting-and-constraining-the-dial-value">Setting and Constraining the Dial Value</h4> |
|
|
240 |
|
|
|
241 |
<h5 id="setting-and-getting-dial-values">Setting and Getting Dial Values</h5> |
|
|
242 |
|
|
|
243 |
<p>Like any input element, the most important thing about a Dial is its <code>value</code>. |
|
|
244 |
<code>value</code> is managed as an attribute.</p> |
|
|
245 |
|
|
|
246 |
<pre class="code prettyprint">// Specify value at construction |
|
|
247 |
var dial = new Y.Dial({ |
|
|
248 |
value : 50 |
|
|
249 |
}); |
|
|
250 |
|
|
|
251 |
// Get and set the value as an attribute |
|
|
252 |
var val = dial.get('value'); |
|
|
253 |
|
|
|
254 |
dial.set('value',val + 10);</pre> |
|
|
255 |
|
|
|
256 |
<h5 id="constraining-dial-values">Constraining Dial Values</h5> |
|
|
257 |
<p>A Dial's <code>value</code> is constrained between the configured <code>min</code> and <code>max</code> attribute values. |
|
|
258 |
Values outside this range are treated as the closer of <code>min</code> or <code>max</code>.</p> |
|
|
259 |
|
|
|
260 |
|
|
|
261 |
<p>Configuring values for <code>max</code> and <code>min</code> that are respectively larger or smaller than the configured |
|
|
262 |
<code>stepsPerRevolution</code> or <code>-stepsPerRevolution</code> can be used to configure a Dial to allow the user to drag the handle more than 360°. |
|
|
263 |
By this means, a <code>Dial</code> can be configured to "go around and around," allowing a very large range of values.</p> |
|
|
264 |
|
|
|
265 |
<pre class="code prettyprint">YUI().use("dial", function(Y) { |
|
|
266 |
|
|
|
267 |
var dial = new Y.Dial({ |
|
|
268 |
min:-520, |
|
|
269 |
max:720, |
|
|
270 |
stepsPerRevolution:100, |
|
|
271 |
value: 30, |
|
|
272 |
}); |
|
|
273 |
dial.render("#demo"); |
|
|
274 |
|
|
|
275 |
});</pre> |
|
|
276 |
|
|
|
277 |
|
|
|
278 |
<h5 id="sync-the-ui-if-the-dial-was-rendered-off-the-dom">Sync the UI If the Dial Was Rendered off the DOM</h5> |
|
|
279 |
<p>If a Dial is rendered off the DOM, you must call the Dial's <code>syncUI()</code> method after attaching it to the DOM |
|
|
280 |
in order for the handle to be placed correctly. |
|
|
281 |
When off DOM, the dimensional information necessary to place the handle is unavailable.</p> |
|
|
282 |
|
|
|
283 |
|
|
|
284 |
<h3 id="css">CSS</h3> |
|
|
285 |
|
|
|
286 |
<p>The core structural CSS for the Dial is shown below. Widths and heights of elements |
|
|
287 |
are computed based on the "diameter" configuration property.</p> |
|
|
288 |
|
|
|
289 |
<pre class="code prettyprint">/* VML implementation for IE */ |
|
|
290 |
v\:oval, |
|
|
291 |
v\:shadow, |
|
|
292 |
v\:fill { |
|
|
293 |
behavior: url(#default#VML); |
|
|
294 |
display: inline-block; |
|
|
295 |
zoom: 1; *display: inline; /* IE < 8: fake inline-block */ |
|
|
296 |
} |
|
|
297 |
.yui3-dial{ |
|
|
298 |
position:relative; |
|
|
299 |
display:-moz-inline-stack; |
|
|
300 |
display:inline-block; |
|
|
301 |
zoom:1; |
|
|
302 |
*display:inline; |
|
|
303 |
} |
|
|
304 |
.yui3-dial-content, |
|
|
305 |
.yui3-dial-ring{ |
|
|
306 |
position:relative; |
|
|
307 |
} |
|
|
308 |
.yui3-dial-handle, |
|
|
309 |
.yui3-dial-marker, |
|
|
310 |
.yui3-dial-center-button, |
|
|
311 |
.yui3-dial-reset-string, |
|
|
312 |
.yui3-dial-handle-vml, |
|
|
313 |
.yui3-dial-marker-vml, |
|
|
314 |
.yui3-dial-center-button-vml, |
|
|
315 |
.yui3-dial-ring-vml v\:oval, |
|
|
316 |
.yui3-dial-center-button-vml v\:oval |
|
|
317 |
{ |
|
|
318 |
position:absolute; |
|
|
319 |
} |
|
|
320 |
.yui3-dial-center-button-vml v\:oval { |
|
|
321 |
font-size:1px; |
|
|
322 |
top:0; |
|
|
323 |
left:0; |
|
|
324 |
} |
|
|
325 |
.yui3-skin-sam .yui3-dial-hidden { |
|
|
326 |
opacity:0; |
|
|
327 |
filter:alpha(opacity=0); |
|
|
328 |
}</pre> |
|
|
329 |
|
|
|
330 |
|
|
|
331 |
|
|
|
332 |
|
|
|
333 |
|
|
|
334 |
</div> |
|
|
335 |
</div> |
|
|
336 |
</div> |
|
|
337 |
|
|
|
338 |
<div class="yui3-u-1-4"> |
|
|
339 |
<div class="sidebar"> |
|
|
340 |
|
|
|
341 |
<div id="toc" class="sidebox"> |
|
|
342 |
<div class="hd"> |
|
|
343 |
<h2 class="no-toc">Table of Contents</h2> |
|
|
344 |
</div> |
|
|
345 |
|
|
|
346 |
<div class="bd"> |
|
|
347 |
<ul class="toc"> |
|
|
348 |
<li> |
|
|
349 |
<a href="#getting-started">Getting Started</a> |
|
|
350 |
</li> |
|
|
351 |
<li> |
|
|
352 |
<a href="#using-the-dial-widget">Using the Dial Widget</a> |
|
|
353 |
<ul class="toc"> |
|
|
354 |
<li> |
|
|
355 |
<a href="#anatomy-of-a-dial">Anatomy of a Dial</a> |
|
|
356 |
<ul class="toc"> |
|
|
357 |
<li> |
|
|
358 |
<a href="#dom-structure">Dom Structure</a> |
|
|
359 |
</li> |
|
|
360 |
</ul> |
|
|
361 |
</li> |
|
|
362 |
<li> |
|
|
363 |
<a href="#markup-structure">Markup Structure</a> |
|
|
364 |
</li> |
|
|
365 |
<li> |
|
|
366 |
<a href="#instantiating-the-dial">Instantiating the Dial</a> |
|
|
367 |
<ul class="toc"> |
|
|
368 |
<li> |
|
|
369 |
<a href="#attributes">Attributes</a> |
|
|
370 |
</li> |
|
|
371 |
<li> |
|
|
372 |
<a href="#setting-and-constraining-the-dial-value">Setting and Constraining the Dial Value</a> |
|
|
373 |
<ul class="toc"> |
|
|
374 |
<li> |
|
|
375 |
<a href="#setting-and-getting-dial-values">Setting and Getting Dial Values</a> |
|
|
376 |
</li> |
|
|
377 |
<li> |
|
|
378 |
<a href="#constraining-dial-values">Constraining Dial Values</a> |
|
|
379 |
</li> |
|
|
380 |
<li> |
|
|
381 |
<a href="#sync-the-ui-if-the-dial-was-rendered-off-the-dom">Sync the UI If the Dial Was Rendered off the DOM</a> |
|
|
382 |
</li> |
|
|
383 |
</ul> |
|
|
384 |
</li> |
|
|
385 |
</ul> |
|
|
386 |
</li> |
|
|
387 |
<li> |
|
|
388 |
<a href="#css">CSS</a> |
|
|
389 |
</li> |
|
|
390 |
</ul> |
|
|
391 |
</li> |
|
|
392 |
</ul> |
|
|
393 |
</div> |
|
|
394 |
</div> |
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
<div class="sidebox"> |
|
|
399 |
<div class="hd"> |
|
|
400 |
<h2 class="no-toc">Examples</h2> |
|
|
401 |
</div> |
|
|
402 |
|
|
|
403 |
<div class="bd"> |
|
|
404 |
<ul class="examples"> |
|
|
405 |
|
|
|
406 |
|
|
|
407 |
<li data-description="Create a Dial from existing markup on the page - a simple use case."> |
|
|
408 |
<a href="dial-basic.html">Basic Dial</a> |
|
|
409 |
</li> |
|
|
410 |
|
|
|
411 |
|
|
|
412 |
|
|
|
413 |
<li data-description="Link a Dial with a text input field."> |
|
|
414 |
<a href="dial-text-input.html">Dial Linked With Text Input</a> |
|
|
415 |
</li> |
|
|
416 |
|
|
|
417 |
|
|
|
418 |
|
|
|
419 |
<li data-description="Use image backgrounds to control the visual display of a Dial."> |
|
|
420 |
<a href="dial-image-background.html">Dial With Image Background</a> |
|
|
421 |
</li> |
|
|
422 |
|
|
|
423 |
|
|
|
424 |
|
|
|
425 |
<li data-description="Use images to surround a Dial instance and provide additional styling."> |
|
|
426 |
<a href="dial-image-surrounding.html">Dial With a Surrounding Image</a> |
|
|
427 |
</li> |
|
|
428 |
|
|
|
429 |
|
|
|
430 |
|
|
|
431 |
<li data-description="This example employs Dial to drive an interactive UI."> |
|
|
432 |
<a href="dial-interactive.html">Dial With Interactive UI</a> |
|
|
433 |
</li> |
|
|
434 |
|
|
|
435 |
|
|
|
436 |
|
|
|
437 |
<li data-description="This example shows how to use Dial to animate an image sprite."> |
|
|
438 |
<a href="duck.html">Image Sprite Animation with Dial</a> |
|
|
439 |
</li> |
|
|
440 |
|
|
|
441 |
|
|
|
442 |
|
|
|
443 |
|
|
|
444 |
</ul> |
|
|
445 |
</div> |
|
|
446 |
</div> |
|
|
447 |
|
|
|
448 |
|
|
|
449 |
|
|
|
450 |
<div class="sidebox"> |
|
|
451 |
<div class="hd"> |
|
|
452 |
<h2 class="no-toc">Examples That Use This Component</h2> |
|
|
453 |
</div> |
|
|
454 |
|
|
|
455 |
<div class="bd"> |
|
|
456 |
<ul class="examples"> |
|
|
457 |
|
|
|
458 |
|
|
|
459 |
|
|
|
460 |
|
|
|
461 |
|
|
|
462 |
|
|
|
463 |
|
|
|
464 |
|
|
|
465 |
|
|
|
466 |
|
|
|
467 |
|
|
|
468 |
|
|
|
469 |
|
|
|
470 |
|
|
|
471 |
<li data-description="Use the HSL color picker to select a new color. Then chose the color type you like best."> |
|
|
472 |
<a href="../color/hsl-picker.html">HSL Color Picker</a> |
|
|
473 |
</li> |
|
|
474 |
|
|
|
475 |
|
|
|
476 |
</ul> |
|
|
477 |
</div> |
|
|
478 |
</div> |
|
|
479 |
|
|
|
480 |
</div> |
|
|
481 |
</div> |
|
|
482 |
</div> |
|
|
483 |
</div> |
|
|
484 |
|
|
|
485 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
486 |
<script>prettyPrint();</script> |
|
|
487 |
|
|
|
488 |
<script> |
|
|
489 |
YUI.Env.Tests = { |
|
|
490 |
examples: [], |
|
|
491 |
project: '../assets', |
|
|
492 |
assets: '../assets/dial', |
|
|
493 |
name: 'dial', |
|
|
494 |
title: 'Dial', |
|
|
495 |
newWindow: '', |
|
|
496 |
auto: false |
|
|
497 |
}; |
|
|
498 |
YUI.Env.Tests.examples.push('dial-basic'); |
|
|
499 |
YUI.Env.Tests.examples.push('dial-text-input'); |
|
|
500 |
YUI.Env.Tests.examples.push('dial-image-background'); |
|
|
501 |
YUI.Env.Tests.examples.push('dial-image-surrounding'); |
|
|
502 |
YUI.Env.Tests.examples.push('dial-interactive'); |
|
|
503 |
YUI.Env.Tests.examples.push('duck'); |
|
|
504 |
YUI.Env.Tests.examples.push('hsl-picker'); |
|
|
505 |
|
|
|
506 |
</script> |
|
|
507 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
508 |
|
|
|
509 |
|
|
|
510 |
|
|
|
511 |
</body> |
|
|
512 |
</html> |