| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>Testing the Standby widget</title> |
| 6 | <style type="text/css"> |
| 7 | @import "../../../dijit/themes/soria/soria.css"; |
| 8 | @import "../../../dijit/tests/css/dijitTests.css"; |
| 9 | @import "../../../dojox/grid/resources/soriaGrid.css"; |
| 10 | |
| 11 | .curvedClass { |
| 12 | background-color: darkblue; |
| 13 | width: 250px; |
| 14 | height: 250px; |
| 15 | border-radius: 15px; |
| 16 | -moz-border-radius: 15px 15px 15px 15px; |
| 17 | -webkit-border-radius: 15px;" |
| 18 | } |
| 19 | </style> |
| 20 | |
| 21 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad:true, isDebug: true"></script> |
| 22 | |
| 23 | <script type="text/javascript"> |
| 24 | dojo.require("dojox.widget.Standby"); |
| 25 | dojo.require("dijit.form.Button"); |
| 26 | dojo.require("dijit.Tree"); |
| 27 | dojo.require("dijit.tree.ForestStoreModel"); |
| 28 | dojo.require("dijit.Dialog"); |
| 29 | dojo.require("dojox.grid.DataGrid"); |
| 30 | dojo.require("dojo.data.ItemFileReadStore"); |
| 31 | |
| 32 | var connects = []; |
| 33 | |
| 34 | function init() { |
| 35 | var button1 = dijit.byId("overlay1Button1"); |
| 36 | var button2 = dijit.byId("overlay1Button2"); |
| 37 | var overlay1= dijit.byId("standby1"); |
| 38 | connects.push(dojo.connect(button1, "onClick", function(){overlay1.show()})); |
| 39 | connects.push(dojo.connect(button2, "onClick", function(){overlay1.hide()})); |
| 40 | |
| 41 | var button3 = dijit.byId("overlay2Button1"); |
| 42 | var button4 = dijit.byId("overlay2Button2"); |
| 43 | var overlay2= dijit.byId("standby2"); |
| 44 | connects.push(dojo.connect(button3, "onClick", function(){overlay2.show()})); |
| 45 | connects.push(dojo.connect(button4, "onClick", function(){overlay2.hide()})); |
| 46 | |
| 47 | var button5 = dijit.byId("overlay3Button1"); |
| 48 | var button6 = dijit.byId("overlay3Button2"); |
| 49 | var overlay3= dijit.byId("standby3"); |
| 50 | connects.push(dojo.connect(button5, "onClick", function(){overlay3.show()})); |
| 51 | connects.push(dojo.connect(button6, "onClick", function(){overlay3.hide()})); |
| 52 | |
| 53 | var button7 = dijit.byId("overlay4Button1"); |
| 54 | var button8 = dijit.byId("overlay4Button2"); |
| 55 | var overlay4= dijit.byId("standby4"); |
| 56 | connects.push(dojo.connect(button7, "onClick", function(){overlay4.show()})); |
| 57 | connects.push(dojo.connect(button8, "onClick", function(){overlay4.hide()})); |
| 58 | |
| 59 | var button9 = dijit.byId("overlay5Button1"); |
| 60 | var button10 = dijit.byId("overlay5Button2"); |
| 61 | var overlay5= dijit.byId("standby5"); |
| 62 | connects.push(dojo.connect(button9, "onClick", function(){overlay5.show()})); |
| 63 | connects.push(dojo.connect(button10, "onClick", function(){overlay5.hide()})); |
| 64 | |
| 65 | var button11 = dijit.byId("overlay6Button1"); |
| 66 | var button12 = dijit.byId("overlay6Button2"); |
| 67 | var overlay6= dijit.byId("standby6"); |
| 68 | connects.push(dojo.connect(button11, "onClick", function(){overlay6.show()})); |
| 69 | connects.push(dojo.connect(button12, "onClick", function(){overlay6.hide()})); |
| 70 | |
| 71 | var button13 = dijit.byId("overlay7Button1"); |
| 72 | var button14 = dijit.byId("overlay7Button2"); |
| 73 | var overlay7= dijit.byId("standby7"); |
| 74 | connects.push(dojo.connect(button13, "onClick", function(){overlay7.show()})); |
| 75 | connects.push(dojo.connect(button14, "onClick", function(){overlay7.hide()})); |
| 76 | |
| 77 | var button15 = dijit.byId("overlay8Button1"); |
| 78 | var button16 = dijit.byId("overlay8Button2"); |
| 79 | var overlay8= dijit.byId("standby8"); |
| 80 | connects.push(dojo.connect(button15, "onClick", function(){overlay8.show()})); |
| 81 | connects.push(dojo.connect(button16, "onClick", function(){overlay8.hide()})); |
| 82 | |
| 83 | var button17 = dijit.byId("overlay9Button1"); |
| 84 | var button18 = dijit.byId("overlay9Button2"); |
| 85 | var overlay9= dijit.byId("standby9"); |
| 86 | connects.push(dojo.connect(button17, "onClick", function(){overlay9.show()})); |
| 87 | connects.push(dojo.connect(button18, "onClick", function(){overlay9.hide()})); |
| 88 | |
| 89 | var button19 = dijit.byId("overlay10Button1"); |
| 90 | var button20 = dijit.byId("overlay10Button2"); |
| 91 | var overlay10= dijit.byId("standby10"); |
| 92 | connects.push(dojo.connect(button19, "onClick", function(){ |
| 93 | overlay10.show(); |
| 94 | var moveDiv = dojo.byId("overlayTarget10"); |
| 95 | var moveAnim = dojo.animateProperty({node: moveDiv, properties: {marginLeft: {start: 0, end: 300}}}); |
| 96 | moveAnim.play(); |
| 97 | })); |
| 98 | connects.push(dojo.connect(button20, "onClick", function(){ |
| 99 | var moveDiv = dojo.byId("overlayTarget10"); |
| 100 | var moveAnim = dojo.animateProperty({node: moveDiv, properties: {marginLeft: {start: 300, end: 0}}, onEnd: function(){overlay10.hide()}}); |
| 101 | moveAnim.play(); |
| 102 | })); |
| 103 | |
| 104 | var button21 = dijit.byId("overlay11Button1"); |
| 105 | var button22 = dijit.byId("overlay11Button2"); |
| 106 | var overlay11= dijit.byId("standby11"); |
| 107 | connects.push(dojo.connect(button21, "onClick", function(){overlay11.show()})); |
| 108 | connects.push(dojo.connect(button22, "onClick", function(){overlay11.hide()})); |
| 109 | |
| 110 | var button23 = dijit.byId("overlay12Button1"); |
| 111 | var button24 = dijit.byId("overlay12Button2"); |
| 112 | var overlay12= dijit.byId("standby12"); |
| 113 | connects.push(dojo.connect(button23, "onClick", function(){overlay12.show()})); |
| 114 | connects.push(dojo.connect(button24, "onClick", function(){overlay12.hide()})); |
| 115 | |
| 116 | var button25 = dijit.byId("overlay13Button1"); |
| 117 | var button26 = dijit.byId("overlay13Button2"); |
| 118 | var overlay13= dijit.byId("standby13"); |
| 119 | connects.push(dojo.connect(button25, "onClick", function(){overlay13.show()})); |
| 120 | connects.push(dojo.connect(button26, "onClick", function(){overlay13.hide()})); |
| 121 | |
| 122 | var button27 = dijit.byId("overlay14Button1"); |
| 123 | var button28 = dijit.byId("overlay14Button2"); |
| 124 | var overlay14= dijit.byId("standby14"); |
| 125 | connects.push(dojo.connect(button27, "onClick", function(){overlay14.show()})); |
| 126 | connects.push(dojo.connect(button28, "onClick", function(){overlay14.hide()})); |
| 127 | |
| 128 | var button29 = dijit.byId("overlay15Button1"); |
| 129 | var button30 = dijit.byId("overlay15Button2"); |
| 130 | var overlay15= dijit.byId("standby15"); |
| 131 | connects.push(dojo.connect(button29, "onClick", function(){overlay15.show()})); |
| 132 | connects.push(dojo.connect(button30, "onClick", function(){overlay15.hide()})); |
| 133 | |
| 134 | var button31 = dijit.byId("overlay16Button1"); |
| 135 | var button32 = dijit.byId("overlay16Button2"); |
| 136 | var overlay16= dijit.byId("standby16"); |
| 137 | connects.push(dojo.connect(button31, "onClick", function(){overlay16.show()})); |
| 138 | connects.push(dojo.connect(button32, "onClick", function(){overlay16.hide()})); |
| 139 | |
| 140 | var button33 = dijit.byId("overlay17Button1"); |
| 141 | var button34 = dijit.byId("overlay17Button2"); |
| 142 | var overlay17= dijit.byId("standby17"); |
| 143 | connects.push(dojo.connect(button33, "onClick", function(){overlay17.show()})); |
| 144 | connects.push(dojo.connect(button34, "onClick", function(){overlay17.hide()})); |
| 145 | |
| 146 | var showCount = 0; |
| 147 | var button35 = dijit.byId("overlay18Button1"); |
| 148 | var button36 = dijit.byId("overlay18Button2"); |
| 149 | var overlay18= dijit.byId("standby18"); |
| 150 | connects.push(dojo.connect(button35, "onClick", function(){ |
| 151 | showCount++; |
| 152 | console.log(overlay18.get("text")); |
| 153 | overlay18.set("text", "Shown: " + showCount); |
| 154 | overlay18.show()})); |
| 155 | connects.push(dojo.connect(button36, "onClick", function(){overlay18.hide()})); |
| 156 | |
| 157 | var colors = ["red", "green", "gray", "black", "purple"] |
| 158 | var cPos = 0; |
| 159 | var button37 = dijit.byId("overlay19Button1"); |
| 160 | var button38 = dijit.byId("overlay19Button2"); |
| 161 | var overlay19= dijit.byId("standby19"); |
| 162 | connects.push(dojo.connect(button37, "onClick", function(){ |
| 163 | console.log(overlay19.get("color")); |
| 164 | overlay19.set("color", colors[cPos]); |
| 165 | cPos++; |
| 166 | if(cPos === colors.length - 1){ |
| 167 | cPos = 0; |
| 168 | } |
| 169 | overlay19.show()})); |
| 170 | connects.push(dojo.connect(button38, "onClick", function(){overlay19.hide()})); |
| 171 | dijit.byId("dialog").show(); |
| 172 | |
| 173 | var button39 = dijit.byId("overlay20Button1"); |
| 174 | var overlay20= dijit.byId("standby20"); |
| 175 | connects.push(dojo.connect(button39, "onClick", function(){ |
| 176 | overlay20.show(); |
| 177 | setTimeout(function(){ |
| 178 | overlay20.hide(); |
| 179 | }, 5000); |
| 180 | })); |
| 181 | } |
| 182 | dojo.addOnLoad(init); |
| 183 | |
| 184 | //Cleanup, so I can check for leaks in the widget itself. |
| 185 | dojo.addOnUnload(function(){ |
| 186 | var i; |
| 187 | for(i = 0; i < connects.length; i++){ |
| 188 | dojo.disconnect(connects[i]); |
| 189 | } |
| 190 | }); |
| 191 | |
| 192 | </script> |
| 193 | |
| 194 | </head> |
| 195 | <body class="soria" id="bodyId"> |
| 196 | |
| 197 | <h1 class="testTitle">dojox.widget.Standby</h1> |
| 198 | |
| 199 | <h3>Testing a basic on a div contained in a scrolling div</h3> |
| 200 | <button id ="overlay14Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 201 | <br> |
| 202 | <button id ="overlay14Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 203 | <div style="width: 250px; height: 100px; overflow: auto"> |
| 204 | <br> |
| 205 | <br> |
| 206 | <br> |
| 207 | <br> |
| 208 | <br> |
| 209 | <div id ="overlayTarget14" style="width: 200px; height: 200px; background-color: darkblue;"></div> |
| 210 | <div style="width: 400px; height: 5px"></div> |
| 211 | <br> |
| 212 | <br> |
| 213 | <br> |
| 214 | <br> |
| 215 | <br> |
| 216 | </div> |
| 217 | <div id ="standby14" target="overlayTarget14" dojoType="dojox.widget.Standby"></div> |
| 218 | <hr> |
| 219 | |
| 220 | <br> |
| 221 | <br> |
| 222 | <br> |
| 223 | <h3>Testing an overlay of the entire document body.</h3> |
| 224 | <button id ="overlay20Button1" dojoType="dijit.form.Button">Click to show the standby overlay on body for 5 seconds!</button> |
| 225 | <div id ="standby20" target="bodyId" dojoType="dojox.widget.Standby" zIndex="1000"></div> |
| 226 | |
| 227 | <hr> |
| 228 | <h3>Testing a basic overlay</h3> |
| 229 | <button id ="overlay1Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 230 | <br> |
| 231 | <button id ="overlay1Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 232 | <div id ="overlayTarget1" style="width: 200px; height: 100px; background-color: darkblue;"></div> |
| 233 | <div id ="standby1" target="overlayTarget1" dojoType="dojox.widget.Standby"></div> |
| 234 | <hr> |
| 235 | |
| 236 | |
| 237 | <h3>Testing a basic overlay on a positioned div</h3> |
| 238 | <button id ="overlay2Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 239 | <br> |
| 240 | <button id ="overlay2Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 241 | <div id ="overlayTarget2" style="position: absolute; width: 200px; height: 100px; background-color: darkblue; top: 500px; left: 500px;"></div> |
| 242 | <div id ="standby2" target="overlayTarget2" dojoType="dojox.widget.Standby"></div> |
| 243 | <hr> |
| 244 | |
| 245 | <h3>Testing a basic overlay on a dijit</h3> |
| 246 | <button id ="overlay3Button1" dojoType="dijit.form.Button">Really long button!!!!! Click to show the standby overlay on the button.</button> |
| 247 | <br> |
| 248 | <button id ="overlay3Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 249 | <div id ="standby3" target="overlay3Button1" dojoType="dojox.widget.Standby"></div> |
| 250 | <hr> |
| 251 | |
| 252 | <h3>Testing a basic on a nested div</h3> |
| 253 | <button id ="overlay4Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 254 | <br> |
| 255 | <button id ="overlay4Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 256 | <div><div><div><div id ="overlayTarget4" style="width: 200px; height: 100px; background-color: darkblue;"></div></div></div></div> |
| 257 | <div id ="standby4" target="overlayTarget4" dojoType="dojox.widget.Standby"></div> |
| 258 | <hr> |
| 259 | |
| 260 | <h3>Testing a different image</h3> |
| 261 | <button id ="overlay5Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 262 | <br> |
| 263 | <button id ="overlay5Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 264 | <div id ="overlayTarget5" style="width: 500px; height: 500px; background-color: darkgray;"></div> |
| 265 | <div id ="standby5" target="overlayTarget5" dojoType="dojox.widget.Standby" image="images/busy.gif"></div> |
| 266 | <hr> |
| 267 | |
| 268 | <h3>Testing an overlay on a div that has curved borders (CSS styles, Firefox and Webkit (Safari), only)</h3> |
| 269 | <button id ="overlay6Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 270 | <br> |
| 271 | <button id ="overlay6Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 272 | <div id ="overlayTarget6" style="width: 200px; height: 100px; background-color: darkblue; border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px;"></div> |
| 273 | <div id ="standby6" target="overlayTarget6" dojoType="dojox.widget.Standby"></div> |
| 274 | <hr> |
| 275 | |
| 276 | <h3>Testing an overlay on a div that has curved borders (CSS styles, Firefox and Webkit (Safari), only, margined to the center) and a different color for the overlay</h3> |
| 277 | <button id ="overlay7Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 278 | <br> |
| 279 | <button id ="overlay7Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 280 | <div id ="overlayTarget7" style="width: 200px; height: 100px; background-color: darkblue; border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; margin: auto"></div> |
| 281 | <div id ="standby7" target="overlayTarget7" dojoType="dojox.widget.Standby" color="lightblue"></div> |
| 282 | <hr> |
| 283 | |
| 284 | |
| 285 | <h3>Testing an overlay on a grid</h3> |
| 286 | <button id ="overlay8Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 287 | <br> |
| 288 | <button id ="overlay8Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 289 | <div data-dojo-id="ifsStore" dojoType="dojo.data.ItemFileReadStore" url="../../../dijit/tests/_data/countries.json"></div> |
| 290 | <table id ="overlayTarget8" dojoType="dojox.grid.DataGrid" style="width: 500px; height: 300px; margin: auto" store="ifsStore" query="{}"> |
| 291 | <thead> |
| 292 | <tr> |
| 293 | <th field="name" width="300px">Country/Continent Name</th> |
| 294 | <th field="type" width="auto">Type</th> |
| 295 | </tr> |
| 296 | </thead> |
| 297 | </table> |
| 298 | <div id ="standby8" target="overlayTarget8" dojoType="dojox.widget.Standby"></div> |
| 299 | <hr> |
| 300 | |
| 301 | |
| 302 | <h3>Testing an overlay on a dijit.Tree</h3> |
| 303 | <button id ="overlay9Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 304 | <br> |
| 305 | <button id ="overlay9Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 306 | <div data-dojo-id="ifsStore2" dojoType="dojo.data.ItemFileReadStore" url="../../../dijit/tests/_data/countries.json"></div> |
| 307 | <div dojoType="dijit.tree.ForestStoreModel" data-dojo-id="continentModel" store="ifsStore2" query="{type:'continent'}" rootId="continentRoot" rootLabel="Continents" childrenAttrs="children"></div> |
| 308 | <div id ="overlayTarget9" dojoType="dijit.Tree" style="width: 30%" model="continentModel" query="{}"></div> |
| 309 | <div id ="standby9" target="overlayTarget9" dojoType="dojox.widget.Standby"></div> |
| 310 | <hr> |
| 311 | |
| 312 | <h3>Testing overlay following a div as it moves (And with some whacky margins that need to be accounted for)</h3> |
| 313 | <button id ="overlay10Button1" dojoType="dijit.form.Button">Click to show the standby overlay and move the overlayed div.</button> |
| 314 | <br> |
| 315 | <button id ="overlay10Button2" dojoType="dijit.form.Button">Click to scoot the div back and hide the standby overlay.</button> |
| 316 | <div style="width: 100%;"><div id ="overlayTarget10" style="width: 200px; height: 100px; background-color: darkblue; margin-right: 100px; margin-top: 100px; margin-bottom: 100px;"></div></div> |
| 317 | <div id ="standby10" target="overlayTarget10" dojoType="dojox.widget.Standby"></div> |
| 318 | <hr> |
| 319 | |
| 320 | <h3>Testing an overlay with class set styles for curves (Firefox, safari only).</h3> |
| 321 | <button id ="overlay11Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 322 | <br> |
| 323 | <button id ="overlay11Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 324 | <div id ="overlayTarget11" class="curvedClass"></div> |
| 325 | <div id ="standby11" target="overlayTarget11" dojoType="dojox.widget.Standby"></div> |
| 326 | <hr> |
| 327 | |
| 328 | <h3>Testing a basic on a zIndex'ed div</h3> |
| 329 | <button id ="overlay13Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 330 | <br> |
| 331 | <button id ="overlay13Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 332 | <div id ="overlayTarget13" style="width: 200px; height: 100px; background-color: darkblue; z-index: 200"></div> |
| 333 | <div id ="standby13" target="overlayTarget13" dojoType="dojox.widget.Standby"></div> |
| 334 | <hr> |
| 335 | |
| 336 | <h3>Testing that this still works in a dialog after zIndex changes</h3> |
| 337 | <div dojoType="dijit.Dialog" id="dialog"> |
| 338 | <button id ="overlay15Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 339 | <br> |
| 340 | <button id ="overlay15Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 341 | <div id ="overlayTarget15" style="width: 200px; height: 100px; background-color: darkblue;"></div> |
| 342 | <div id ="standby15" target="overlayTarget15" dojoType="dojox.widget.Standby" zIndex="1000"></div> |
| 343 | </div> |
| 344 | <hr> |
| 345 | |
| 346 | <h3>Testing a basic on a node, using only centered text.</h3> |
| 347 | <button id ="overlay16Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 348 | <br> |
| 349 | <button id ="overlay16Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 350 | <div id ="overlayTarget16" style="width: 200px; height: 100px; background-color: darkblue;"></div> |
| 351 | <div id ="standby16" target="overlayTarget16" dojoType="dojox.widget.Standby" centerIndicator="text"></div> |
| 352 | <hr> |
| 353 | |
| 354 | <h3>Testing a basic on a node, using only centered text that was customized.</h3> |
| 355 | <button id ="overlay17Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 356 | <br> |
| 357 | <button id ="overlay17Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 358 | <div id ="overlayTarget17" style="width: 200px; height: 100px; background-color: darkblue;"></div> |
| 359 | <div id ="standby17" target="overlayTarget17" dojoType="dojox.widget.Standby" centerIndicator="text" text="<span style='color: red; font-weight: bold; font-style: italic;'>WAIT, FOO!</span>"></div> |
| 360 | <hr> |
| 361 | |
| 362 | <h3>Testing a basic on a node, using only centered text that is changed with each display.</h3> |
| 363 | <button id ="overlay18Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 364 | <br> |
| 365 | <button id ="overlay18Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 366 | <div id ="overlayTarget18" style="width: 200px; height: 100px; background-color: darkblue;"></div> |
| 367 | <div id ="standby18" target="overlayTarget18" dojoType="dojox.widget.Standby" centerIndicator="text" text="<span style='color: red; font-weight: bold; font-style: italic;'>WAIT, FOO!</span>"></div> |
| 368 | <hr> |
| 369 | |
| 370 | <h3>Testing a basic on a node, using only centered text, and with a background color that changes with each show</h3> |
| 371 | <button id ="overlay19Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 372 | <br> |
| 373 | <button id ="overlay19Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 374 | <div id ="overlayTarget19" style="width: 200px; height: 100px; background-color: darkblue;"></div> |
| 375 | <div id ="standby19" target="overlayTarget19" dojoType="dojox.widget.Standby" centerIndicator="text" text="<span style='color: red; font-weight: bold; font-style: italic;'>Watch Background</span>"></div> |
| 376 | <hr> |
| 377 | |
| 378 | <h3>Testing the widget in a relatively positioned block. This has caused problems, verifying the fix of reparenting to document.body works.</h3> |
| 379 | <button id ="overlay12Button1" dojoType="dijit.form.Button">Click to show the standby overlay</button> |
| 380 | <br> |
| 381 | <button id ="overlay12Button2" dojoType="dijit.form.Button">Click to hide the standby overlay</button> |
| 382 | <div style="position: relative; top: 50px; left: 50px;"> |
| 383 | <div id ="overlayTarget12" class="curvedClass"></div> |
| 384 | <div id ="standby12" target="overlayTarget12" dojoType="dojox.widget.Standby"></div> |
| 385 | </div> |
| 386 | |
| 387 | |
| 388 | </body> |
| 389 | </html> |