-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (89 loc) · 3.92 KB
/
index.html
File metadata and controls
101 lines (89 loc) · 3.92 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
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>swtool — Spacewalk Converter</title>
<link rel="stylesheet" href="/styles/main.scss" />
</head>
<body>
<header class="py-3 border-bottom">
<div class="container">
<h1 class="h4 mb-0 fw-semibold">swtool</h1>
<p class="text-secondary small mb-0">Convert Spacewalk text files (.swt) to binary HDF5 (.sw)</p>
</div>
</header>
<main class="container py-5">
<!-- Mode cards (click to select mode, drag to convert directly) -->
<div class="row mb-4">
<div class="col-12 drop-zones-col">
<div class="drop-zones-row">
<div class="mode-card" data-mode="single_point">
<div id="drop-zone-ballstick" class="drop-zone-image" role="button" tabindex="0"
aria-label="Select ball and stick mode or drop file here">
<span class="drop-zone-overlay">Drop ball & stick model here or click to load a file</span>
<div class="drop-zone-spinner d-none">
<div class="spinner-border-lg text-white" role="status">
<span class="visually-hidden">Converting…</span>
</div>
</div>
</div>
<p class="mode-card-label">Ball & Stick</p>
</div>
<div class="mode-card" data-mode="multi_point">
<div id="drop-zone-pointcloud" class="drop-zone-image" role="button" tabindex="0"
aria-label="Select point cloud mode or drop file here">
<span class="drop-zone-overlay">Drop point cloud model here or click to load a file</span>
<div class="drop-zone-spinner d-none">
<div class="spinner-border-lg text-white" role="status">
<span class="visually-hidden">Converting…</span>
</div>
</div>
</div>
<p class="mode-card-label">Point Cloud</p>
</div>
</div>
</div>
</div>
<div id="input-panel" class="row justify-content-center d-none">
<div class="col-12 col-md-8 col-lg-6">
<div class="border rounded p-4 mb-4">
<!-- Mode indicator -->
<div id="mode-indicator" class="mb-3 fw-medium"></div>
<!-- File picker -->
<div class="mb-4">
<label for="file-input" class="form-label text-secondary small">Choose from file system</label>
<input id="file-input" type="file" accept=".swt" class="form-control form-control-sm" />
</div>
<!-- URL input -->
<div class="mb-4">
<label for="url-input" class="form-label text-secondary small">Fetch from URL</label>
<div class="input-group">
<input id="url-input" type="url" class="form-control"
placeholder="https://…/file.swt" />
<button id="url-fetch-btn" class="btn btn-outline-secondary" type="button">Fetch</button>
</div>
</div>
<!-- Staged file indicator -->
<div id="staged-file" class="alert alert-light d-flex align-items-center gap-2 mb-4 d-none">
<span id="staged-file-name"></span>
</div>
<!-- Status / feedback -->
<div id="status-area"></div>
<!-- Convert / Cancel buttons -->
<div id="action-buttons" class="d-flex gap-2 d-none">
<button id="convert-btn" class="btn btn-primary" type="button">Convert</button>
<button id="cancel-btn" class="btn btn-outline-secondary" type="button">Cancel</button>
</div>
</div>
</div>
</div>
</main>
<footer class="py-3 border-top text-center text-secondary small">
<div class="container">
No data leaves your browser — conversion runs entirely client-side.
</div>
</footer>
<script type="module" src="/src/main.js"></script>
</body>
</html>