|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>Example: Animated Drop Targets</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>Example: Animated Drop Targets</h1> |
|
|
27 |
<div class="yui3-g"> |
|
|
28 |
<div class="yui3-u-3-4"> |
|
|
29 |
<div id="main"> |
|
|
30 |
<div class="content"><div class="intro"> |
|
|
31 |
<p>This example will show you how to make an animated node a Drop target.</p> |
|
|
32 |
</div> |
|
|
33 |
|
|
|
34 |
<div class="example newwindow"> |
|
|
35 |
<a href="anim-drop-example.html" target="_blank" class="button"> |
|
|
36 |
View Example in New Window |
|
|
37 |
</a> |
|
|
38 |
</div> |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
<h3 id="setting-up-the-html">Setting up the HTML</h3> |
|
|
43 |
<p>First we will create our HTML.</p> |
|
|
44 |
|
|
|
45 |
<pre class="code prettyprint"><div id="dock"></div> |
|
|
46 |
|
|
|
47 |
<div id="drag">Drag #1</div> |
|
|
48 |
|
|
|
49 |
<div id="anim1" class="anim">Anim #1</div> |
|
|
50 |
<div id="anim2" class="anim">Anim #2</div> |
|
|
51 |
<div id="anim3" class="anim">Anim #3</div> |
|
|
52 |
<div id="anim4" class="anim">Anim #4</div> |
|
|
53 |
<div id="anim5" class="anim">Anim #5</div></pre> |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
<p>Now we give that HTML some CSS to make it visible.</p> |
|
|
57 |
|
|
|
58 |
<pre class="code prettyprint">.anim { |
|
|
59 |
position: relative; |
|
|
60 |
height: 50px; |
|
|
61 |
width: 100px; |
|
|
62 |
border: 1px solid black; |
|
|
63 |
background-color: #00B8BF; |
|
|
64 |
top: 100px; |
|
|
65 |
} |
|
|
66 |
#drag { |
|
|
67 |
height: 50px; |
|
|
68 |
width: 50px; |
|
|
69 |
border: 1px solid black; |
|
|
70 |
background-color: #004C6D; |
|
|
71 |
color: white; |
|
|
72 |
cursor: move; |
|
|
73 |
z-index: 5; |
|
|
74 |
} |
|
|
75 |
#dock { |
|
|
76 |
height: 600px; |
|
|
77 |
width: 75px; |
|
|
78 |
background-color: #D00050; |
|
|
79 |
border: 1px solid black; |
|
|
80 |
position: absolute; |
|
|
81 |
top: 5px; |
|
|
82 |
right: 0px; |
|
|
83 |
} |
|
|
84 |
.anim.yui3-dd-drop-over { |
|
|
85 |
background-color: #EDFF9F; |
|
|
86 |
} |
|
|
87 |
.anim.done { |
|
|
88 |
background-color: white; |
|
|
89 |
} |
|
|
90 |
#drag1.yui3-dd-drag-over { |
|
|
91 |
opacity: .5; |
|
|
92 |
filter: alpha(opacity=50); |
|
|
93 |
}</pre> |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
<h3 id="setting-up-the-yui-instance">Setting up the YUI Instance</h3> |
|
|
97 |
<p>Now we need to create our YUI instance and tell it to load the <code>dd-drop</code>, <code>dd-plugin</code>, <code>dd-drop-plugin</code> and <code>anim</code> modules.</p> |
|
|
98 |
|
|
|
99 |
<pre class="code prettyprint">YUI().use('dd-drop', 'anim', 'dd-plugin', 'dd-drop-plugin');</pre> |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
<h3 id="making-the-node-draggable">Making the Node draggable</h3> |
|
|
103 |
<p>Now that we have a YUI instance with the modules loaded, we need to instantiate the <code>Drag</code> instance on this Node.</p> |
|
|
104 |
<p>In this example we will be using Node plugins to accomplish our tasks.</p> |
|
|
105 |
|
|
|
106 |
<pre class="code prettyprint">YUI().use('dd-drop', 'anim', 'dd-plugin', 'dd-drop-plugin', function(Y) { |
|
|
107 |
//Get the node #drag |
|
|
108 |
var d = Y.one('#drag'); |
|
|
109 |
d.plug(Y.Plugin.Drag, { dragMode: 'intersect' }); |
|
|
110 |
});</pre> |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
<h3 id="animating-the-nodes">Animating the Nodes</h3> |
|
|
114 |
<p>Now we will set up the Animation sequence that we want to run.</p> |
|
|
115 |
|
|
|
116 |
<pre class="code prettyprint">//Get all the div's with the class anim |
|
|
117 |
var anims = Y.Node.all('div.anim'); |
|
|
118 |
var counter = 0; |
|
|
119 |
anims.each(function(v, k, items) { |
|
|
120 |
//Get a reference to the Node instance |
|
|
121 |
var a = v; |
|
|
122 |
counter++; |
|
|
123 |
//Add the FX plugin |
|
|
124 |
a.plug(Y.Plugin.NodeFX); |
|
|
125 |
//Add the Drop plugin |
|
|
126 |
a.plug(Y.Plugin.Drop); |
|
|
127 |
|
|
|
128 |
//Set the attributes on the animation |
|
|
129 |
a.fx.setAttrs({ |
|
|
130 |
from: { |
|
|
131 |
left: 0 |
|
|
132 |
}, |
|
|
133 |
to: { |
|
|
134 |
curve: function() { |
|
|
135 |
var points = [], |
|
|
136 |
n = 10; |
|
|
137 |
|
|
|
138 |
for (var i = 0; i < n; ++i) { |
|
|
139 |
points.push([ |
|
|
140 |
Math.floor(Math.random()*Y.DOM.winWidth() - 60 - a.get('offsetWidth')), |
|
|
141 |
Math.floor(Math.random()*Y.DOM.winHeight() - a.get('offsetHeight')) |
|
|
142 |
]); |
|
|
143 |
} |
|
|
144 |
return points; |
|
|
145 |
} |
|
|
146 |
}, |
|
|
147 |
//Do the animation 20 times |
|
|
148 |
iterations: 20, |
|
|
149 |
//Alternate it so it "bounces" across the screen |
|
|
150 |
direction: 'alternate', |
|
|
151 |
//Give all of them a different duration so we get different speeds. |
|
|
152 |
duration: ((counter * 1.75) + 1) |
|
|
153 |
}); |
|
|
154 |
});</pre> |
|
|
155 |
|
|
|
156 |
|
|
|
157 |
<h3 id="making-the-node-a-target">Making the Node a Target</h3> |
|
|
158 |
<p>Using the <code>dd-drop-plugin</code>, we now need to make this animated Node a Drop Target.</p> |
|
|
159 |
<p>To do that, we need to add the plugin after the fx plugin.</p> |
|
|
160 |
|
|
|
161 |
<pre class="code prettyprint">//Add the FX plugin |
|
|
162 |
a.plug(Y.Plugin.NodeFX); |
|
|
163 |
//Add the Drop plugin |
|
|
164 |
a.plug(Y.Plugin.Drop);</pre> |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
<h3 id="syncing-the-target-with-the-animation">Syncing the Target with the Animation</h3> |
|
|
168 |
<p>The Drop Target needs to be in sync with the animation, since we are changing the height, width, top and left style.</p> |
|
|
169 |
<p>We do this by adding a listener to the <code>tween</code> event on the animation instance.</p> |
|
|
170 |
|
|
|
171 |
<pre class="code prettyprint">//on tween of the original anim, we need to sync the drop's shim. |
|
|
172 |
a.fx.on('tween', function() { |
|
|
173 |
//Do we have an active Drag? |
|
|
174 |
if (Y.DD.DDM.activeDrag) { |
|
|
175 |
//Size this shim |
|
|
176 |
this.drop.sizeShim(); |
|
|
177 |
//Force an over target check since we might not be moving the mouse. |
|
|
178 |
Y.Lang.later(0, a, function() { |
|
|
179 |
this.drop._handleTargetOver(); |
|
|
180 |
}); |
|
|
181 |
} |
|
|
182 |
}, a);</pre> |
|
|
183 |
|
|
|
184 |
|
|
|
185 |
<h3 id="full-example-source">Full example source</h3> |
|
|
186 |
|
|
|
187 |
<pre class="code prettyprint">YUI().use('dd', 'dd-plugin', 'dd-drop-plugin', 'anim', function(Y) { |
|
|
188 |
//Get the node #drag |
|
|
189 |
var d = Y.one('#drag'); |
|
|
190 |
d.plug(Y.Plugin.Drag, { dragMode: 'intersect' }); |
|
|
191 |
|
|
|
192 |
//Get all the divs with the class anim |
|
|
193 |
var anims = Y.Node.all('div.anim'); |
|
|
194 |
var counter = 0; |
|
|
195 |
anims.each(function(v, k) { |
|
|
196 |
//Get a reference to the Node instance |
|
|
197 |
var a = v; |
|
|
198 |
counter++; |
|
|
199 |
//Add the FX plugin |
|
|
200 |
a.plug(Y.Plugin.NodeFX); |
|
|
201 |
//Add the Drop plugin |
|
|
202 |
a.plug(Y.Plugin.Drop); |
|
|
203 |
|
|
|
204 |
//Set the attributes on the animation |
|
|
205 |
a.fx.setAttrs({ |
|
|
206 |
from: { |
|
|
207 |
left: 0 |
|
|
208 |
}, |
|
|
209 |
to: { |
|
|
210 |
curve: function() { |
|
|
211 |
var points = [], |
|
|
212 |
n = 10; |
|
|
213 |
|
|
|
214 |
for (var i = 0; i < n; ++i) { |
|
|
215 |
points.push([ |
|
|
216 |
Math.floor(Math.random()*Y.DOM.winWidth() - 60 - a.get('offsetWidth')), |
|
|
217 |
Math.floor(Math.random()*Y.DOM.winHeight() - a.get('offsetHeight')) |
|
|
218 |
]); |
|
|
219 |
} |
|
|
220 |
return points; |
|
|
221 |
} |
|
|
222 |
}, |
|
|
223 |
//Do the animation 20 times |
|
|
224 |
iterations: 20, |
|
|
225 |
//Alternate it so it "bounces" across the screen |
|
|
226 |
direction: 'alternate', |
|
|
227 |
//Give all of them a different duration so we get different speeds. |
|
|
228 |
duration: ((counter * 1.75) + 1) |
|
|
229 |
}); |
|
|
230 |
|
|
|
231 |
//When this drop is entered, pause the fx |
|
|
232 |
a.drop.on('drop:enter', function() { |
|
|
233 |
this.fx.pause(); |
|
|
234 |
}, a); |
|
|
235 |
//When the drop is exited, run the fx again |
|
|
236 |
a.drop.on('drop:exit', function() { |
|
|
237 |
this.fx.run(); |
|
|
238 |
}, a); |
|
|
239 |
//When a drop is on the node, do something special |
|
|
240 |
a.drop.on('drop:hit', function(e) { |
|
|
241 |
//Stop the animation |
|
|
242 |
this.fx.stop(); |
|
|
243 |
//remove the tween listener |
|
|
244 |
this.fx.unsubscribeAll('tween'); |
|
|
245 |
//move it to the dock |
|
|
246 |
this.fx.setAttrs({ |
|
|
247 |
from: { |
|
|
248 |
opacity: 1 |
|
|
249 |
}, |
|
|
250 |
to: { |
|
|
251 |
height: 50, |
|
|
252 |
width: 50, |
|
|
253 |
left: function() { |
|
|
254 |
var dW = Y.one('body').get('viewportRegion').right; |
|
|
255 |
return ((dW - 60)); //Minus 60 for the dock |
|
|
256 |
}, |
|
|
257 |
top: 15, |
|
|
258 |
opacity: .5 |
|
|
259 |
}, |
|
|
260 |
direction: 'normal', |
|
|
261 |
iterations: 1, |
|
|
262 |
duration: .5, |
|
|
263 |
//We are using reverse above for the "bouncing", reset it here. |
|
|
264 |
reverse: false |
|
|
265 |
}); |
|
|
266 |
|
|
|
267 |
//On end, add a class and destroy the target |
|
|
268 |
this.fx.on('end', function() { |
|
|
269 |
this.drop.get('node').addClass('done'); |
|
|
270 |
this.drop.destroy(); |
|
|
271 |
}, this); |
|
|
272 |
//Run this animation |
|
|
273 |
this.fx.run(); |
|
|
274 |
|
|
|
275 |
//others that were dropped on. |
|
|
276 |
Y.each(e.others, function(v, k) { |
|
|
277 |
var node = v.get('node'); |
|
|
278 |
node.fx.run(); |
|
|
279 |
}); |
|
|
280 |
|
|
|
281 |
}, a); |
|
|
282 |
|
|
|
283 |
//on tween of the original anim, we need to sync the drop's shim. |
|
|
284 |
a.fx.on('tween', function() { |
|
|
285 |
//Do we have an active Drag? |
|
|
286 |
if (Y.DD.DDM.activeDrag) { |
|
|
287 |
//Size this shim |
|
|
288 |
this.drop.sizeShim(); |
|
|
289 |
//Force an over target check since we might not be moving the mouse. |
|
|
290 |
Y.Lang.later(0, a, function() { |
|
|
291 |
this.drop._handleTargetOver(); |
|
|
292 |
}); |
|
|
293 |
} |
|
|
294 |
}, a); |
|
|
295 |
|
|
|
296 |
a.fx.run(); |
|
|
297 |
}); |
|
|
298 |
});</pre> |
|
|
299 |
|
|
|
300 |
</div> |
|
|
301 |
</div> |
|
|
302 |
</div> |
|
|
303 |
|
|
|
304 |
<div class="yui3-u-1-4"> |
|
|
305 |
<div class="sidebar"> |
|
|
306 |
|
|
|
307 |
<div id="toc" class="sidebox"> |
|
|
308 |
<div class="hd"> |
|
|
309 |
<h2 class="no-toc">Table of Contents</h2> |
|
|
310 |
</div> |
|
|
311 |
|
|
|
312 |
<div class="bd"> |
|
|
313 |
<ul class="toc"> |
|
|
314 |
<li> |
|
|
315 |
<a href="#setting-up-the-html">Setting up the HTML</a> |
|
|
316 |
</li> |
|
|
317 |
<li> |
|
|
318 |
<a href="#setting-up-the-yui-instance">Setting up the YUI Instance</a> |
|
|
319 |
</li> |
|
|
320 |
<li> |
|
|
321 |
<a href="#making-the-node-draggable">Making the Node draggable</a> |
|
|
322 |
</li> |
|
|
323 |
<li> |
|
|
324 |
<a href="#animating-the-nodes">Animating the Nodes</a> |
|
|
325 |
</li> |
|
|
326 |
<li> |
|
|
327 |
<a href="#making-the-node-a-target">Making the Node a Target</a> |
|
|
328 |
</li> |
|
|
329 |
<li> |
|
|
330 |
<a href="#syncing-the-target-with-the-animation">Syncing the Target with the Animation</a> |
|
|
331 |
</li> |
|
|
332 |
<li> |
|
|
333 |
<a href="#full-example-source">Full example source</a> |
|
|
334 |
</li> |
|
|
335 |
</ul> |
|
|
336 |
</div> |
|
|
337 |
</div> |
|
|
338 |
|
|
|
339 |
|
|
|
340 |
|
|
|
341 |
<div class="sidebox"> |
|
|
342 |
<div class="hd"> |
|
|
343 |
<h2 class="no-toc">Examples</h2> |
|
|
344 |
</div> |
|
|
345 |
|
|
|
346 |
<div class="bd"> |
|
|
347 |
<ul class="examples"> |
|
|
348 |
|
|
|
349 |
|
|
|
350 |
<li data-description="A simple drag interaction that doesn't require a drop interaction."> |
|
|
351 |
<a href="simple-drag.html">Simple Drag</a> |
|
|
352 |
</li> |
|
|
353 |
|
|
|
354 |
|
|
|
355 |
|
|
|
356 |
<li data-description="How to apply the Drag Plugin to a node."> |
|
|
357 |
<a href="drag-plugin.html">Drag - Node plugin</a> |
|
|
358 |
</li> |
|
|
359 |
|
|
|
360 |
|
|
|
361 |
|
|
|
362 |
<li data-description="A simple proxy drag interaction that doesn't require a drop interaction."> |
|
|
363 |
<a href="proxy-drag.html">Drag - Proxy</a> |
|
|
364 |
</li> |
|
|
365 |
|
|
|
366 |
|
|
|
367 |
|
|
|
368 |
<li data-description="How to constrain a draggable Node to another Node's region."> |
|
|
369 |
<a href="constrained-drag.html">Drag - Constrained to a Region</a> |
|
|
370 |
</li> |
|
|
371 |
|
|
|
372 |
|
|
|
373 |
|
|
|
374 |
<li data-description="Using interaction groups, this example demonstrates how to tie into the Drag & Drop Utility's interesting moments to provide visual affordances for the current drag operation."> |
|
|
375 |
<a href="groups-drag.html">Drag - Interaction Groups</a> |
|
|
376 |
</li> |
|
|
377 |
|
|
|
378 |
|
|
|
379 |
|
|
|
380 |
<li data-description="The use of the drag shim when dragging nodes over other troublesome nodes."> |
|
|
381 |
<a href="shim-drag.html">Using the Drag Shim</a> |
|
|
382 |
</li> |
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
<li data-description="How to use the Drop Target events to code your application."> |
|
|
387 |
<a href="drop-code.html">Using Drop Based Coding</a> |
|
|
388 |
</li> |
|
|
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
<li data-description="How you can use the DD Scroll plugin to scroll the browser window as you drag."> |
|
|
393 |
<a href="winscroll.html">Window Scrolling</a> |
|
|
394 |
</li> |
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
<li data-description="How to use DD.Delegate to create a scalable solution which supports multiple draggable items."> |
|
|
399 |
<a href="delegate.html">Drag Delegation</a> |
|
|
400 |
</li> |
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
<li data-description="Using DD.Delegate to support dragging multiple items and dropping them onto a Drop Target."> |
|
|
405 |
<a href="delegate-drop.html">Drag Delegation with a Drop Target</a> |
|
|
406 |
</li> |
|
|
407 |
|
|
|
408 |
|
|
|
409 |
|
|
|
410 |
<li data-description="How to use Drag plugins with a DD Delegate based solution."> |
|
|
411 |
<a href="delegate-plugins.html">Using Drag Plugins with Delegate</a> |
|
|
412 |
</li> |
|
|
413 |
|
|
|
414 |
|
|
|
415 |
|
|
|
416 |
<li data-description="This example shows how to make a sortable list using Custom Event Bubbling."> |
|
|
417 |
<a href="list-drag.html">List Reorder w/Bubbling</a> |
|
|
418 |
</li> |
|
|
419 |
|
|
|
420 |
|
|
|
421 |
|
|
|
422 |
<li data-description="This example shows how to make a sortable list using Custom Event Bubbling and Node Scrolling."> |
|
|
423 |
<a href="scroll-list.html">List Reorder w/Scrolling</a> |
|
|
424 |
</li> |
|
|
425 |
|
|
|
426 |
|
|
|
427 |
|
|
|
428 |
<li data-description="How to make an animated node a Drop target."> |
|
|
429 |
<a href="anim-drop.html">Animated Drop Targets</a> |
|
|
430 |
</li> |
|
|
431 |
|
|
|
432 |
|
|
|
433 |
|
|
|
434 |
<li data-description="Example Photo Browser application."> |
|
|
435 |
<a href="photo-browser.html">Photo Browser</a> |
|
|
436 |
</li> |
|
|
437 |
|
|
|
438 |
|
|
|
439 |
|
|
|
440 |
<li data-description="Portal style example using Drag & Drop Event Bubbling and Animation."> |
|
|
441 |
<a href="portal-drag.html">Portal Style Example</a> |
|
|
442 |
</li> |
|
|
443 |
|
|
|
444 |
|
|
|
445 |
|
|
|
446 |
|
|
|
447 |
|
|
|
448 |
|
|
|
449 |
</ul> |
|
|
450 |
</div> |
|
|
451 |
</div> |
|
|
452 |
|
|
|
453 |
|
|
|
454 |
|
|
|
455 |
<div class="sidebox"> |
|
|
456 |
<div class="hd"> |
|
|
457 |
<h2 class="no-toc">Examples That Use This Component</h2> |
|
|
458 |
</div> |
|
|
459 |
|
|
|
460 |
<div class="bd"> |
|
|
461 |
<ul class="examples"> |
|
|
462 |
|
|
|
463 |
|
|
|
464 |
|
|
|
465 |
|
|
|
466 |
|
|
|
467 |
|
|
|
468 |
|
|
|
469 |
|
|
|
470 |
|
|
|
471 |
|
|
|
472 |
|
|
|
473 |
|
|
|
474 |
|
|
|
475 |
|
|
|
476 |
|
|
|
477 |
|
|
|
478 |
|
|
|
479 |
|
|
|
480 |
|
|
|
481 |
|
|
|
482 |
|
|
|
483 |
|
|
|
484 |
|
|
|
485 |
|
|
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
|
489 |
|
|
|
490 |
|
|
|
491 |
|
|
|
492 |
|
|
|
493 |
|
|
|
494 |
|
|
|
495 |
|
|
|
496 |
<li data-description="Working with multiple YUI instances."> |
|
|
497 |
<a href="../yui/yui-multi.html">Multiple Instances</a> |
|
|
498 |
</li> |
|
|
499 |
|
|
|
500 |
|
|
|
501 |
|
|
|
502 |
<li data-description="Use StyleSheet to adjust the CSS rules applying a page theme from user input"> |
|
|
503 |
<a href="../stylesheet/stylesheet-theme.html">Adjusting a Page Theme on the Fly</a> |
|
|
504 |
</li> |
|
|
505 |
|
|
|
506 |
|
|
|
507 |
</ul> |
|
|
508 |
</div> |
|
|
509 |
</div> |
|
|
510 |
|
|
|
511 |
</div> |
|
|
512 |
</div> |
|
|
513 |
</div> |
|
|
514 |
</div> |
|
|
515 |
|
|
|
516 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
517 |
<script>prettyPrint();</script> |
|
|
518 |
|
|
|
519 |
<script> |
|
|
520 |
YUI.Env.Tests = { |
|
|
521 |
examples: [], |
|
|
522 |
project: '../assets', |
|
|
523 |
assets: '../assets/dd', |
|
|
524 |
name: 'anim-drop', |
|
|
525 |
title: 'Animated Drop Targets', |
|
|
526 |
newWindow: 'true', |
|
|
527 |
auto: false |
|
|
528 |
}; |
|
|
529 |
YUI.Env.Tests.examples.push('simple-drag'); |
|
|
530 |
YUI.Env.Tests.examples.push('drag-plugin'); |
|
|
531 |
YUI.Env.Tests.examples.push('proxy-drag'); |
|
|
532 |
YUI.Env.Tests.examples.push('constrained-drag'); |
|
|
533 |
YUI.Env.Tests.examples.push('groups-drag'); |
|
|
534 |
YUI.Env.Tests.examples.push('shim-drag'); |
|
|
535 |
YUI.Env.Tests.examples.push('drop-code'); |
|
|
536 |
YUI.Env.Tests.examples.push('winscroll'); |
|
|
537 |
YUI.Env.Tests.examples.push('delegate'); |
|
|
538 |
YUI.Env.Tests.examples.push('delegate-drop'); |
|
|
539 |
YUI.Env.Tests.examples.push('delegate-plugins'); |
|
|
540 |
YUI.Env.Tests.examples.push('list-drag'); |
|
|
541 |
YUI.Env.Tests.examples.push('scroll-list'); |
|
|
542 |
YUI.Env.Tests.examples.push('anim-drop'); |
|
|
543 |
YUI.Env.Tests.examples.push('photo-browser'); |
|
|
544 |
YUI.Env.Tests.examples.push('portal-drag'); |
|
|
545 |
YUI.Env.Tests.examples.push('yui-multi'); |
|
|
546 |
YUI.Env.Tests.examples.push('stylesheet-theme'); |
|
|
547 |
|
|
|
548 |
</script> |
|
|
549 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
550 |
|
|
|
551 |
|
|
|
552 |
|
|
|
553 |
</body> |
|
|
554 |
</html> |