-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
36 lines (31 loc) · 858 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="csv2html.js"></script>
<meta charset="UTF-8">
<title>csv2html</title>
<style type="text/css">
h1 {
text-align: center;
}
#test-table th, td {
padding-left: 5px;
padding-right: 5px;
}
#test-table, .table-header, .table-body, .table-end {
border: 1px solid black;
}
.table-header, .table-end {
font-weight: bold;
}
</style>
</head>
<body>
<h1>CSV to HTML with SUM function</h1>
<table id="test-table"></table>
<script>
var config = {table_id: "test-table", table_header_class: "table-header", table_body_class: "table-body", table_end_class: "table-end", sum_ignore_string: "-", delimiter: ','}
csv2html_GET_file("test_data.csv", config, csv2html_convert); //call function to download csv file using HTTP GET request
</script>
</body>
</html>