| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|---|
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
|---|
| 3 | |
|---|
| 4 | <html> |
|---|
| 5 | <head> |
|---|
| 6 | <title>lfx</title> |
|---|
| 7 | |
|---|
| 8 | <style> |
|---|
| 9 | body { |
|---|
| 10 | background-color: #DEDEDE; |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | .box { |
|---|
| 14 | font-family: Trebuchet MS, Trebuchet, Bitstream Vera Sans, Verdana, sans-serif; |
|---|
| 15 | font-size: 12px; |
|---|
| 16 | line-height: 17px; |
|---|
| 17 | color: #292929; |
|---|
| 18 | width: 300px; |
|---|
| 19 | border: 1px solid #BABABA; |
|---|
| 20 | background-color: white; |
|---|
| 21 | padding-left: 10px; |
|---|
| 22 | padding-right: 10px; |
|---|
| 23 | margin-left: 10px; |
|---|
| 24 | -moz-border-radius: 12px; |
|---|
| 25 | -webkit-border-radius: 10px; |
|---|
| 26 | border-radius: 10px; |
|---|
| 27 | -moz-box-sizing: border-box; |
|---|
| 28 | -opera-sizing: border-box; |
|---|
| 29 | -webkit-box-sizing: border-box; |
|---|
| 30 | -khtml-box-sizing: border-box; |
|---|
| 31 | box-sizing: border-box; |
|---|
| 32 | } |
|---|
| 33 | </style> |
|---|
| 34 | <script type="text/javascript"> |
|---|
| 35 | var djConfig = { |
|---|
| 36 | isDebug: true |
|---|
| 37 | |
|---|
| 38 | }; |
|---|
| 39 | </script> |
|---|
| 40 | <script type="text/javascript" src="../../dojo.js"></script> |
|---|
| 41 | <script type="text/javascript"> |
|---|
| 42 | dojo.require("dojo.lfx.*"); |
|---|
| 43 | dojo.require("dojo.lfx.extras"); |
|---|
| 44 | dojo.require("dojo.event.*"); |
|---|
| 45 | |
|---|
| 46 | </script> |
|---|
| 47 | </head> |
|---|
| 48 | <body> |
|---|
| 49 | <div> |
|---|
| 50 | Box 1: |
|---|
| 51 | <button onclick="dojo.lfx.html.wipeIn('one', 1000).play();">wipe in</button> |
|---|
| 52 | <button onclick="dojo.lfx.html.wipeOut('one', 1000).play();">wipe out</button> |
|---|
| 53 | </div> |
|---|
| 54 | <div> |
|---|
| 55 | Box 2: |
|---|
| 56 | <button onclick="dojo.lfx.html.wipeIn('two', 1000).play();">wipe in</button> |
|---|
| 57 | <button onclick="dojo.lfx.html.wipeOut('two', 1000).play();">wipe out</button> |
|---|
| 58 | </div> |
|---|
| 59 | <div> |
|---|
| 60 | Box 3: |
|---|
| 61 | <button onclick="dojo.lfx.html.wipeIn('three', 1000).play();">wipe in</button> |
|---|
| 62 | <button onclick="dojo.lfx.html.wipeOut('three', 1000).play();">wipe out</button> |
|---|
| 63 | </div> |
|---|
| 64 | <div id="one" class="box"> |
|---|
| 65 | <h1>Box one</h1> |
|---|
| 66 | <p>This box is content sized (ie, no height is specified)</p> |
|---|
| 67 | <p> |
|---|
| 68 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean |
|---|
| 69 | semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. |
|---|
| 70 | Proin porta rutrum lacus. Etiam consequat scelerisque quam. Nulla |
|---|
| 71 | facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi |
|---|
| 72 | semper iaculis. Sed molestie tortor at ipsum. Morbi dictum rutrum |
|---|
| 73 | magna. Sed vitae risus. |
|---|
| 74 | </p> |
|---|
| 75 | </div> |
|---|
| 76 | <br> |
|---|
| 77 | <div id="two" class="box" style="height: 10em; overflow: auto;"> |
|---|
| 78 | <h1>Box two</h1> |
|---|
| 79 | <p>This box is explicity sized to 10em, w/overflow: auto. |
|---|
| 80 | Make sure that wiping in/out the box doesn't lose track of the explicitly set height.</p> |
|---|
| 81 | <p> |
|---|
| 82 | Aliquam vitae enim. Duis scelerisque metus auctor est venenatis |
|---|
| 83 | imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer |
|---|
| 84 | lorem nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean |
|---|
| 85 | id mi in massa bibendum suscipit. Integer eros. Nullam suscipit |
|---|
| 86 | mauris. In pellentesque. Mauris ipsum est, pharetra semper, |
|---|
| 87 | pharetra in, viverra quis, tellus. Etiam purus. Quisque egestas, |
|---|
| 88 | tortor ac cursus lacinia, felis leo adipiscing nisi, et rhoncus |
|---|
| 89 | elit dolor eget eros. Fusce ut quam. Suspendisse eleifend leo vitae |
|---|
| 90 | ligula. Nulla facilisi. Nulla rutrum, erat vitae lacinia dictum, |
|---|
| 91 | pede purus imperdiet lacus, ut semper velit ante id metus. Praesent |
|---|
| 92 | massa dolor, porttitor sed, pulvinar in, consequat ut, leo. Nullam |
|---|
| 93 | nec est. Aenean id risus blandit tortor pharetra congue. |
|---|
| 94 | Suspendisse pulvinar. |
|---|
| 95 | </p> |
|---|
| 96 | </div> |
|---|
| 97 | <br> |
|---|
| 98 | <div id="three" class="box" style="height: 10em; overflow: auto;"> |
|---|
| 99 | <h1>Box three</h1> |
|---|
| 100 | <p>This box is explicity sized to 10em, w/overflow: auto</p> |
|---|
| 101 | </div> |
|---|
| 102 | <br> |
|---|
| 103 | <div class="box"> |
|---|
| 104 | this box sits directly under the box above, so it should slide up/down as the aboves box contract or expand |
|---|
| 105 | </div> |
|---|
| 106 | </div> |
|---|
| 107 | </body> |
|---|
| 108 | </html> |
|---|