-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
98 lines (94 loc) · 4.86 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
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Falcon - simple JSON diff tool</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Piotr Kafel, Karolina Rusin">
<meta name="description" content="Falcon - simple JSON diff tool">
<meta name="keywords" content="JSON, json, json diff, json difference, falcon, falcon json diff">
<meta name="robots" content="index, follow">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/bootstrap/html5shiv.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery.hotkeys.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="http://rawgit.com/pkafel/json-diff/master/json-diff.js"></script>
<script type="text/javascript" src="js/json-diff-presenter.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</head>
<body>
<!-- Github ribbon -->
<a href="https://github.com/pkafel/falcon">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"/>
</a>
<!-- -->
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<div class="page-header">
<h1>
Falcon <small>simple JSON diff tool</small>
</h1>
</div>
<form id="compare-form">
<div class="row clearfix">
<div class="col-md-6 column form-group">
<label class="control-label" for="json1">First JSON</label>
<textarea id="json1" name="json1" class="form-control vresize min-height-400" rows="12">{"a": 1}</textarea>
</div>
<div class="col-md-6 column form-group">
<label class="control-label" for="json2">Second JSON</label>
<textarea id="json2" name="json2" class="form-control vresize min-height-400" rows="12">{"a": "1"}</textarea>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="well well-sm" style="display: table;vertical-align: middle;width: 100%;">
<span class="hide-when-small">
<span class="shortcut-title">Shortcuts</span>
<span class="shortcut">ctrl+m</span>
<span class="shortcut-description">change mode</span>
<span class="shortcut">ctrl+enter</span>
<span class="shortcut-description">compare JSONs</span>
</span>
<div class="btn-toolbar pull-right" style="vertical-align: middle;display: table-cell">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
<span id="strategy">Compare by Key and Value</span>
<span class="caret"></span></button>
<ul id="strategy-list" class="dropdown-menu">
<li value='0'><a href="#">Compare by Key and Value</a></li>
<li value='1'><a href="#">Compare by Key</a></li>
</ul>
<button type="submit" class="btn btn-primary" style="vertical-align: middle;display: table-cell">Submit</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
<div id="diff-rep-container" class="row clearfix">
<div class="col-md-12 column">
<label for="diff-rep">Result</label>
<div id="diff-rep" class="panel-default"></div>
<button id="back-button" class="btn btn-default pull-right">Back</button>
</div>
</div>
</div>
<footer role="contentinfo">
<div class="container text-center">
<div class="row">
<div class="col-md-12">
<hr/>
<p>All rights reserved @ 2015</p>
</div>
</div>
</div>
</footer>
</body>
</html>