Last active
March 3, 2016 17:07
-
-
Save azborgonovo/d80ec2102fa79874b377 to your computer and use it in GitHub Desktop.
Javascript code too show a JQuery UI overlay widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $overlay = $('<div class="ui-widget-overlay"></div>').hide().appendTo('body'); | |
// $overlay.width($(document).width()); | |
// $overlay.height($(document).height()); | |
$overlay.fadeIn(); | |
$(window).resize(function () { | |
$overlay.width($(document).width()); | |
$overlay.height($(document).height()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment