-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
85 lines (75 loc) · 3.33 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
<!DOCTYPE HTML>
<html>
<head>
<title>Editor</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="cache-control" content="public,max-age=2592000">
<link rel="stylesheet" type="text/css" href="./dist/jsoneditor.min.css">
<link rel="stylesheet" type="text/css" href="./dist/bootstrap/css/bootstrap.min.css">
<link rel="icon" href="./dist/json.png">
<link rel="shortcut icon" href="./dist/json.png">
<style type="text/css">
code {
background-color: #f5f5f5;
}
#jsoneditor {
width: 800px;
height: 500px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-primary mb-4">
<a class="navbar-brand" href="/"><strong>{JSON}</strong>Editor</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="return editor.setMode('code');">Code Editor</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="return editor.setMode('form');">Form</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="return editor.setMode('tree');">Tree</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="return editor.setMode('view');">View</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" onclick="return editor.setMode('text');">Text (Raw)</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-8" id="jsoneditor"></div>
<div class="col-4">
<div class="alert alert-primary">
<div>
<strong>Load file from disk : </strong> <br/>
<input class="btn btn-outline-primary" type="file" id="loadDocument" value="Load"/>
</div>
<p> </p>
<div>
<strong>Save loaded JSON as File : </strong>
<input class="btn btn-primary" type="button" id="saveDocument" value="Save" />
<p> </p>
</div>
</div>
</div>
</div>
</div>
<script src="./dist/jsoneditor.min.js"></script>
<script src="./dist/FileSaver.min.js"></script>
<script src="./dist/setting.min.js"></script>
<footer class="footer" style="color:#b4b4b4;text-align: center;">
<p> </p>
<p> </p>
<a style="color:#b4b4b4;" href="https://github.com/rahulmukherjee85/JSON-Viewer">Open source</a> tool to Create, Update, Delete and Format JSON Object using Browser based tool.
</footer>
</body>
</html>