Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 79b53d6

Browse files
Demos: Added navbars to theming test page.
1 parent de6c4f9 commit 79b53d6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

demos/test/theming/index.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
$( "#testpage" ).addClass( "noshadow" );
2727
}
2828
});
29+
$( "#opt-navbars input" ).on( "change", function( event ) {
30+
if ( $( "#show" ).prop( "checked" ) ) {
31+
$( "#testpage .ui-navbar" ).show();
32+
$( "#testpage .ui-footer h4" ).hide();
33+
} else if ( $( "#hide" ).prop( "checked" ) ) {
34+
$( "#testpage .ui-navbar" ).hide();
35+
$( "#testpage .ui-footer h4" ).show();
36+
}
37+
});
2938
});
3039
</script>
3140
<style>
@@ -43,6 +52,13 @@
4352
<h1>Theme inheritance</h1>
4453
<a href="../../" data-role="button" data-rel="back" data-icon="back" data-iconpos="notext">Back</a>
4554
<a href="#" data-role="button" data-icon="gear">Button</a>
55+
<div data-role="navbar">
56+
<ul>
57+
<li><a href="#" class="ui-btn-active ui-state-persist">Menu item 1</a></li>
58+
<li><a href="#">Menu item 1</a></li>
59+
<li><a href="#">Menu item 1</a></li>
60+
</ul>
61+
</div>
4662
</div><!-- /header -->
4763
4864
<div data-role="content">
@@ -68,6 +84,15 @@
6884
<input type="radio" name="shadow" id="off">
6985
</fieldset>
7086
</div>
87+
<div data-role="fieldcontain" id="opt-navbars">
88+
<fieldset data-role="controlgroup" data-type="horizontal">
89+
<legend>Navbars:</legend>
90+
<label for="show">Show</label>
91+
<input type="radio" name="navbars" id="show" checked>
92+
<label for="hide">Hide</label>
93+
<input type="radio" name="navbars" id="hide">
94+
</fieldset>
95+
</div>
7196
</form>
7297
7398
<div id="ui-body-test" class="ui-body ui-body-a ui-corner-all" style="margin-bottom:1em;">
@@ -237,6 +262,17 @@
237262
</div>
238263
239264
</div><!-- /content -->
265+
266+
<div data-role="footer" data-position="fixed">
267+
<h4 style="display:none;">Footer</h4>
268+
<div data-role="navbar">
269+
<ul>
270+
<li><a href="#">Menu item 1</a></li>
271+
<li><a href="#" class="ui-btn-active ui-state-persist">Menu item 1</a></li>
272+
<li><a href="#">Menu item 1</a></li>
273+
</ul>
274+
</div>
275+
</div>
240276
241277
</div><!-- /page -->
242278
</body>

0 commit comments

Comments
 (0)