|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | | - <title>jQuery Mobile Framework - Fixed Toolbars</title> |
| 6 | + <title>Fixed Toolbars - jQuery Mobile Framework</title> |
7 | 7 | <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"> |
8 | 8 | <link rel="stylesheet" href="../../_assets/css/jqm-demos.css"> |
9 | 9 | <link rel="shortcut icon" href="../../favicon.ico"> |
|
48 | 48 | </code></pre> |
49 | 49 |
|
50 | 50 | <h2>Fullscreen Toolbars</h2> |
| 51 | + |
51 | 52 | <p><a href="bars-fullscreen.php">Fullscreen</a> fixed toolbars sit on top of the content at all times when they are visible, and unlike regular fixed toolbars, fullscreen toolbars do not fall back to static positioning when toggled. Instead they disappear from the screen entirely. Fullscreen toolbars are ideal for more immersive interfaces, like a photo viewer that is meant to fill the entire screen with the photo itself and no distractions.</p> |
52 | 53 |
|
53 | | - <p>To enable this option on a fixed header or footer, add the <code>data-fullscreen</code> attribute to the element.</p> |
| 54 | + <p>To enable this option on a fixed header or footer, add the <code>data-fullscreen</code> attribute to the element.</p> |
54 | 55 |
|
55 | 56 | <pre><code> |
56 | 57 | <div data-role="header" data-position="fixed" data-fullscreen="true"> |
|
94 | 95 |
|
95 | 96 | <p>While we will continue to try to find ways to mitigate these bugs as best we can, we currently advise against implementing fixed toolbars containing complicated user styles and form elements without extensive testing in all versions of Android's native browser.</p> |
96 | 97 |
|
97 | | -<div class="ui-body ui-body-e"> |
98 | 98 | <h2>No longer supported: touchOverflowEnabled</h2> |
99 | 99 |
|
100 | 100 | <p>Prior to jQuery Mobile 1.1, true fixed toolbar support was contingent on native browser support for the CSS property <code>overflow-scrolling: touch</code>, which is currently only supported in iOS5. As of version 1.1, jQuery Mobile no longer uses this CSS property at all. We've removed all internal usage of this property in the framework, but we've left it defined globally on the $.mobile object to reduce the risk that its removal will cause trouble with existing applications. This property is flagged for removal, so please update your code to no longer use it. The support test for this property, however, remains defined under <code>$.support</code> and we have no plans to remove that test at this time. </p> |
101 | | -</div> |
102 | | - <hr /> |
103 | 101 |
|
104 | | - <h3>The rest of the page is just sample content to make the page very long</h3> |
105 | 102 |
|
106 | | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui.Donec non enim in turpis pulvinar facilisis. Ut felis.</p> |
| 103 | + </div><!-- /content --> |
| 104 | + |
| 105 | + <div data-role="footer" data-theme="f" data-position="fixed"> |
| 106 | + <h1>Fixed Footer</h1> |
| 107 | + </div> |
107 | 108 |
|
108 | | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui.Donec non enim in turpis pulvinar facilisis. Ut felis.</p> |
| 109 | +<?php include( '../../global-nav.php' ); ?> |
109 | 110 |
|
110 | | - <h3>And an inset list</h3> |
| 111 | +</div><!-- /page --> |
111 | 112 |
|
112 | | - <ul data-role="listview" data-inset="true"> |
113 | | - <li><a href="index.html">Inbox <span class="ui-li-count">12</span></a></li> |
114 | | - <li><a href="index.html">Outbox <span class="ui-li-count">0</span></a></li> |
115 | | - <li><a href="index.html">Drafts <span class="ui-li-count">4</span></a></li> |
116 | | - <li><a href="index.html">Sent <span class="ui-li-count">328</span></a></li> |
117 | | - <li><a href="index.html">Trash <span class="ui-li-count">62</span></a></li> |
118 | | - </ul> |
119 | | - |
120 | | - <br /> |
121 | | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui.Donec non enim in turpis pulvinar facilisis. Ut felis.</p> |
122 | | - |
123 | | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui.Donec non enim in turpis pulvinar facilisis. Ut felis.</p> |
124 | | - |
125 | | - <h3>Embedded form</h3> |
126 | | - |
127 | | - <form action="#" method="get"> |
128 | | - |
129 | | - <div data-role="fieldcontain"> |
130 | | - <label for="name">Text Input:</label> |
131 | | - <input type="text" name="name" id="name" value="" /> |
132 | | - </div> |
133 | | - |
134 | | - <div data-role="fieldcontain"> |
135 | | - <label for="textarea">Textarea:</label> |
136 | | - <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea> |
137 | | - </div> |
138 | | - |
139 | | - <div data-role="fieldcontain"> |
140 | | - <label for="slider2">Flip switch:</label> |
141 | | - <select name="slider2" id="slider2" data-role="slider"> |
142 | | - <option value="off">Off</option> |
143 | | - <option value="on">On</option> |
144 | | - </select> |
145 | | - </div> |
146 | | - |
147 | | - <div data-role="fieldcontain"> |
148 | | - <label for="slider">Slider:</label> |
149 | | - <input type="range" name="slider" id="slider" value="0" min="0" max="100" /> |
150 | | - </div> |
151 | | - |
152 | | - <div data-role="fieldcontain"> |
153 | | - <label for="select-choice-1" class="select">Choose shipping method:</label> |
154 | | - <select name="select-choice-1" id="select-choice-1"> |
155 | | - <option value="standard">Standard: 7 day</option> |
156 | | - <option value="rush">Rush: 3 days</option> |
157 | | - <option value="express">Express: next day</option> |
158 | | - <option value="overnight">Overnight</option> |
159 | | - </select> |
160 | | - </div> |
161 | | - |
162 | | - <div class="ui-body ui-body-b"> |
163 | | - <fieldset class="ui-grid-a"> |
164 | | - <div class="ui-block-a"><button type="submit" data-theme="d">Cancel</button></div> |
165 | | - <div class="ui-block-b"><button type="submit" data-theme="b">Submit</button></div> |
166 | | - </fieldset> |
167 | | - </div> |
168 | | - </form> |
169 | | - |
170 | | - <h3>A bit more text</h3> |
171 | | - |
172 | | - <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui.Donec non enim in turpis pulvinar facilisis. Ut felis.</p> |
173 | | - |
174 | | - </div><!-- /content --> |
175 | | - |
176 | | - <div data-role="footer" data-theme="f" data-position="fixed"> |
177 | | - <h1>Fixed Footer</h1> |
178 | | - </div> |
179 | | - |
180 | | - <?php include( '../../global-nav.php' ); ?> |
181 | | - |
182 | | - </div><!-- /page --> |
183 | | - |
184 | | - </body> |
185 | | - </html> |
| 113 | +</body> |
| 114 | +</html> |
0 commit comments