This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
forked from brettdewoody/react-easy-sortable-table
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
88 lines (76 loc) · 2.23 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv='Content-type' content='text/html; charset=utf-8'>
<title>React Table Component</title>
<style type="text/css">
table {
max-width: 100%;
background-color: transparent;
border: 1px solid #ddd;
margin: 0 auto;
border-collapse: collapse;
}
caption {
font-weight: bold;
font-size: 1.2em;
}
table > thead > tr > th,
table > thead > tr > td {
background: #f8f0f0;
cursor: pointer;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
padding: 1em;
vertical-align: top;
border: 1px solid #ddd;
}
table > thead > tr > th,
table > thead > tr > td {
vertical-align: bottom;
border-bottom: 2px solid #ddd;
text-align: left;
white-space: nowrap;
text-transform: capitalize;
}
table > thead > tr > th:focus,
table > thead > tr > th:hover,
table > thead > tr > td:focus,
table > thead > tr > td:hover{
color: #ddd;
background-color: #666;
outline: none;
}
table > thead > tr > th > span.icon{
margin-left: .3em;
}
table > thead > tr > th.asc > span.icon:after,
table > thead > tr > td.asc > span.icon:after {
content: "▲";
}
table > thead > tr > th.desc > span.icon:after,
table > thead > tr > td.desc > span.icon:after {
content: "▼";
}
table tbody{
height: 500px;
overflow: hidden;
}
span.offscreen {
position: absolute !important;
clip: rect(1px 1px 1px 1px);
/* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
</style>
</head>
<body>
<div id="table"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="./build/react-with-addons.js"></script>
<script src="./build/app.js"></script>
</body>
</html>