-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (43 loc) · 2.11 KB
/
index.html
File metadata and controls
54 lines (43 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SAR Data Schema Validator</title>
<link rel="stylesheet" href="./styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
</head>
<body>
<div class="container">
<header>
<h1>SAR Data Schema Validator</h1>
</header>
<nav class="main-nav">
<a href="#" class="nav-link active" id="nav-validator">Validator</a>
<a href="#" class="nav-link" id="nav-schema-viewer">Schema Viewer</a>
<a href="https://github.com/GeoCodable/BEAD-SAR-CSVLint/blob/main/README.md" class="nav-link" target="_blank">About / Documentation</a>
</nav>
<hr class="separator">
<div id="validator-view" class="content-view">
<p class="description">Upload CSV files below. Use the individual 'Validate' buttons to test one file, or click 'Validate All' to process the entire set against the BEAD SAR schemas.</p>
<div class="validate-btn-container">
<button class="validate-all-btn" id="validateAllBtn" onclick="runAllValidations()">Validate All Uploaded Files</button>
</div>
<div id="validation-interface"></div>
<div id="loading" style="display:none; text-align:center; margin-top:20px;">
<p>Processing validation request(s)... Please wait.</p>
</div>
</div>
<div id="schema-viewer-view" class="content-view" style="display:none;">
<h2>View Data Schemas (.json)</h2>
<p class="description">Select a schema from the list below to view the raw JSON validation rules used by the CSVLint API.</p>
<div id="schema-list-container" class="schema-list-container">
</div>
<div id="schema-display-container">
<pre id="schema-content" class="schema-content-pre">Select a schema to view its content.</pre>
</div>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>