mirror of
https://github.com/samsonjs/json-diff.git
synced 2026-03-25 09:25:48 +00:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<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>
|