Permalink
Browse files

Demos: Added theming test page.

  • Loading branch information...
jaspermdegroot committed May 13, 2013
1 parent d90ba5b commit dba9c9233be0f56031fad83c5077f03cb30a2fab
Showing with 155 additions and 0 deletions.
  1. +2 −0 demos/index.php
  2. +153 −0 demos/test/theming/index.php
View
@@ -76,6 +76,8 @@
<li><a href="test/listviews-b/" data-ajax="false">Listviews</a></li>
<li data-role="list-divider">Icons</li>
<li><a href="test/icons/font-icons.php" data-ajax="false">Font icons</a></li>
<li data-role="list-divider">Theming</li>
<li><a href="test/theming/" data-ajax="false">Theme inheritance</a></li>
</ul>
</div><!-- /content -->
@@ -0,0 +1,153 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Theme inheritance - jQuery Mobile Tests</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css">
<link rel="shortcut icon" href="../../favicon.ico">
<script src="../../../js/jquery.js"></script>
<script src="../../../js/"></script>
</head>
<body>
<div data-role="page" data-theme="b">
<div data-role="header">
<h1>Theme inheritance</h1>
<a href="../../" data-role="button" data-rel="back" data-icon="back" data-iconpos="notext">Back</a>
<a href="#" data-role="button" data-icon="gear">Button</a>
</div><!-- /header -->
<div data-role="content">
<h2>Page theme "b"</h2>
<a href="#" data-role="button" data-inline="true" data-icon="arrow-r" data-iconpos="right">We</a>
<button data-inline="true" data-icon="arrow-r" data-iconpos="right">are</button>
<input type="button" value="buttons" data-inline="true" data-icon="arrow-r" data-iconpos="right">
<ul data-role="listview" data-inset="true">
<li>I</li>
<li data-role="list-divider">Divider<span class="ui-li-count">3</span></li>
<li>am</li>
<li>static<span class="ui-li-count">6</span></li>
</ul>
<ul data-role="listview" data-inset="true">
<li><a href="#">We</a></li>
<li data-role="list-divider">Divider</li>
<li><a href="#">have<span class="ui-li-count">12</span></a></li>
<li><a href="#">links</a></li>
</ul>
<ul data-role="listview" data-split-icon="gear" data-inset="true">
<li><a href="#">
<img src="../../_assets/img/album-bb.jpg" />
<h2>Broken Bells</h2>
<p>Broken Bells</p></a>
<a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
</li>
<li><a href="#">
<img src="../../_assets/img/album-hc.jpg" />
<h2>Warning</h2>
<p>Hot Chip</p></a>
<a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
</li>
<li><a href="#">
<img src="../../_assets/img/album-p.jpg" />
<h2>Wolfgang Amadeus Phoenix</h2>
<p>Phoenix</p></a>
<a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
</li>
</ul>
<form>
<ul data-role="listview" data-inset="true">
<li data-role="fieldcontain">
<label for="name2">Text Input:</label>
<input type="text" name="name2" id="name2" value="" data-clear-btn="true">
</li>
<li data-role="fieldcontain">
<label for="textarea2">Textarea:</label>
<textarea cols="40" rows="8" name="textarea2" id="textarea2"></textarea>
</li>
<li data-role="fieldcontain">
<label for="flip2">Flip switch:</label>
<select name="flip2" id="flip2" data-role="slider">
<option value="off">Off</option>
<option value="on">On</option>
</select>
</li>
<li data-role="fieldcontain">
<label for="slider2">Slider:</label>
<input type="range" name="slider2" id="slider2" value="0" min="0" max="100" data-highlight="true">
</li>
<li data-role="fieldcontain">
<fieldset data-role="controlgroup">
<legend>Checkbox:</legend>
<input type="checkbox" name="checkbox-v-1a" id="checkbox-v-1a">
<label for="checkbox-v-1a">One</label>
<input type="checkbox" name="checkbox-v-1b" id="checkbox-v-1b">
<label for="checkbox-v-1b">Two</label>
<input type="checkbox" name="checkbox-v-1c" id="checkbox-v-1c">
<label for="checkbox-v-1c">Three</label>
</fieldset>
</li>
<li data-role="fieldcontain">
<label for="select-choice-1" class="select">Custom select:</label>
<select name="select-choice-1" id="select-choice-1" data-native-menu="false" multiple="multiple">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
</select>
</li>
<li data-role="fieldcontain">
<label for="submit-1">Send form:</label>
<input type="submit" id="submit-1" value="Send">
</li>
</ul>
</form>
<fieldset data-role="controlgroup">
<legend>Controlgroup:</legend>
<button data-icon="home" data-iconpos="right">One</button>
<input type="button" data-icon="back" data-iconpos="right" value="Two">
<a href="#" data-role="button" data-icon="grid" data-iconpos="right">Three</a>
<label for="select-v-1e">Select</label>
<select name="select-v-1e" id="select-v-1e">
<option value="#">One</option>
<option value="#">Two</option>
<option value="#">Three</option>
</select>
</fieldset>
<a href="#" data-role="button" data-icon="gear" class="ui-btn-active">Active button</a>
<form>
<div data-role="fieldcontain">
<label for="name3">Text Input:</label>
<input type="text" name="name3" id="name3" value="" data-clear-btn="true">
</div>
<div data-role="fieldcontain">
<label for="textarea3">Textarea:</label>
<textarea cols="40" rows="8" name="textarea3" id="textarea3"></textarea>
</div>
<div data-role="fieldcontain">
<label for="flip3">Flip switch:</label>
<select name="flip3" id="flip3" data-role="slider">
<option value="off">Off</option>
<option value="on">On</option>
</select>
</div>
<div data-role="fieldcontain">
<label for="slider3">Slider:</label>
<input type="range" name="slider3" id="slider3" value="0" min="0" max="100" data-highlight="true">
</div>
</form>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>

0 comments on commit dba9c92

Please sign in to comment.