forked from samsonjs/json-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (33 loc) · 1.41 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
<html>
<head>
<title>JSON Diff</title>
<meta charset=utf8>
<link rel="stylesheet" href="css/json-diff.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<h1>json-diff</h1>
<div class="contentbox" id="instructions">
<ul>
<li>Paste some JSON in each of the text fields. Click "Compare" to see the diff.</li>
<li>Changed portions are displayed in <span class="changed">yellow</span>. Additions are displayed in <span class="added">green</span>. Deletions are displayed in <span class="removed">red</span>.</li>
<li>It also works as a JSON viewer. Click the disclosure triangles to display/hide portions of the JSON.</li>
<li>Invalid JSON is indicated by the text fields turning red.</li>
<li>Swap the contents of the text areas by clicking "Swap". Clear them by clicking "Clear".</li>
</ul>
</div>
<div class="contentbox" id="inputs">
<textarea id="jsonA">
</textarea>
<textarea id="jsonB">
</textarea>
<input type="button" value="Compare" id="compare" />
<input type="button" value="Swap" id="swap" />
<input type="button" value="Clear" id="clear" />
</div>
<p align=center id=first style=display:none><a href=#change-0>first change</a></p>
<div class="contentbox" id="results">
</div>
<script src="js/lib/jsond.js?v=1" type="text/javascript" charset="utf-8"></script>
<script src="js/app.js?v=1" type="text/javascript" charset="utf-8"></script>
</body>
</html>