-
Notifications
You must be signed in to change notification settings - Fork 416
/
Copy pathtables_beauty.html
237 lines (237 loc) · 7.93 KB
/
tables_beauty.html
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<div class="row">
<div id="breadcrumb" class="col-xs-12">
<a href="#" class="show-sidebar">
<i class="fa fa-bars"></i>
</a>
<ol class="breadcrumb pull-left">
<li><a href="index.html">Dashboard</a></li>
<li><a href="#">Tables</a></li>
<li><a href="#">Beauty Tables</a></li>
</ol>
<div id="social" class="pull-right">
<a href="#"><i class="fa fa-google-plus"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-youtube"></i></a>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<div class="box-name">
<i class="fa fa-table"></i>
<span>Beauty Tables (Inputs in cell+Keyboard navigation)</span>
</div>
<div class="box-icons">
<a class="beauty-table-to-json">
Table to JSON
</a>
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="expand-link">
<i class="fa fa-expand"></i>
</a>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
<div class="no-move"></div>
</div>
<div class="box-content">
<h4>This is table with hidden inputs in cell's and keyboard navigation in table, see below</h4>
<ol>
<li><kbd>SHIFT</kbd>+<kbd>arrow key</kbd>-Prev(Next) cell at row/col</li>
<li><kbd>CTRL</kbd>+<kbd>arrow key</kbd>-First(End) cell at row/col</li>
<li><kbd>PgUp/PgDown</kbd>-First(End) cell in table</li>
<li><kbd>Enter/Tab</kbd>-Next cell in table</li>
<li>Press link Table to JSON in box header and see result</li>
</ol>
<p>For basic styling add the base class <code>.beauty-table</code> to <code><table></code>.
</p>
<table class="table beauty-table table-hover">
<thead>
<tr>
<th> </th>
<th>Rank</th>
<th>Mobile OS</th>
<th>Home page</th>
<th>First Release</th>
<th>Last versions</th>
<th>Base kernel</th>
</tr>
</thead>
<tbody>
<tr>
<td>Android</td>
<td><input type="text" value="1"></td>
<td><input type="text" value="46.6%"></td>
<td><input type="text" value="http://android.com"></td>
<td><input type="text" value="23/09/2008"></td>
<td><input type="text" value="4.2.2"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>Sailfish OS</td>
<td><input type="text" value="2"></td>
<td><input type="text" value="17.5%"></td>
<td><input type="text" value="https://sailfishos.org/"></td>
<td><input type="text" value="development"></td>
<td><input type="text" value="alpha"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>CyanogenMod</td>
<td><input type="text" value="3"></td>
<td><input type="text" value="14.2%"></td>
<td><input type="text" value="www.cyanogenmod.org"></td>
<td><input type="text" value="11/07/2010"></td>
<td><input type="text" value="10.2.1"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>FirefoxOS</td>
<td><input type="text" value="4"></td>
<td><input type="text" value="6.3% "></td>
<td><input type="text" value="http://firefoxos.com"></td>
<td><input type="text" value="02/07/2013"></td>
<td><input type="text" value="1.4beta"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>MeeGo</td>
<td><input type="text" value="5"></td>
<td><input type="text" value="2.6%"></td>
<td><input type="text" value="https://meego.com"></td>
<td><input type="text" value="26/05/2010"></td>
<td><input type="text" value="1.2.0.9"></td>
<td><input type="text" value="linux"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<div class="box-name">
<i class="fa fa-table"></i>
<span>Beauty Tables (Inputs in cell+Keyboard navigation)+String Fill</span>
</div>
<div class="box-icons">
<a class="beauty-table-to-json">
Table to JSON
</a>
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="expand-link">
<i class="fa fa-expand"></i>
</a>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
<div class="no-move"></div>
</div>
<div class="box-content">
<h4>Another table with hidden inputs in cell's and keyboard navigation in table, see below</h4>
<ol>
<li><kbd>SHIFT</kbd>+<kbd>arrow key</kbd>-Prev(Next) cell at row/col</li>
<li><kbd>CTRL</kbd>+<kbd>arrow key</kbd>-First(End) cell at row/col</li>
<li><kbd>PgUp/PgDown</kbd>-First(End) cell in table</li>
<li><kbd>Enter/Tab</kbd>-Next cell in table</li>
<li>check <code>String Fill</code> checkbox and after entering in cell- next cell filled same value</li>
<li>Press link Table to JSON in box header and see result</li>
</ol>
<p>For basic styling add the base class <code>.beauty-table</code> to <code><table></code>.
</p>
<table class="table beauty-table table-hover">
<thead>
<tr>
<th><input type="checkbox" name="string-fill">-string fill</th>
<th>Rank</th>
<th>Mobile OS</th>
<th>Home page</th>
<th>First Release</th>
<th>Last version</th>
<th>Base kernel</th>
</tr>
</thead>
<tbody>
<tr>
<td>Android</td>
<td><input type="text" value="1"></td>
<td><input type="text" value="46.6%"></td>
<td><input type="text" value="http://android.com"></td>
<td><input type="text" value="23/09/2008"></td>
<td><input type="text" value="4.2.2"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>Sailfish OS</td>
<td><input type="text" value="2"></td>
<td><input type="text" value="17.5%"></td>
<td><input type="text" value="https://sailfishos.org/"></td>
<td><input type="text" value="development"></td>
<td><input type="text" value="alpha"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>CyanogenMod</td>
<td><input type="text" value="3"></td>
<td><input type="text" value="14.2%"></td>
<td><input type="text" value="www.cyanogenmod.org"></td>
<td><input type="text" value="11/07/2010"></td>
<td><input type="text" value="10.2.1"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>FirefoxOS</td>
<td><input type="text" value="4"></td>
<td><input type="text" value="6.3% "></td>
<td><input type="text" value="http://firefoxos.com"></td>
<td><input type="text" value="02/07/2013"></td>
<td><input type="text" value="1.4beta"></td>
<td><input type="text" value="linux"></td>
</tr>
<tr>
<td>MeeGo</td>
<td><input type="text" value="5"></td>
<td><input type="text" value="2.6%"></td>
<td><input type="text" value="https://meego.com"></td>
<td><input type="text" value="26/05/2010"></td>
<td><input type="text" value="1.2.0.9"></td>
<td><input type="text" value="linux"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function() {
// Run beauty tables plugin on every table with class .beauty-table
$('.beauty-table').each(function(){
// Run keyboard navigation in table
$(this).beautyTables();
// Nice CSS-hover row and col for current cell
$(this).beautyHover();
});
// Attach to click action for create JSON data from tables.
$('.beauty-table-to-json').on('click', function(e){
e.preventDefault();
var table = $(this).closest('.box').find('table');
Table2Json(table);
});
// Add Drag-n-Drop feature
WinMove();
});
</script>