| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|---|
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|---|
| 4 | <head> |
|---|
| 5 | <title>script.aculo.us Drag and drop functional test file</title> |
|---|
| 6 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|---|
| 7 | <script src="../../lib/prototype.js" type="text/javascript"></script> |
|---|
| 8 | <script src="../../src/scriptaculous.js" type="text/javascript"></script> |
|---|
| 9 | <script src="../../src/unittest.js" type="text/javascript"></script> |
|---|
| 10 | </head> |
|---|
| 11 | <body style="background-color:#eee;"> |
|---|
| 12 | <div style="position:relative;margin-left:100px;top:40px;background-color:white;"> |
|---|
| 13 | (inside position:relative container) |
|---|
| 14 | <h1>script.aculo.us Drag and drop functional test file</h1> |
|---|
| 15 | |
|---|
| 16 | <h2>Draggables/Droppables</h2> |
|---|
| 17 | |
|---|
| 18 | <div id="absolute_positioned_element" class="box1" style="width:150px;height:150px;background:#bbf;"> |
|---|
| 19 | <b>Ghosting effect</b> |
|---|
| 20 | <input type="text" value="blah"/> |
|---|
| 21 | <div id="hurradiegams">test!</div> |
|---|
| 22 | <br/> |
|---|
| 23 | </div> |
|---|
| 24 | |
|---|
| 25 | <a href="#" onclick="alert($('hurradiegams').innerHTML); return false;">alert contents of test div</a> |
|---|
| 26 | |
|---|
| 27 | <div id="absolute_positioned_element2" class="box1" style="width:150px;height:150px;background:#bbf;"> |
|---|
| 28 | <span id="handle1">Ghost effect</span><br/> |
|---|
| 29 | </div> |
|---|
| 30 | |
|---|
| 31 | <script type="text/javascript" language="javascript" charset="utf-8"> |
|---|
| 32 | // <![CDATA[ |
|---|
| 33 | Position.includeScrollOffsets = true; |
|---|
| 34 | |
|---|
| 35 | new Draggable('absolute_positioned_element',{ghosting: true}); |
|---|
| 36 | new Draggable('absolute_positioned_element2',{ghosting: true, revert:true}); |
|---|
| 37 | // ]]> |
|---|
| 38 | </script> |
|---|
| 39 | </div> |
|---|
| 40 | </body> |
|---|
| 41 | </html> |
|---|