Learning by doing: Reading books and trying to understand the (code) examples

40 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>Collapsible content</h1>
  15. </div>
  16. <div data-role="content">
  17. <div data-role="collapsible" data-collapsed="false">
  18. <h2>History of Rome</h2>
  19. <p>
  20. There is archaeological evidence of human occupation in the Rome area
  21. from at least 14,000 years, but the dense layer of much younger debris
  22. obscures Palaeolithic and Neolithic sites.[11] Evidence of stone tools,
  23. pottery ans stone weapons attest to at least 10,000 years of human presence.
  24. </p>
  25. </div>
  26. <div data-role="collapsible" >
  27. <h2>Government of Rome</h2>
  28. <p>
  29. Rome constitutes one of Italy's 8,101 communes, and is the largest both
  30. in terms of land area and population. it is governed by a mayor, currently
  31. Gianni Alemanno, and a city council.
  32. </p>
  33. </div>
  34. </div>
  35. <div data-role="footer" data-position="fixed">
  36. <h1>www.goodcleanfun.de</h1>
  37. </div>
  38. </div>
  39. </body>
  40. </html>