-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (79 loc) · 2.84 KB
/
index.html
File metadata and controls
93 lines (79 loc) · 2.84 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
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
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JSON / CSV to CSV Converter</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="wrapper">
<div class="panel filelist-panel">
<h2>Uploaded JSON Files</h2>
<ul id="fileNameList"></ul>
</div>
<div class="panel">
<h1>JSON / CSV to CSV Converter</h1>
<label for="jsonFile">Upload JSON File(s):</label>
<input type="file" id="jsonFile" accept="application/json" multiple />
<label for="csvFile">Upload CSV File:</label>
<input type="file" id="csvFile" accept=".csv" />
<p id="fileNameDisplay" class="filename-display"></p>
<div class="dropdown-row">
<label for="typeSelect">Type:</label>
<select id="typeSelect"></select>
</div>
<div class="dropdown-row">
<label for="valueSelect">Value:</label>
<select id="valueSelect"></select>
</div>
<div class="dropdown-row hidden" id="valueFilterFieldRow">
<label for="valueFilterField">Filter By:</label>
<select id="valueFilterField"></select>
</div>
<div class="dropdown-row hidden" id="valueFilterValueRow">
<label for="valueFilterValue">Where Equals:</label>
<select id="valueFilterValue"></select>
</div>
<div class="dropdown-row">
<label for="startSelect">Start:</label>
<div class="combo-field">
<select id="startSelect"></select>
<label class="checkbox-label">
<input type="checkbox" id="startCombine" />
+ Time
</label>
<select id="startSelect2" class="hidden"></select>
</div>
</div>
<div class="dropdown-row">
<label for="endSelect">End:</label>
<div class="combo-field">
<select id="endSelect"></select>
<label class="checkbox-label">
<input type="checkbox" id="endCombine" />
+ Time
</label>
<select id="endSelect2" class="hidden"></select>
</div>
</div>
<div class="button-group">
<button id="generateCsv" disabled>Generate CSV</button>
<button id="downloadCsvBtn" class="hidden">Download CSV</button>
</div>
</div>
<div class="panel preview-panel">
<h2>JSON Preview (First 3 Items)</h2>
<pre id="jsonPreview"></pre>
<div id="previewContainer">
<h2>CSV Preview (First 3 Rows)</h2>
<table id="csvPreviewTable" border="1">
<thead></thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>