-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
382 lines (378 loc) · 14.4 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Quick POJO | Pojo Builder | Getter & Setter Maker</title>
<meta
name="viewport"
content="width=device-width,initial-scale=1,user-scalable=no"
/>
<meta
name="description"
content="Making POJO from web shouldn't be hard. It shouldn't require dozens of lines to write But most of all, it is extrimaly fast By javascript. That's why Quick POJO exists."
/>
<meta property="og:title" content="quickpojo" />
<meta property="og:description" content="To create the POJO on fly ;)" />
<meta property="og:url" content="https://github.com/pol-alok/quickpojo" />
<meta
property="og:image"
content="https://pol-alok.github.io/quickpojo/images/quick_pojo.png"
/>
<link
rel="icon"
href="./images/browser-icon-114x114.png"
type="image/x-icon"
/>
<link
rel="shortcut icon"
sizes="114x114"
href="./images/browser-icon-114x114.png"
/>
<link rel="stylesheet" href="./codemirror-5.57.0/doc/docs.css" />
<link rel="stylesheet" href="./codemirror-5.57.0/lib/codemirror.css" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="./codemirror-5.57.0/theme/darcula.css" />
<link
rel="stylesheet"
href="./codemirror-5.57.0/addon/hint/show-hint.css"
/>
<script src="./codemirror-5.57.0/lib/codemirror.js"></script>
<script src="./codemirror-5.57.0/addon/mode/loadmode.js"></script>
<script src="./codemirror-5.57.0/mode/meta.js"></script>
<script src="./codemirror-5.57.0/addon/selection/active-line.js"></script>
<script src="./codemirror-5.57.0/addon/edit/matchbrackets.js"></script>
<script src="./codemirror-5.57.0/addon/hint/show-hint.js"></script>
<script src="./codemirror-5.57.0/mode/clike/clike.js"></script>
<script src="./codemirror-5.57.0/addon/display/placeholder.js"></script>
<!-- Bootstrap cdns -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.2/jquery.validate.min.js"
integrity="sha512-UdIMMlVx0HEynClOIFSyOrPggomfhBKJE28LKl8yR3ghkgugPnG6iLfRfHwushZl1MOPSY6TsuBDGPK2X4zYKg=="
crossorigin="anonymous"
></script>
<!-- saprator -->
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"
integrity="sha384-LtrjvnR4Twt/qOuYxE721u19sVFLVSA4hf/rRt6PrZTmiPltdZcI7q7PXQBYTKyf"
crossorigin="anonymous"
></script>
<!-- fontawsome -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<!-- clipboard js -->
<script src="./clipboard/dist/clipboard.min.js"></script>
<!-- fonts -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900"
/>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<header class="header gradient text-center bg-light shadow-sm">
<img class="img-fluid mt-5" src="./images/quick_pojo.png" alt="logo" />
<h4 class="subtitle">
Create your POJO on fly <i class="far fa-grin-alt"></i>
</h4>
<p class="gh-btns">
<!-- Place this tag where you want the button to render. -->
<a
class="github-button"
href="https://github.com/pol-alok/quickpojo"
data-color-scheme="no-preference: dark; light: dark; dark: dark;"
data-size="large"
data-show-count="true"
aria-label="Star pol-alok/quickpojo on GitHub"
>Star</a
>
<a
class="github-button"
href="https://github.com/pol-alok/quickpojo/subscription"
data-color-scheme="no-preference: dark; light: dark; dark: dark;"
data-icon="octicon-eye"
data-size="large"
data-show-count="true"
aria-label="Watch pol-alok/quickpojo on GitHub"
>Watch</a
>
<a
class="github-button"
href="https://github.com/pol-alok/quickpojo/fork"
data-color-scheme="no-preference: dark; light: dark; dark: dark;"
data-icon="octicon-repo-forked"
data-size="large"
data-show-count="true"
aria-label="Fork pol-alok/quickpojo on GitHub"
>Fork</a
>
</p>
</header>
<div class="container">
<div class="row mt-3">
<div class="col-md-6 p-3">
<form method="POST" action="" id="user-input" name="user-input">
<div class="row">
<div class="col-md-8">
<div class="card shadow-lg">
<div class="card-header text-center"><b>Create New</b></div>
<div class="card-body">
<div class="row">
<div class="col-3">
<h5>class</h5>
</div>
<div class="col-6">
<input
type="text"
class="form-control form-control-sm mb-2 alvl"
name="class"
id="class"
placeholder="Example"
/>
</div>
<div class="col-3 text-center">
<h5>{</h5>
</div>
</div>
<div id="dyn"></div>
<div class="form-row">
<div class="col-5">
<input
type="text"
class="form-control form-control-sm mb-2 dtvl"
id="datatype"
name="datatype_VrD100"
placeholder="data type"
/>
</div>
<div class="col-5">
<input
type="text"
class="form-control form-control-sm mb-2 alvl"
name="fieldname_VrD100"
id="fieldname"
placeholder="field name"
/>
</div>
<div class="col-2">
<div class="row">
<div class="col-md-12 text-center">
<button
type="button"
class="btn btn-link"
onclick="addVariable()"
>
<i class="fas fa-plus-circle"></i>
</button>
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="col-4">
<h5>}</h5>
</div>
</div>
<div class="card-footer">
<div class="form-row">
<div class="col-md-6 text-center">
<a
id="clear"
class="btn btn-sm btn-block btn-danger mb-2"
>
Clear
<i class="fas fa-broom"></i>
</a>
</div>
<div class="col-md-6 text-center">
<button
type="submit"
class="btn btn-sm btn-block btn-primary mb-2"
>
Generate
<i class="fa fa-arrow-circle-right"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4 p-0">
<div class="mt-5">
<div class="row">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="noArgConstructor"
name="noArgConstructor"
checked
/>
<label class="form-check-label" for="noArgConstructor"
>No Arg constructor</label
>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="allArgConstructor"
name="allArgConstructor"
/>
<label class="form-check-label" for="allArgConstructor"
>All Arg constructor</label
>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="getter"
name="getter"
checked
/>
<label class="form-check-label" for="getter"
>Getter</label
>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="setter"
name="setter"
checked
/>
<label class="form-check-label" for="setter"
>Setter</label
>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="equals"
name="equals"
/>
<label class="form-check-label" for="equals"
>equals()</label
>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="hashCode"
name="hashCode"
/>
<label class="form-check-label" for="hashCode"
>hashCode()</label
>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-12">
<div class="form-check">
<input
type="checkbox"
class="form-check-input"
id="toStr"
name="toStr"
/>
<label class="form-check-label" for="toStr"
>toString()</label
>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="col-md-6 p-3 mb-5">
<div class="card shadow-lg">
<div class="card-header text-center">
<div class="text-right">
<span id="msg" class="text-success d-none">Copied!</span>
<button
class="btn btn-outline-default border shadow-sm"
data-toggle="tooltip"
title="Copy"
onclick="showMsg()"
>
<i class="far fa-clipboard"></i>
</button>
</div>
</div>
<div class="card-body">
<textarea
id="code"
name="code"
placeholder="Your POJO will be here soon..."
></textarea>
</div>
</div>
</div>
</div>
</div>
<footer>
<div
class="card-footer text-muted text-center fixed-bottom border-top flex-column flex-md-row bg-white"
>
<p class="card-text">
Made with <span class="love">♥</span> by
<a
class="text-primary"
target="_blank"
href="https://pol-alok.github.io/portfolio/"
>Raviaknt Pal</a
>
</p>
</div>
</footer>
<script src="./js/crud.js"></script>
<script src="./js/main.js"></script>
<script src="./js/validation.js"></script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>