7
|
1 <!doctype html>
|
|
2 <html lang="en">
|
|
3 <head>
|
|
4 <meta charset="utf-8">
|
|
5 <title>jQuery UI Dialog - Basic modal</title>
|
|
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
|
7 <script src="../../jquery-1.10.2.js"></script>
|
|
8 <script src="../../ui/jquery.ui.core.js"></script>
|
|
9 <script src="../../ui/jquery.ui.widget.js"></script>
|
|
10 <script src="../../ui/jquery.ui.mouse.js"></script>
|
|
11 <script src="../../ui/jquery.ui.draggable.js"></script>
|
|
12 <script src="../../ui/jquery.ui.position.js"></script>
|
|
13 <script src="../../ui/jquery.ui.resizable.js"></script>
|
|
14 <script src="../../ui/jquery.ui.button.js"></script>
|
|
15 <script src="../../ui/jquery.ui.dialog.js"></script>
|
|
16 <link rel="stylesheet" href="../demos.css">
|
|
17 <script>
|
|
18 $(function() {
|
|
19 $( "#dialog-modal" ).dialog({
|
|
20 height: 140,
|
|
21 modal: true
|
|
22 });
|
|
23 });
|
|
24 </script>
|
|
25 </head>
|
|
26 <body>
|
|
27
|
|
28 <div id="dialog-modal" title="Basic modal dialog">
|
|
29 <p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
|
|
30 </div>
|
|
31
|
|
32 <p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>
|
|
33
|
|
34 <div class="demo-description">
|
|
35 <p>A modal dialog prevents the user from interacting with the rest of the page until it is closed.</p>
|
|
36 </div>
|
|
37 </body>
|
|
38 </html>
|