-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
180 lines (158 loc) · 8.79 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>json-coder</title>
<!-- Fonts and icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<!-- Google Fonts -->
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Arima+Madurai:400,700|Baumans|Acme" />
<!-- Bootstrap CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
<!-- stylesheets -->
<link rel="stylesheet" href="css/main.css" type="text/css">
</head>
<body>
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="index.html"><i class="fa fa-code"></i> json-coder</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 active" data-toggle="tooltip" data-placement="bottom" title="Home">
<a class="nav-link" href="index.html">HOME <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item" data-toggle="tooltip" data-placement="bottom" title="About the coder!">
<a class="nav-link" href="about.html">ABOUT</a>
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item" data-toggle="tooltip" data-placement="bottom" title="prabhuomkar">
<a class="nav-link" href="https://github.com/prabhuomkar/json-coder" target="_blank"><span>GitHub <i class="fa fa-1x fa-github" aria-hidden="true"></i></span></a>
</li>
</ul>
</div>
</div>
</nav>
<div class="wrapper">
<div class="container">
<div class="row">
<div class="col-md-6 text-center">
<img src="images/code1.png" alt="Circle Image" class="center-block img-responsive">
</div>
<div class="col-md-6 text-center" style="margin: auto;">
<div class="name">
<h4 class="title"><i class="fa fa-code"></i> json-coder</h4>
</div>
<h4>. . . not familiar with <code>json</code>?</h4>
<!-- Button trigger modal -->
<button type="button" class="btn btn-light btn-sm" data-toggle="modal" data-target="#myModal">CLICK HERE!</button>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<center>
<textarea class="form-control" rows="8" id="json-response" placeholder="Enter JSON Response or JSON link"></textarea>
</center>
</div>
<div id="form-response"></div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<div class="form-group">
<button type="reset" class="btn btn-danger btn-sm clr-field"><i class="fa fa-trash"></i> Clear</button>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
<div class="form-group">
<button type="submit" class="btn btn-success pull-right btn-sm" id="submit-json-btn"><i class="fa fa-check-circle"></i> GET PARSING CODE</button>
</div>
</div>
</div>
<div class="row mt-4 mb-2" id="show-box">
<div class="col-lg-6 col-md-6 col-sm-12">
<h4>Pretty <code>JSON</code></h4>
<div class="card">
<div class="card-body">
<pre id="pretty-code">Paste some json data in the textbox</pre>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<h4>Parsing Code for Android (Java)</h4>
<div class="card">
<div class="card-body">
<pre id="java-code">Get your json data for android here</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<nav class="pull-left">
<ul>
<li>
<a href="https://www.facebook.com/op1111?ref=br_rs" target="_blank">
<i class="fa fa-facebook"></i> Facebook
</a>
</li>
<li>
<a href="https://www.instagram.com/prabhu.omkar/?hl=en" target="_blank">
<i class="fa fa-instagram"></i> Instagram
</a>
</li>
</ul>
</nav>
<div class="copyright pull-right">
© 2017 - made with <i class="fa fa-heart heart"></i> by prabhuomkar & designed by mazsam
</div>
</div>
</footer>
<!-- Modal Core -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><span><i class="fa fa-code"></i> json-coder</span></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<center>
<h5>What is JSON?</h5>
<p>JSON stands for "JavaScript Object Notation" and is pronounced "Jason" (like in the Friday the 13th movies). It's meant to be a human-readable and compact solution to represent a complex data structure and facilitate data-interchange between systems.</p>
<h5>Why use JSON?</h5>
<p>There are tons of reasons why you would want to use JSON:<br>
It's human readable... if it's properly formatted :-P
It's compact because it doesn't use a full markup structure, unlike XML
It's easy to parse, especially in JavaScript
A gazillion JSON libraries are available for most programming languages
The data structure is easy to understand.</p>
</center>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success btn-sm" data-dismiss="modal">GOT IT!</button>
</div>
</div>
</div>
</div>
<!-- scripts !-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/beautify-web/js-beautify/v1.10.3/js/lib/beautify.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/jsoncoder.js"></script>
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
<script src="js/nouislider.min.js" type="text/javascript"></script>
<!-- Plugin for the Datepicker, full documentation here: http://www.eyecon.ro/bootstrap-datepicker/ -->
<script src="js/bootstrap-datepicker.js" type="text/javascript"></script>
</body>
</html>