This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
78 lines (70 loc) · 2.04 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<script src="upstream/jquery-1.4a2.js"></script>
<script src="upstream/jquery.tablesorter.js"></script>
<script src="jquery.table_editor.js"></script>
<script src="table_editor_util.js"></script>
<script src="table_editor_cellinput.js"></script>
<script src="table_editor_filter.js"></script>
<script src="table_editor_cellinfo.js"></script>
<script src="table_editor_cellnav.js"></script>
<script>
$(function(){
var te = new TableEditor($('#items'));
});
</script>
</head>
<body>
<div id="items" data-ajax-root="/items">
<table cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>name</th>
<th data-type="integer">level</th>
<th data-attr="damage_prob" data-type="number">damage prob</th>
<th data-type="select" data-values="slot 1:slot 2:slot 3">slot</th>
<th data-type="checkbox" data-values="✓">drop</th>
</tr>
</thead>
<tbody>
<tr>
<td>foo</td>
<td class="number">2</td>
<td class="number">0.4</td>
<td>slot 1</td>
<td style="text-align:center">✓</td>
</tr>
<tr>
<td>bar</td>
<td class="number">3</td>
<td class="number">0.4</td>
<td>slot 2</td>
<td style="text-align:center"></td>
</tr>
<tr>
<td>baz</td>
<td class="number">10</td>
<td class="number">0.4</td>
<td>slot 3</td>
<td style="text-align:center"></td>
</tr>
<tr>
<td>qux</td>
<td class="number">5</td>
<td class="number">0.000121</td>
<td>slot 1</td>
<td style="text-align:center">✓</td>
</tr>
<tr>
<td>quux</td>
<td class="number">102</td>
<td class="number">0.213132</td>
<td>slot 2</td>
<td style="text-align:center"></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>