-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_old.html
More file actions
204 lines (165 loc) · 5.66 KB
/
Copy pathindex_old.html
File metadata and controls
204 lines (165 loc) · 5.66 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Advanced JSON Viewer</title>
<link rel="stylesheet" href="stylo.css">
<script type="text/javascript" src="jq.js"></script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="storage.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script type="text/javascript" src="https://rawgit.com/vitmalina/w2ui/master/dist/w2ui.min.js"></script>
<!-- Include from a free CDN -->
<script src="https://cdn.rawgit.com/caldwell/renderjson/master/renderjson.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/vitmalina/w2ui/master/dist/w2ui.min.css" />
<style>
.view-json-area {
}
#view-container {
text-shadow: none;
background: #303030;
padding: 1em;
overflow-y: auto;
width: 98%;
height: 100%;
}
.renderjson>span {
line-height: 20px;
}
.renderjson a {
text-decoration: none;
color: wheat;
}
.renderjson .disclosure {
color: crimson;
font-size: 150%;
}
.renderjson .syntax {
color: grey;
}
.renderjson .string {
color: red;
}
.renderjson .number {
color: #FF5722;;
}
.renderjson .boolean {
color: plum;
}
.renderjson .key {
color: #00bcd4f5;
}
.renderjson .keyword {
color: lightgoldenrodyellow;
}
.renderjson .object.syntax {
color: lightseagreen;
}
.renderjson .array.syntax {
color: lightsalmon;
}
.string {
color: #FF9800 !important;
}
#error-div {
position: absolute;
top: 30px;
border: none;
right: 10px;
color: red;
font-size: 15px;
}
pre {
outline: none !important;
}
.tab-parent {
height: 29px;
}
</style>
</head>
<body>
<div class="main-container">
<div id="tabs" class="tab-parent"></div>
<div class="features-area">
<div class="viewer">View</div>
<div class="format">Format</div>
<div class="compact">Compact</div>
<div class="clear-text" style="display: none;">Clear</div>
<div class="share-text">Share</div>
<div class="rename-tab">Rename Tab</div>
<div class="txt-tab-name" style="display: none;"><input type="text"></div>
<div class="about">About</div>
<div class="next-tab" title="Add New Tab">+</div>
<p id="error-div"></p>
</div>
<div id="tab-content">
<!-- <div id="tab-input-data" class="textinput-area"></div> -->
<textarea name="input-text" id="txt-json-expected" class="txtarea-inp" placeholder="Enter JSON text here"></textarea>
<div id="view-container" style="display: none;" class="view-json-area"></div>
</div>
</div>
<div id="dialogAbout" style="display: none;" title="About">
<div style="margin-top: 40px;">
Convert JSON string to readable format.
<!-- <br>
<br>
This application use following libraries:
<br>
<br>
For <strong>Tab View</strong> it uses <a href="http://w2ui.com/web/" style="outline: none;" target="_blank">W2UI</a>
<br>
For <strong>JSON View</strong> it uses <a href="http://caldwell.github.io/renderjson/" target="_blank">RenderJSON</a>
<br>
<br> -->
<br>
<br>
<br>
<br>
Fork this project at github <a href="https://github.com/ri3tykity/ri3tykity.github.io" target="_blank">Ri3tyKity</a>
</div>
</div>
<script type="text/javascript">
var prevActiveTabData = null;
var aboutDialog = null;
$(document).ready(function(){
XOXO_APP.initApp();
$('.next-tab').on('click', function(){
XOXO_APP.addTab();
});
txtAreaRemoveSpellCheck();
$('#txt-json-expected').on('change', function(){
XOXO_APP.setTabData(w2ui.tabs.active, $(this).val());
});
initAboutDialog();
});
function txtAreaRemoveSpellCheck() {
$('#txt-json-expected').focusin(function(){
$(this).attr('spellcheck', false);
});
$('#txt-json-expected').focusout(function() {
$(this).attr('spellcheck', false);
//forceSpellcheck($(this));
});
}
function initAboutDialog() {
aboutDialog = $("#dialogAbout").dialog({
resizable: false,
autoOpen: false,
height: 300,
width: 400,
position: {
my: "center",
at: "center",
of: window
},
modal: true,
Cancel: function () {
$(this).dialog("close");
}
});
}
</script>
<script src="scripto.js"></script>
</body>
</html>