-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
82 lines (76 loc) · 2.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" manifest="manifest.appcache" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="shortcut icon" href="./favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="description"
content="JSON compare tool, which first sorts the JSON object and then compares them."
/>
<meta
name="keywords"
content="json compare, json sort and compare, diff, compare, sort, json, alphabetically, sort json, sort and diff, sort and compare"
/>
<title>JSON abc and diff</title>
<link rel="stylesheet" href="./app.css" />
<link rel="stylesheet" href="./diffview.css" />
<link
href="https://fonts.googleapis.com/css?family=Spectral"
rel="stylesheet"
/>
<script src="./bundle.js"></script>
</head>
<body>
<h1>JSON ABC and Diff</h1>
<form onsubmit="appSort(event, 't1', 't2')">
<div class="texts">
<input type="text" class="text" placeholder="name" />
<input type="text" class="text" placeholder="name" />
</div>
<div class="boxes">
<textarea
id="t1"
class="t"
name="jsonabc1"
placeholder="Paste your first unsorted JSON here"
aria-label="Paste your first JSON here"
spellcheck="false"
required
aria-required="true"
></textarea>
<textarea
id="t2"
class="t"
name="jsonabc2"
placeholder="Paste your second unsorted JSON here"
aria-label="Paste your second JSON here"
spellcheck="false"
required
aria-required="true"
></textarea>
</div>
<div>
<input
type="submit"
class="b"
value="SORT and COMPARE"
data-Was-onclick="sort()"
/>
</div>
</form>
<pre class="d h" id="diff"></pre>
<h3 class="c">
<a href="https://github.com/ShivrajRath/jsonsortdiff" target="_blank"
>Github</a
>
<a class="s" target="_blank" href="https://www.buymeacoffee.com/rath"
>Buy me a coffee</a
>
</h3>
</body>
</html>