2010-03-12 03:18:34 +00:00
<!DOCTYPE html>
< html lang = "en" >
2008-12-11 00:03:51 +00:00
< head >
2010-03-12 03:18:34 +00:00
< meta charset = "UTF-8" / >
2008-12-11 00:03:51 +00:00
< title > jQuery UI Dialog Static Markup Test Page< / title >
2010-02-16 01:38:23 +00:00
< link rel = "stylesheet" href = "../../themes/base/jquery.ui.base.css" type = "text/css" / >
< link rel = "stylesheet" href = "../../themes/base/jquery.ui.theme.css" type = "text/css" title = "ui-theme" / >
2012-08-13 13:31:31 +00:00
< script type = "text/javascript" src = "../../jquery-1.8.0.js" > < / script >
2009-01-24 11:51:12 +00:00
< script type = "text/javascript" src = "static.js" > < / script >
2008-12-11 00:03:51 +00:00
< script type = "text/javascript" >
2008-12-12 02:23:03 +00:00
2008-12-11 00:03:51 +00:00
//overlay sample plugin ( to become part of positionTo )
$.fn.overlay = function(){
var that = this;
//overlay widget markup
var overlay = $('< div class = "ui-overlay" > '+
'< iframe class = "ui-helper-zfix" src = "#" frameborder = "0" > < / iframe > '+
'< div class = "ui-widget-overlay" > < / div > '+
'< div class = "ui-widget-shadow ui-corner-all" > < / div > '+
'< / div > ');
//ui-widget-shadow gets set to exact widget dims and offset (TL). Shadow appearance/thickness is handled in ui.theme.css through margins and padding
overlay.find('.ui-widget-shadow')
.width( $(that)[0].offsetWidth )
.height( $(that)[0].offsetHeight )
.css({
position: 'absolute',
left: $(that)[0].offsetLeft,
top: $(that)[0].offsetTop
});
$(that).before(overlay);
return this;
};
//call overlay
$(function(){
$('.ui-dialog').overlay();
});
2008-12-16 22:52:53 +00:00
2008-12-11 00:03:51 +00:00
< / script >
< / head >
< body style = "font-size: 62.5%;" >
2008-12-16 22:52:53 +00:00
2008-12-11 00:03:51 +00:00
<!-- ui - dialog -->
2008-12-12 18:07:48 +00:00
< div class = "ui-dialog ui-widget ui-widget-content ui-corner-all" style = "position: absolute; left: 40px; top: 40px; " >
2008-12-11 00:03:51 +00:00
< div class = "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" >
2008-12-13 10:43:07 +00:00
< span class = "ui-dialog-title" > Dialog Title< / span >
2008-12-11 00:03:51 +00:00
< a href = "#" class = "ui-dialog-titlebar-close ui-corner-all" title = "Close" > < span class = "ui-icon ui-icon-closethick" > Close< / span > < / a >
< / div >
< div class = "ui-dialog-content ui-widget-content" style = "height: 13em;" >
2008-12-13 10:43:07 +00:00
< 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 >
2008-12-11 00:03:51 +00:00
< / div >
< div class = "ui-dialog-buttonpane ui-widget-content ui-helper-clearfix" >
< button class = "ui-state-default ui-priority-primary ui-corner-all" > Primary< / button >
< button class = "ui-state-default ui-priority-secondary ui-corner-all" > Secondary< / button >
< button class = "ui-state-default ui-state-disabled ui-corner-all" > Disabled< / button >
< / div >
< div class = "ui-resizable-n ui-resizable-handle" > < / div >
< div class = "ui-resizable-s ui-resizable-handle" > < / div >
< div class = "ui-resizable-e ui-resizable-handle" > < / div >
< div class = "ui-resizable-w ui-resizable-handle" > < / div >
< div class = "ui-resizable-ne ui-resizable-handle" > < / div >
< div class = "ui-resizable-se ui-resizable-handle ui-icon ui-icon-grip-diagonal-se" > < / div >
< div class = "ui-resizable-sw ui-resizable-handle" > < / div >
< div class = "ui-resizable-nw ui-resizable-handle" > < / div >
< / div >
< / body >
< / html >