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.

69 lines
2.7 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. <!-- activate back buttons with the addBackBtn option of the page plugin-->
  9. <script type="text/javascript">
  10. $(document).bind("mobileinit", function() {
  11. $.mobile.page.prototype.options.addBackBtn = true;
  12. });
  13. </script>
  14. <script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. </head>
  17. <body>
  18. <div data-role="page" id="home" data-add-back-btn="false">
  19. <div data-role="header">
  20. <h1>nested lists</h1>
  21. </div>
  22. <div data-role="content">
  23. <ul data-role="listview">
  24. <li><a href="order.html">Order now!</a></li>
  25. <li>Cities available
  26. <ul data-role="listview">
  27. <li>Boston</li>
  28. <li>New York</li>
  29. <li>Miami</li>
  30. <li>San Francisco</li>
  31. <li>San Jose</li>
  32. </ul>
  33. </li>
  34. <li>Topics
  35. <ul data-role="listview">
  36. <li>Intro to mobile web
  37. <ul data-role="listview">
  38. <li>WML and other oldies</li>
  39. <li>XHTML MP</li>
  40. <li>HTML 4.01</li>
  41. <li>HTML5</li>
  42. </ul>
  43. </li>
  44. <li>Mobile browsers
  45. <ul data-role="listview">
  46. <li>Safari for iOS</li>
  47. <li>Android browser</li>
  48. <li>Firefox for mobile</li>
  49. <li>Opera</li>
  50. </ul>
  51. </li>
  52. <li>Tablet browsers</li>
  53. <li>Using jQuery</li>
  54. </ul>
  55. </li>
  56. <li>Promotions
  57. <ul data-role="listview">
  58. <li>10% off before may</li>
  59. <li><a href="promo3x2.html">3x2</a></li>
  60. <li>10% off to subscribers</li>
  61. </ul>
  62. </li>
  63. </ul>
  64. </div>
  65. <div data-role="footer">
  66. <h1>www.goodcleanfun.de</h1>
  67. </div>
  68. </div>
  69. </body>
  70. </html>