forked from mr54ndm4n/JSON-Comparator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (83 loc) · 2.82 KB
/
index.html
File metadata and controls
84 lines (83 loc) · 2.82 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>JSON Comparator</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.4.2/css/bulma.css">
<meta name="msapplication-TileColor" content="#02a8f4">
<meta name="theme-color" content="#02a8f4">
<style media="screen">
#noti{
display: none;
}
</style>
</head>
<body>
<div class="container box">
<div class="box">
<h1 class="title is-1">JSON Comparator</h1>
<div class="notification is-primary is-active" id="noti">
Primar lorem ipsum dolor sit amet, consectetur
adipiscing elit lorem ipsum dolor sit amet,
consectetur adipiscing elit
</div>
<div class="columns">
<div class="column">
<div class="field">
<label class="label">JSON A</label>
<p class="control">
<textarea class="textarea" id="json_a" placeholder="JSON A Here!">{"eiei": {"wow": "bear", "jellato" : "gum"}, "key": "val", "diff_val": "a"}</textarea>
</p>
</div>
</div>
<div class="column">
<div class="field">
<label class="label">JSON B</label>
<p class="control">
<textarea class="textarea" id="json_b" placeholder="JSON B Here!">{"foo": "bar", "jellato": "gum", "diff_val": "b"}</textarea>
</p>
</div>
</div>
</div>
<div class="column">
<div class="field">
<p class="control">
<button class="button is-success" onclick="onClick()">Submit</button>
</p>
</div>
</div>
<div class="column">
<h2 class="title is-2">Result</h2>
<table class="table" id="table">
<thead>
<tr>
<th>Path</th>
<th>JSON_A</th>
<th>JSON_B</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="column">
<div class="field">
<p class="control">
<button class="button is-success" onclick="onClickMerge()">Merge</button>
</p>
</div>
</div>
<div class="column">
<div class="field">
<label class="label">Merged JSON</label>
<p class="control">
<textarea class="textarea" id="json_merge" placeholder="Merged JSON will be here!">{}</textarea>
</p>
</div>
</div>
</div>
</div>
<script src="./app.js" charset="utf-8"></script>
</body>
</html>