Last active
January 3, 2016 00:59
-
-
Save lnickers2004/8386632 to your computer and use it in GitHub Desktop.
Bootstrap: Dialog Please Wait
This file contains hidden or 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
<div class="modal hide" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false"> | |
<div class="modal-header"> | |
<h1>Processing...</h1> | |
</div> | |
<div class="modal-body"> | |
<div class="progress progress-striped active"> | |
<div class="bar" style="width: 100%;"></div> | |
</div> | |
</div> | |
</div> |
This file contains hidden or 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
<style> | |
#pleaseWaitDialog { | |
width: 400px; | |
height: 50px; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-top: -25px; | |
margin-left: -200px; | |
padding: 20px; | |
} | |
</style> | |
<script> | |
var myApp; | |
myApp = myApp || (function () { | |
var pleaseWaitDiv = $('<div class="modal hide" id="pleaseWaitDialog" data-backdrop="static" data-keyboard="false"><div class="modal-header"><h1>Processing...</h1></div><div class="modal-body"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"></div></div></div></div>'); | |
return { | |
showPleaseWait: function() { | |
pleaseWaitDiv.modal(); | |
}, | |
hidePleaseWait: function () { | |
pleaseWaitDiv.modal('hide'); | |
}, | |
}; | |
})(); | |
myApp.showPleaseWait(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment