-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcsvstack.html
More file actions
77 lines (67 loc) · 2.89 KB
/
Copy pathcsvstack.html
File metadata and controls
77 lines (67 loc) · 2.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>csvstack - csvkit+</title>
<script>
(function () {
var saved = localStorage.getItem('theme');
document.documentElement.setAttribute('data-theme', saved === 'light' ? 'light' : 'dark');
})();
</script>
<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=IBM+Plex+Serif:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=VT323&display=block">
<link rel="stylesheet" href="src/style.css">
</head>
<body class="op-page">
<main class="wrap">
<a class="back-link" href="index.html">← Back</a>
<header class="intro">
<h1 class="title">csvstack</h1>
<p class="lead">Stack multiple CSVs with matching columns into one.</p>
</header>
<div class="drop-zone" id="drop-zone">
<p class="lead">Drop CSV files here, or click to choose them. Add as many as you like.</p>
<input type="file" id="file-input" accept=".csv" multiple hidden>
</div>
<div class="file-chip-list" id="file-chip-list"></div>
<div class="options-panel" id="options-panel">
<button class="run-btn" type="button" id="run-btn">Stack files</button>
</div>
<section class="output-area" id="output-area" aria-live="polite"></section>
<div class="action-row">
<div class="save-row" id="save-row">
<button class="save-btn" type="button" id="save-btn">Save</button>
</div>
<button class="clear-btn" type="button" id="undo-btn">Undo</button>
<button class="clear-btn" type="button" id="redo-btn">Redo</button>
<button class="clear-btn" type="button" id="clear-btn">Clear file</button>
</div>
<div class="save-box" id="save-box">
<label class="field-label" for="save-filename">Filename</label>
<input class="text-input" type="text" id="save-filename" value="new.csv">
<div class="save-box-actions">
<button class="run-btn" type="button" id="save-confirm">Download</button>
<button class="run-btn" type="button" id="save-cancel">Cancel</button>
</div>
</div>
<div class="terminal" id="terminal"></div>
</main>
<footer class="site-footer">
<button class="foot-link" type="button" data-action="about">About</button>
<button class="foot-link" type="button" data-action="donate">Donate</button>
<button class="foot-link theme-toggle" type="button" id="theme-toggle" aria-pressed="false">
Theme
<span class="switch" aria-hidden="true">
<span class="switch-track">
<span class="switch-lever"></span>
</span>
</span>
</button>
</footer>
<script type="module" src="src/script.js"></script>
<script type="module" src="src/csvstack.js"></script>
</body>
</html>