forked from evictorero/smiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
59 lines (53 loc) · 1.7 KB
/
header.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
<!DOCTYPE html>
<html>
<head>
<style>
.sortable-table {
width: 100%;
border-collapse: collapse;
font-family: Arial, sans-serif;
}
.sortable-table th,
.sortable-table td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}
.sortable-table th {
cursor: pointer;
}
.sortable-table th:hover {
background-color: #f5f5f5;
}
.sortable-table .asc:after {
content: ' ▲';
}
.sortable-table .desc:after {
content: ' ▼';
}
#filter-input {
margin-bottom: 10px;
padding: 5px;
width: 200px;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/jquery.tablesorter.widgets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.3/js/widgets/widget-filter.min.js"></script>
<script>
$(document).ready(function() {
$('.sortable-table').tablesorter({
theme: 'blue',
widgets: ['zebra', 'filter'],
widgetOptions: {
filter_external: '#filter-input',
filter_columnFilters: true,
filter_hideFilters: false,
filter_cellFilter: true
}
});
});
</script>
</head>
<body>