-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (70 loc) · 2.49 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>FiRe Validator</title>
<link rel="stylesheet" href="css/foundation.min.css" type="text/css">
<link rel="stylesheet" href="css/validator.css" type="text/css">
</head>
<body class="bkg_fire">
<div class="row">
<div class="small-12 columns">
<h1>FIRE Data Validator</h1>
<textarea name="json" id="json" rows="10" placeholder="Enter FIRE data here"></textarea>
</div>
<div class="small-9 columns">
<p class="validation-message"></p>
</div>
<div class="small-3 columns text-right">
<button class="button" onclick="prettify()">Format JSON</button>
<button class="button" onclick="validate()">Validate</button>
</div>
</div>
<div class="row">
<div class="small-12 columns">
<div id="results" class="accordion" data-accordion data-allow-all-closed="true">
<div class="template result accordion-item" data-accordion-item>
<a href="#" class="accordion-title">
<span class="status">●</span>
<span class="name"></span>
</a>
<div class="accordion-content" data-tab-content>
<p>
<a class="schema-link" href="#">View schema</a>
<span class="error-none-message">- No errors</span>
</p>
<table class="error-table">
<thead>
<tr>
<th width="150">Error Type</th>
<th width="150">Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="template error-row">
<td class="error-row-type"></td>
<td class="error-row-field"></td>
<td class="error-row-description"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-2.2.3.min.js" type="text/javascript"></script>
<script src="js/foundation.min.js" type="text/javascript"></script>
<script src="js/ajv.min.js" type="text/javascript"></script>
<script src="js/utils.js" type="text/javascript"></script>
<script src="js/logger.js" type="text/javascript"></script>
<script src="js/schemas.js" type="text/javascript"></script>
<script src="js/validator.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$(document).foundation();
});
</script>
</body>
</html>