Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.8 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>My first jQuery Mobile code</title>
  6. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
  7. <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
  8. <script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. </head>
  11. <body>
  12. <div data-role="page" id="home">
  13. <div data-role="header" data-position="fixed">
  14. <h1>Home</h1>
  15. </div>
  16. <div data-role="content">
  17. <p>Home content</p>
  18. </div>
  19. <div data-role="footer" data-id="main" data-position="fixed">
  20. <div data-role="navbar">
  21. <ul>
  22. <li><a data-icon="home" class="ui-btn-active">Home</a></li>
  23. <li><a href="#help" data-icon="alert">Help</a></li>
  24. </ul>
  25. </div>
  26. </div>
  27. </div>
  28. <div data-role="page" id="help">
  29. <div data-role="header" data-position="fixed">
  30. <h1>Help</h1>
  31. </div>
  32. <div data-role="content">
  33. <p>Help content</p>
  34. </div>
  35. <div data-role="footer" data-id="main" data-position="fixed">
  36. <div data-role="navbar">
  37. <ul>
  38. <li><a href="#home" data-icon="home">Home</a></li>
  39. <li><a href="#help" data-icon="alert" class="ui-btn-active">Help</a></li>
  40. </ul>
  41. </div>
  42. </div>
  43. </div>
  44. </body>
  45. </html>