mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
62 lines
2.0 KiB
HTML
62 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Dialog Visual Tests Page</title>
|
|
<link rel="stylesheet" href="../all.css" type="text/css">
|
|
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
|
|
<script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
|
|
<script type="text/javascript" src="../../../ui/ui.core.js"></script>
|
|
<script type="text/javascript" src="../../../ui/ui.draggable.js"></script>
|
|
<script type="text/javascript" src="../../../ui/ui.position.js"></script>
|
|
<script type="text/javascript" src="../../../ui/ui.resizable.js"></script>
|
|
<script type="text/javascript" src="../../../ui/ui.stackfix.js"></script>
|
|
<script type="text/javascript" src="../../../ui/ui.dialog.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
// Simple Dialog
|
|
$("#dialog button").click(function() {
|
|
$("#dlg").clone().removeAttr('id').dialog();
|
|
});
|
|
|
|
// Dialog with Buttons
|
|
var dlgbuttons = $("#dlgbuttons").dialog({
|
|
autoOpen: false,
|
|
width: 600,
|
|
buttons: {
|
|
Ok: function() {},
|
|
Cancel: function() {}
|
|
}
|
|
});
|
|
$("#dialogbuttons").click(function() {
|
|
dlgbuttons.dialog('open');
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<ul class="plugins">
|
|
<li class="plugin">
|
|
Dialog
|
|
<div id="dialog">
|
|
<button>Open</button>
|
|
<div id="dlg" title="Dialog Title">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li class="plugin">
|
|
Dialog with buttons
|
|
<div id="dialogbuttons">
|
|
<button>Open</button>
|
|
<div id="dlgbuttons" title="Dialog Title">
|
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
</body>
|
|
</html>
|