Created
October 27, 2011 14:04
-
-
Save bchhun/1319625 to your computer and use it in GitHub Desktop.
Theming jQuery Mobile's Loading Message and customizing its message
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<script type="text/javascript"> | |
/* Modifying the loading message before jQuery Mobile kicks in */ | |
$(document).bind("mobileinit", function(){ | |
$.extend($.mobile, { | |
loadingMessage: "Chargement en cours..." | |
}); | |
}); | |
</script> | |
<script src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script> | |
</head> | |
</html> |
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
<div class='ui-loader ui-body-a ui-corner-all'> | |
<span class='ui-icon ui-icon-loading spin'></span> | |
<h1>The loading message text appears here</h1> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment