modal-with-nonmodal.html revision 3ea6425a4469efcb23a27ae26625cea4c77b51f5
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modal with Non-Modal Test Page</title>
</head>
<body class="yui3-skin-sam">
<div id="pnlModal">
<div class="yui3-widget-bd">Modal Panel</div>
</div>
<div id="pnlRegular">
<div class="yui3-widget-bd">Regular Panel</div>
</div>
<button type="button" id="btnModal">Show Modal</button>
<button type="button" id="btnRegular">Show Regular</button>
<script>
YUI({filter: 'raw'}).use('panel', function (Y) {
var pnlModal = new Y.Panel({
srcNode : '#pnlModal',
visible : false,
modal : true,
centered: true,
render : true,
zIndex : 10
});
var pnlRegular = new Y.Panel({
srcNode : '#pnlRegular',
render : true,
visible : false,
centered: true,
modal : false
});
Y.one("#btnModal").on("click", function () {
});
Y.one("#btnRegular").on("click", function () {
});
});
</script>
</body>
</html>