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.

38 lines
1.5 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="page1">
  13. <div data-role="header" data-position="fixed">
  14. <h1>Navigation bars</h1>
  15. <div data-role="navbar">
  16. <ul>
  17. <li><a href="">Refresh</a></li>
  18. <li><a href="">Filter</a></li>
  19. <li><a href="">Search</a></li>
  20. <li><a href="">New item</a></li>
  21. </ul>
  22. </div>
  23. </div>
  24. <div data-role="content">
  25. </div>
  26. <div data-role="footer" data-position="fixed">
  27. <div data-role="navbar">
  28. <ul>
  29. <li><a href="" data-icon="home">Home</a></li>
  30. <li><a href="" data-icon="search">Contacts</a></li>
  31. <li><a href="" data-icon="info">Events</a></li>
  32. <li><a href="" data-icon="grid">News</a></li>
  33. </ul>
  34. </div>
  35. </div>
  36. </div>
  37. </body>
  38. </html>