Created
November 26, 2010 11:17
-
-
Save yuribossa/716577 to your computer and use it in GitHub Desktop.
Simple Popup Message based on jQuery Mobile
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
function jqmSimpleMessage(message) { | |
$("<div class='ui-loader ui-overlay-shadow ui-body-b ui-corner-all'><h1>" + message + "</h1></div>") | |
.css({ | |
display: "block", | |
opacity: 0.96, | |
top: window.pageYOffset+100 | |
}) | |
.appendTo("body").delay(800) | |
.fadeOut(400, function(){ | |
$(this).remove(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works for me. Thanks!