footer-persist-a.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>jQuery Mobile Framework - Persistent footer A</title>
  7. <link rel="stylesheet" href="../../jquery.mobile-1.0.1.min.css" />
  8. <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
  9. <script src="../../jquery.js"></script>
  10. <script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
  11. <script src="../_assets/js/jqm-docs.js"></script>
  12. <script src="../../jquery.mobile-1.0.1.min.js"></script>
  13. </head>
  14. <body>
  15. <div data-role="page" class="type-interior">
  16. <div data-role="header" data-theme="f" data-position="fixed">
  17. <h1>Friends</h1>
  18. <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
  19. </div>
  20. <div data-role="content">
  21. <div class="content-primary">
  22. <p>This page is a demo of a persistent footer navigation bar. At the foot of the page, you'll see a persistent horizontal navigation bar. Click on any of the links, and you'll see the page content transition but the footer remains fixed: The footer sticks persistently even when transitioning to a new HTML page, because the footer on all four HTML pages has the same <code>data-id</code> attribute. <strong>Note:</strong> If you'd like an active button in your navbar to remain active when you return to the page displaying this active button, add a class of <code>ui-state-persist</code> in addition to <code>ui-btn-active</code> to the corresponding anchor.</p>
  23. <ul data-role="listview" data-dividertheme="d" style="margin-top: 0;">
  24. <li data-role="list-divider">A</li>
  25. <li><a href="index.html">Adam Kinkaid</a></li>
  26. <li><a href="index.html">Alex Wickerham</a></li>
  27. <li><a href="index.html">Avery Johnson</a></li>
  28. <li data-role="list-divider">B</li>
  29. <li><a href="index.html">Bob Cabot</a></li>
  30. <li data-role="list-divider">C</li>
  31. <li><a href="index.html">Caleb Booth</a></li>
  32. <li><a href="index.html">Christopher Adams</a></li>
  33. <li><a href="index.html">Culver James</a></li>
  34. <li data-role="list-divider">D</li>
  35. <li><a href="index.html">David Walsh</a></li>
  36. <li><a href="index.html">Drake Alfred</a></li>
  37. <li data-role="list-divider">E</li>
  38. <li><a href="index.html">Elizabeth Bacon</a></li>
  39. <li><a href="index.html">Emery Parker</a></li>
  40. <li><a href="index.html">Enid Voldon</a></li>
  41. <li data-role="list-divider">F</li>
  42. <li><a href="index.html">Francis Wall</a></li>
  43. <li data-role="list-divider">G</li>
  44. <li><a href="index.html">Graham Smith</a></li>
  45. <li><a href="index.html">Greta Peete</a></li>
  46. <li data-role="list-divider">H</li>
  47. <li><a href="index.html">Harvey Walls</a></li>
  48. <li data-role="list-divider">M</li>
  49. <li><a href="index.html">Mike Farnsworth</a></li>
  50. <li><a href="index.html">Murray Vanderbuilt</a></li>
  51. <li data-role="list-divider">N</li>
  52. <li><a href="index.html">Nathan Williams</a></li>
  53. <li data-role="list-divider">P</li>
  54. <li><a href="index.html">Paul Baker</a></li>
  55. <li><a href="index.html">Pete Mason</a></li>
  56. <li data-role="list-divider">R</li>
  57. <li><a href="index.html">Rod Tarker</a></li>
  58. <li data-role="list-divider">S</li>
  59. <li><a href="index.html">Sawyer Wakefield</a></li>
  60. </ul>
  61. </div><!--/content-primary -->
  62. <div class="content-secondary">
  63. <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
  64. <h3>More in this section</h3>
  65. <ul data-role="listview" data-theme="c" data-dividertheme="d">
  66. <li data-role="list-divider">Toolbars</li>
  67. <li><a href="docs-bars.html">Toolbar basics</a></li>
  68. <li><a href="docs-headers.html">Header bars</a></li>
  69. <li><a href="docs-footers.html">Footer bars</a></li>
  70. <li><a href="docs-navbar.html">Navbars</a></li>
  71. <li><a href="bars-fixed.html">Fixed positioning</a></li>
  72. <li><a href="bars-fullscreen.html">Fullscreen positioning</a></li>
  73. <li data-theme="a"><a href="footer-persist-a.html">Persistent footer navbar</a></li>
  74. <li><a href="bars-themes.html">Theming toolbars</a></li>
  75. </ul>
  76. </div>
  77. </div>
  78. </div><!-- /content -->
  79. <div data-role="footer" data-id="foo1" data-position="fixed">
  80. <div data-role="navbar">
  81. <ul>
  82. <li><a href="footer-persist-a.html" class="ui-btn-active ui-state-persist">Friends</a></li>
  83. <li><a href="footer-persist-b.html">Albums</a></li>
  84. <li><a href="footer-persist-c.html">Emails</a></li>
  85. </ul>
  86. </div><!-- /navbar -->
  87. </div><!-- /footer -->
  88. </div><!-- /page -->
  89. </body>
  90. </html>