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.

36 lines
1.9 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>Buttons</h1>
  15. </div>
  16. <div data-role="content">
  17. <a href="#" data-role="button" data-icon="plus" data-iconpos="right">Button 1</a>
  18. <a href="#" data-role="button" data-icon="check" data-iconpos="left">Button 2</a>
  19. <a href="#" data-role="button">Button 3</a>
  20. <div data-role="controlgroup" data-type="horizontal">
  21. <a href="#" data-role="button" data-icon="refresh" data-iconpos="bottom">Button 1</a>
  22. <a href="#" data-role="button" data-icon="gear" data-iconpos="top">Button 2</a>
  23. </div>
  24. <div data-role="controlgroup" data-type="horizontal">
  25. <a href="#" data-role="button" data-icon="refresh" data-iconpos="notext">Button 1</a>
  26. <a href="#" data-role="button" data-icon="gear" data-iconpos="notext">Button 2</a>
  27. </div>
  28. <a href="#" data-role="button" data-icon="refresh" data-iconpos="left" data-iconshadow="false">Button 1</a>
  29. <a href="#" data-role="button" data-icon="gear" data-iconpos="right" data-iconshadow="false">Button 2</a>
  30. </div>
  31. <div data-role="footer" data-position="fixed">
  32. <h1>www.goodcleanfun.de</h1>
  33. </div>
  34. </div>
  35. </body>
  36. </html>