-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (55 loc) · 1.33 KB
/
index.html
File metadata and controls
60 lines (55 loc) · 1.33 KB
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
<html>
<head>
<title>Spreadsheet</title>
</head>
<body>
<link rel="stylesheet" href="https://cdn.datatables.net/2.3.6/css/dataTables.dataTables.css"/>
<script src="https://code.jquery.com/jquery-4.0.0.js"></script>
<script src="https://cdn.datatables.net/2.3.6/js/dataTables.js"></script>
<script>
$(document).ready( function () {
const options = {
ajax: {
url: 'spreadsheet.json',
dataSrc: ''
},
columns: [
{ data: 'Name' },
{ data: 'Type' },
{ data: 'Free volume' },
{ data: 'Shelf life' },
{ data: 'Download count' },
{ data: 'Language' },
{ data: 'Application' }
],
paging: false
};
const table = $('#spreadsheet').DataTable(options);
} );
</script>
<table id="spreadsheet" class="display">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Free volume</td>
<td>Shelf life</td>
<td>Download count</td>
<td>Language</td>
<td>Application</td>
</tr>
</thead>
<tfoot>
<tr>
<td>Name</td>
<td>Type</td>
<td>Free volume</td>
<td>Shelf life</td>
<td>Download count</td>
<td>Language</td>
<td>Application</td>
</tr>
</tfoot>
</table>
</body>
</html>