-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (70 loc) · 2.8 KB
/
index.html
File metadata and controls
75 lines (70 loc) · 2.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSV Table Inspector</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>📊 CSV Table Inspector</h1>
<p>Preview, sort, and analyze CSV files in-browser</p>
</header>
<div class="upload-section">
<label for="fileInput" class="file-label">
<span class="file-icon">📁</span>
<span class="file-text">Choose CSV File</span>
</label>
<input type="file" id="fileInput" accept=".csv" />
<span id="fileName" class="file-name"></span>
</div>
<div id="controls" class="controls hidden">
<div class="control-group">
<label for="filterColumn">Filter Column:</label>
<select id="filterColumn">
<option value="">Select column...</option>
</select>
</div>
<div class="control-group">
<label for="filterValue">Filter Value:</label>
<input type="text" id="filterValue" placeholder="Enter filter text..." />
</div>
<div class="control-group">
<button id="applyFilter" class="btn btn-primary">Apply Filter</button>
<button id="clearFilter" class="btn btn-secondary">Clear Filter</button>
</div>
<div class="control-group export-group">
<button id="exportCSV" class="btn btn-success">Export as CSV</button>
<button id="exportJSON" class="btn btn-success">Export as JSON</button>
<button id="showStats" class="btn btn-info">Show Column Stats</button>
</div>
</div>
<div id="statsModal" class="modal hidden">
<div class="modal-content">
<div class="modal-header">
<h2>Column Statistics</h2>
<button id="closeStats" class="close-btn">×</button>
</div>
<div id="statsContent" class="stats-content">
</div>
</div>
</div>
<div id="tableContainer" class="table-container hidden">
<div class="table-info">
<span id="rowCount">0 rows</span>
<span class="separator">|</span>
<span id="columnCount">0 columns</span>
</div>
<div class="table-wrapper">
<table id="dataTable">
<thead id="tableHead"></thead>
<tbody id="tableBody"></tbody>
</table>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>