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.

46 lines
1.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" data-split-icon="help">
  24. <li>
  25. <a href="details/bill"><h1>Bill Gates</h1></a>
  26. <a href="edit/bill"></a>
  27. </li>
  28. <li>
  29. <a href="details/steve">Steve Jobs</a>
  30. <a href="edit/steve"></a>
  31. </li>
  32. <li>
  33. <a href="details/mark"><p>Mark Zuckerberg</p></a>
  34. <a href="edit/mark"></a>
  35. </li>
  36. <li>
  37. <a href="details/larry">Larry Page</a>
  38. <a href="edit/larry"></a>
  39. </li>
  40. </ul>
  41. </div>
  42. <div data-role="footer">
  43. <h1>www.goodcleanfun.de</h1>
  44. </div>
  45. </div>
  46. </body>
  47. </html>