-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (62 loc) · 2.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>table2csv</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap">
</head>
<body>
<div class="tb-container">
<h1 class="title">TABLE2CSV</h1>
<table id="myTable" class="table">
<thead class="table__thead">
<tr class="table__thead__tr">
<th class="table__thead__tr__th">Name</th>
<th class="table__thead__tr__th">Age</th>
<th class="table__thead__tr__th">Occupation</th>
<th class="table__thead__tr__th">Location</th>
</tr>
</thead>
<tbody class="table__tbody">
<tr class="table__tbody__tr">
<td class="table__tbody__tr__td">Homer Simpson</td>
<td class="table__tbody__tr__td">39</td>
<td class="table__tbody__tr__td">Nuclear Safety Inspector</td>
<td class="table__tbody__tr__td">Springfield</td>
</tr>
<tr class="table__tbody__tr">
<td class="table__tbody__tr__td">Marge Simpson</td>
<td class="table__tbody__tr__td">36</td>
<td class="table__tbody__tr__td">Housewife</td>
<td class="table__tbody__tr__td">Springfield</td>
</tr>
<tr class="table__tbody__tr">
<td class="table__tbody__tr__td">Bart Simpson</td>
<td class="table__tbody__tr__td">10</td>
<td class="table__tbody__tr__td">Student</td>
<td class="table__tbody__tr__td">Springfield</td>
</tr>
<tr class="table__tbody__tr">
<td class="table__tbody__tr__td">Lisa Simpson</td>
<td class="table__tbody__tr__td">8</td>
<td class="table__tbody__tr__td">Student</td>
<td class="table__tbody__tr__td">Springfield</td>
</tr>
<tr class="table__tbody__tr">
<td class="table__tbody__tr__td">Maggie Simpson</td>
<td class="table__tbody__tr__td">1</td>
<td class="table__tbody__tr__td">-</td>
<td class="table__tbody__tr__td">Springfield</td>
</tr>
</tbody>
</table>
<button onclick="downloadCSV()" class="button">DOWNLOAD CSV</button>
</div>
<script src="script.js"></script>
</body>
</html>