This repository was archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Copy pathindex.php
197 lines (179 loc) · 6.69 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Table Column toggle demo: Phone comparison - jQuery Mobile Demos</title>
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css">
<link rel="stylesheet" href="../_assets/css/jqm-demos.css">
<script src="../../external/jquery/jquery.js"></script>
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
<style>
/*These apply across all breakpoints because they are outside of a media query */
table.phone-compare thead th {
background-color: #fff;
}
table.phone-compare thead th h4 {
text-transform: uppercase;
font-size: 0.6em;
margin: 0;
}
table.phone-compare thead th h3 {
font-size: .9em;
margin: -.4em 0 .8em 0;
}
table.phone-compare th.label {
text-transform: uppercase;
font-size: 0.6em;
opacity: 0.5;
padding: 1.2em .8em;
background-color: #ddd;
}
table.phone-compare tbody tr.photos td {
background-color: #fff;
padding: 0;
}
table.phone-compare tbody tr.photos img {
max-width: 100%;
min-width: 60px;
}
/* Use the target selector to style the column chooser button */
a[href="#phone-table-popup"] {
margin-bottom: 1.2em;
}
/* Show priority 1 at 320px (20em x 16px) */
@media screen and (min-width: 20em) {
.phone-compare th.ui-table-priority-1,
.phone-compare td.ui-table-priority-1 {
display: table-cell;
}
}
/* Show priority 2 at 560px (35em x 16px) */
@media screen and (min-width: 35em) {
.phone-compare th.ui-table-priority-2,
.phone-compare td.ui-table-priority-2 {
display: table-cell;
}
}
/* Show priority 3 at 720px (45em x 16px) */
@media screen and (min-width: 45em) {
.phone-compare th.ui-table-priority-3,
.phone-compare td.ui-table-priority-3 {
display: table-cell;
}
}
/* Manually hidden */
.phone-compare th.ui-table-cell-hidden,
.phone-compare td.ui-table-cell-hidden {
display: none;
}
/* Manually shown */
.phone-compare th.ui-table-cell-visible,
.phone-compare td.ui-table-cell-visible {
display: table-cell;
}
</style>
</head>
<body>
<div data-role="page" class="jqm-demos">
<div data-role="toolbar" data-type="header" class="jqm-header">
<h2><a href="../" title="jQuery Mobile Demos home"><img src="../_assets/img/jquerymobile-logo.png" alt="jQuery Mobile"></a></h2>
<a href="#" class="jqm-navmenu-link ui-button ui-button-icon-only ui-corner-all ui-nodisc-icon ui-alt-icon ui-toolbar-header-button-left">Menu<span class="ui-icon ui-icon-bars"></span></a>
<a href="#" class="jqm-search-link ui-button ui-button-icon-only ui-corner-all ui-nodisc-icon ui-alt-icon ui-toolbar-header-button-right">Search<span class="ui-icon ui-icon-search"></span></a>
<div class="jqm-banner"><h3>Version <span class="jqm-version"></span> Demos</h3></div>
</div><!-- /header -->
<div role="main" class="ui-content jqm-content">
<h1>Popular Phones</h1>
<p>This is an example of how to use the column toggle table to create a comparison view where products can be shown or hidden.</p>
<div data-demo-html="true" data-demo-css="true">
<table data-role="table" id="phone-table" data-mode="columntoggle" data-column-button-text="Compare..." data-column-button-theme="a" class="phone-compare ui-shadow table-stroke">
<thead>
<tr>
<th class="label">Model</th>
<th>
<h4>Apple</h4>
<h3>iPhone 5</h3>
</th>
<th data-priority="1">
<h4>Samsung</h4>
<h3>Galaxy S III</h3>
</th>
<th data-priority="2">
<h4>Nokia</h4>
<h3>Lumia 920</h3>
</th>
<th data-priority="3">
<h4>HTC</h4>
<h3>One X</h3>
</th>
</tr>
</thead>
<tbody>
<tr class="photos">
<th class="label">Photo</th>
<td><a href="#img-iphone5" data-rel="popup" data-position-to="window"><img src="../_assets/img/phone_iphone5.jpg"></a></td>
<td><a href="#img-galaxy" data-rel="popup" data-position-to="window"><img src="../_assets/img/phone_galaxy3.jpg"></a></td>
<td><a href="#img-lumia" data-rel="popup" data-position-to="window"><img src="../_assets/img/phone_lumia920.jpg"></a></td>
<td><a href="#img-onex" data-rel="popup" data-position-to="window"><img src="../_assets/img/phone_onex.jpg"></a></td>
</tr>
<tr>
<th class="label">Height</th>
<td>4.87"</td>
<td>5.38"</td>
<td>5.11"</td>
<td>5.3"</td>
</tr>
<tr>
<th class="label">Width</th>
<td>2.31"</td>
<td>2.78"</td>
<td>2.79"</td>
<td>2.75"</td>
</tr>
<tr>
<th class="label">Depth</th>
<td>0.3"</td>
<td>0.34"</td>
<td>0.42"</td>
<td>0.37"</td>
</tr>
<tr>
<th class="label">Weight (lbs.)</th>
<td>0.25</td>
<td>0.29</td>
<td>0.41</td>
<td>0.29</td>
</tr>
</tbody>
</table>
<!-- Popups for lightbox images -->
<div id="img-iphone5" data-role="popup" data-overlay-theme="a">
<img src="../_assets/img/phone_iphone5.jpg">
</div>
<div id="img-galaxy" data-role="popup" data-overlay-theme="a">
<img src="../_assets/img/phone_galaxy3.jpg">
</div>
<div id="img-lumia" data-role="popup" data-overlay-theme="a">
<img src="../_assets/img/phone_lumia920.jpg">
</div>
<div id="img-onex" data-role="popup" data-overlay-theme="a">
<img src="../_assets/img/phone_onex.jpg">
</div>
</div><!-- /data-demo -->
</div><!-- /content -->
<?php include( '../jqm-navmenu.php' ); ?>
<div data-role="toolbar" data-type="footer" data-position="fixed" data-tap-toggle="false" class="jqm-footer">
<h6>jQuery Mobile Version <span class="jqm-version"></span> Demos</h6>
<ul>
<li><a href="http://jquerymobile.com/" title="Visit the jQuery Mobile web site">jquerymobile.com</a></li>
<li><a href="https://github.com/jquery/jquery-mobile" title="Visit the jQuery Mobile GitHub repository">GitHub repository</a></li>
</ul>
<p>Copyright jQuery Foundation</p>
</div><!-- /footer -->
</div><!-- /page -->
<?php include( '../jqm-search.php' ); ?>
</body>
</html>