Debian Codegraph @

tests/visual/dialog/animated.html

raw symbols SCIP
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>Dialog Visual Test</title>
6 <link rel="stylesheet" href="../../../themes/base/all.css">
7 <script src="../../../external/requirejs/require.js"></script>
8 <script src="../../../demos/bootstrap.js" data-modules="effect-blind effect-explode">
9 $( "#dialog" ).dialog({
10 autoOpen: false,
11 show: {
12 effect: "blind",
13 duration: 1000
14 },
15 hide: {
16 effect: "explode",
17 duration: 1000
18 },
19 modal: true
20 });
21
22 $( "#opener" ).on( "click", function() {
23 $( "#dialog" ).dialog( "open" );
24 });
25 </script>
26 </head>
27 <body>
28
29 <p>WHAT: A animated modal dialog, using blind effect to show, explode to hide.</p>
30 <p>EXPECTED: Dialog shows up on top of the overlay and stays there during and after the animation. Focus is set to the input inside the dialog and stays there after the animation finishes.</p>
31
32 <div id="dialog" title="Are you sure?">
33 <p>Please enter password to continue.</p>
34 <label for="password">Password</label><input id="password">
35 </div>
36
37 <button id="opener">Open Dialog</button>
38
39 </body>
40 </html>