Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Page Title</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.css" />
- <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.js"></script>
- <script>
- $(document).ready(function() {
- $.mobile.loading( 'show', {
- text: 'Loading',
- textVisible: true,
- theme: 'z',
- html: ""
- });
- });
- <!---- How do I stop the spinner after page has loaded ? Docs state mobileinit = Event indicating that jQuery Mobile has finished loading.--------------->
- $( document ).on( "mobileinit", function() {
- $.mobile.loading( 'hide');
- });
- </script>
- </head>
- <body>
- <!-- /page -->
- <div data-role="page">
- <!-- /header -->
- <div data-role="header">
- <h1>Testing loader</h1>
- </div>
- <!-- /content -->
- <div data-role="content">
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement