-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
540 lines (524 loc) · 26.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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Style -->
<link href="css/ex.css" rel="stylesheet" crossorigin="anonymous">
<link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet' crossorigin="anonymous">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<!-- Primary Meta Tags -->
<title>Japan License Plate Generator</title>
<meta name="title" content="Japan License Plate Generator">
<meta name="description" content="Easily generate Japan Number Plate texture for your 3D Models or Diecast.">
<meta name="keywords" content="jdm, japan, japanese, license, plate, generator, 日本, ナンバープレート, 3dcg">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="google-site-verification" content="Jj3wBFncCWJS-r6MsqVhuUt65jTXywwt4M2IDVr5FEM" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://mbaharip.github.io/japanLicensePlate_Generator/">
<meta property="og:title" content="jpPlate Generator">
<meta property="og:description" content="Easily generate Japan License Plate texture for your 3D Model">
<meta property="og:image" content="https://github.com/mbahArip/japanLicensePlate_Generator/blob/master/preview_jpPlateGenerator.png?raw=true">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://mbaharip.github.io/japanLicensePlate_Generator/">
<meta property="twitter:title" content="jpPlate Generator">
<meta property="twitter:description" content="Easily generate Japan License Plate texture for your 3D Model">
<meta property="twitter:image" content="https://github.com/mbahArip/japanLicensePlate_Generator/blob/master/preview_jpPlateGenerator.png?raw=true">
<!-- Script -->
<script src="lib/dom-to-image.min.js"></script>
<script src="lib/jszip.min.js"></script>
<script src="lib/FileSaver.min.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7593911584566258"
crossorigin="anonymous"></script>
</head>
<body onload="init()">
<div id="top"></div>
<!-- <div id="navbarMenuBurger">
<div id="navbarBurgerClose" onclick="layoutBurger.burgerClose()">X</div>
<ul>
<li class="burgerMenu">
<button id="btnBurgerGenerator" onclick="layoutBurger.changeBurger(generatorContainer, 'generator')">Generator</button>
</li>
<li class="burgerMenu">
<a href="#result">Result</a>
</li>
<li class="burgerMenu">
<button id="btnBurgerDownload" onclick="layoutBurger.changeBurger(downloadContainer, 'download')">Model Download</button>
</li>
<li class="burgerMenu">
<button id="btnBurgerDiscord">Discord Bot</button>
</li>
<li class="burgerMenu">
<button id="btnBurgerAbout">About</button>
</li>
</ul>
</div> -->
<nav id="navbar">
<div id="navbarLogo">
<img src="img\logo.svg" alt="jpPlateGenerator">
<div class="logoRight">
<span class="version">Version</span>
<a href="https://hits.seeyoufarm.com" class="hitsCounter">
<img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fmbaharip.github.io%2FjapanLicensePlate_Generator%2F&count_bg=%238B5CF6&title_bg=%23202327&icon=github.svg&icon_color=%23F7F9FA&title=Visit&edge_flat=false"/>
</a>
</div>
</div>
<div id="navbarMenu">
<div id="google_translate_element"></div>
<ul>
<!-- <li>
<button id="btnNavGenerator" onclick="layoutNavigation.changePage(generatorContainer, 'generator')">
Generator
<div class="underline"></div>
</button>
</li> -->
<!-- <li>
<a href="#result">
Result
<div class="underline"></div>
</a>
</li> -->
<!-- <li>
<button id="btnNavDownload" onclick="layoutNavigation.changePage(downloadContainer, 'download')">
Model Download
<div class="underline"></div>
</button>
</li> -->
<!-- <li>
<button id="btnNavDiscord" onclick="bot()">
Discord Bot
<div class="underline"></div>
</button>
</li> -->
<!-- <li>
<button id="btnSlideAbout">
About
<div class="underline"></div>
</button>
</li> -->
</ul>
</div>
<div id="navbarBurger" onclick="layoutBurger.burgerOpen()">
<div id="bar1"></div>
<div id="bar2"></div>
<div id="bar3"></div>
</div>
</nav>
<div id="notification">
<!-- Top Notification -->
<div id="noticeChangelog">
<div class="changelogTop">
<span>Last Update</span>
<button id="buttonChangelog" onclick="layoutNotification.expandChangelog()">[ Expand to see details ]</button>
</div>
<div class="changelogExpand">
<table id="changelogTable">
<tr>
<td>
[ Date Placeholder ]
</td>
<td>
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Velit aut fuga quis, debitis iste non.
</td>
</tr>
<tr>
<td>
[ Date Placeholder ]
</td>
<td>
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Velit aut fuga quis, debitis iste non.
</td>
</tr>
<tr>
<td>
[ Date Placeholder ]
</td>
<td>
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Velit aut fuga quis, debitis iste non.
</td>
</tr>
<tr>
<td>
[ Date Placeholder ]
</td>
<td>
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Velit aut fuga quis, debitis iste non.
</td>
</tr>
</table>
</div>
</div>
<div id="noticeTerms">
<div class="termsTop">
<span>Please read usage terms before using this site!</span>
<button id="buttonTerms" onclick="layoutNotification.expandTerms()">[ Expand to see terms ]</button>
</div>
<div class="termsExpand">
<div class="terms">
<h2>By using this website, I agree to this terms.</h2>
<ul>
<li>
<h3>Usage strictly limited for 3D Artist / Game Modding / Diecast</h3>
<p>
User are <span class="bold">NOT ALLOWED</span> to use the texture generated from this site outside for 3D Model / Diecast purpose. <br>
This site are created for Game Modding / 3D Render / Diecast hobby activity only! <br>
</p>
</li>
<li>
<h3>User won't sell / earn profit from stuff on this site as it is.</h3>
<p>
User are <span class="bold">NOT ALLOWED</span> to sell the texture or sample model directly. <br>
However, User are <span class="bold">ALLOWED</span> to sell his own 3D Model using texture or sample model from this site. <br>
</p>
</li>
<li>
<h3>User will hold all responsibility for the texture user generated.</h3>
<p>
<span class="bold">Site owner don't take any responsibility for any misconduct for texture generated by user.</span> <br>
I will close the site if there are a lot of illegal activity because of the texture generated from this site.
</p>
</li>
</ul>
<br>
<h2>Please use this site wisely!</h2>
</div>
</div>
</div>
<div id="noticeWiki">
<span>
For all information and how to generate license plate with correct format, please read the explanation
<a href="https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Japan" target="_blank" rel="noopener noreferrer">[ HERE ]</a>
</span>
</div>
<!-- Important Notice -->
<div id="noticeTranslator" class="importantNotice">
<h2></h2>
<span></span>
</div>
</div>
<div id="generatorContainer">
<!-- Preview Container -->
<div id="previewContainer">
<h1>Live Preview</h1>
<!-- Plate Preview -->
<div id="platePreview" class="bgWhite">
<div id="plateTop" class="filterGreen">
<div id="platePrefecture"></div>
<div id="plateEngine">
<div class="engine1 engineNumber"></div>
<div class="engine2 engineNumber"></div>
<div class="engine3 engineNumber"></div>
</div>
</div>
<div id="plateBottom" class="filterGreen">
<div id="hiragana"></div>
<div id="serial">
<div class="serial1 serialNumber"></div>
<div class="serial2 serialNumber"></div>
<div class="serial3 serialNumber symbol"></div>
<div class="serial4 serialNumber"></div>
<div class="serial5 serialNumber"></div>
<div class="serial6 serialNumber"></div>
</div>
</div>
</div>
<h3 id="plateSize">Plate dimension : 660px x 330px</h3>
</div>
<!-- Input Container -->
<div id="inputContainer">
<h1>Input</h1>
<!-- Input Form -->
<div id="inputForm">
<!-- Car Type -->
<ul id="formType">
<li id="typeVehicle">
<span>Vehicle Type</span>
<select name="inputVehicle" id="inputVehicle" onchange="funcInput.listPlateType()">
<option value="" disabled hidden selected>Vehicle Type</option>
<option value="car">Car</option>
<option value="motorcycle" disabled>Motorcycle - will be added later</option>
</select>
</li>
<li id="typePlate">
<span>Plate Type</span>
<select name="inputPlate" id="inputPlate" onchange="funcPreview.updatePlateType()">
<option value="" disabled hidden selected>Plate Type</option>
<option value="" disabled>Please select Vehicle Type first!</option>
</select>
</li>
<li id="rentalCar" class="carPlate">
<input type="checkbox" name="inputRental" id="inputRental" disabled onchange="funcInput.checkTypeRental()">
<span>Rental Car</span>
</li>
<li id="USMil" class="carPlate">
<input type="checkbox" name="inputUS" id="inputUS" disabled onchange="funcInput.checkTypeUS()">
<span>US Military Personnel</span>
</li>
</ul>
<!-- Region -->
<ul id="formRegion">
<li id="regionRegion">
<span>Region</span>
<select name="inputRegion" id="inputRegion" onchange="funcInput.listPrefecture()">
<option value="" disabled hidden selected>Region</option>
<option value="Hokkaido">Hokkaido</option>
<option value="Tohoku">Tohoku</option>
<option value="Kanto">Kanto</option>
<option value="Chubu">Chubu</option>
<option value="Kansai">Kansai</option>
<option value="Chugoku">Chugoku</option>
<option value="Shikoku">Shikoku</option>
<option value="Kyushu">Kyushu</option>
</select>
</li>
<li id="regionPrefecture">
<span>Prefecture</span>
<select name="inputPrefecture" id="inputPrefecture" onchange="funcInput.listMunicipality()">
<option value="" disabled hidden selected>Prefecture</option>
<option value="" disabled>Please select Region first!</option>
</select>
</li>
<li id="regionMunicipality">
<span>Municipality</span>
<select name="inputMunicipality" id="inputMunicipality" onchange="funcInput.listWard()">
<option value="" disabled hidden selected>Municipality</option>
<option value="" disabled>Please select Prefecture first!</option>
</select>
</li>
<li id="regionWards">
<span>Wards</span>
<select name="inputWards" id="inputWards" onchange="funcPreview.updateRegion()">
<option value="" disabled hidden selected>Wards</option>
<option value="" disabled>Please select Municipality first!</option>
</select>
</li>
</ul>
<!-- Vehicle Identification -->
<ul id="formIdentification">
<li id="identificationEngine">
<span>Vehicle Classification</span>
<label>Please read wiki information first!</label>
<label>Allowed Character:</label>
<label>Number (0-9), and Space</label>
<input type="text" name="inputEngine" id="inputEngine" maxlength="3" autocomplete="off" onkeyup="funcPreview.updateEngine()" onkeypress="return filterEngine(event)">
</li>
<li id="identificationHiragana">
<span>Hiragana Character</span>
<label>Please read wiki information first!</label>
<select name="inputHiragana" id="inputHiragana" onchange="funcPreview.updateHiragana()">
<option value="" disabled hidden selected>Hiragana</option>
<option value="" disabled>Please select Plate Type first!</option>
</select>
</li>
<li id="identificationSerial">
<span>Serial Number</span>
<label>Allowed Character:</label>
<label>Number (0-9), Dash (-), Dot (.), and Space.</label>
<label >Input example : (27-40) (.. 41) ( .111)</label>
<input type="text" name="inputSerial" id="inputSerial" maxlength="6" autocomplete="off" onkeyup="funcPreview.updateSerial()" onkeypress="return filterSerial(event)">
</li>
</ul>
<!-- Generate Option -->
<ul id="formOption">
<li id="optionScale">
<span>Render Scale</span>
<label>Min = 1; Max = 5</label>
<input type="number" name="inputScale" id="inputScale" max="5" min="1" value="1" autocomplete="off" onchange="funcInput.updateSizePreview()">
</li>
<li id="optionHeight">
<input type="checkbox" name="inputHeight" id="inputHeight" onclick="funcInput.resetDownload()">
<span>Generate Normal Map</span>
</li>
<li id="termsAgreement">
<input type="checkbox" name="agreement" id="agreement" onchange="funcButton.terms()">
<span>I have read, and agree to the <a href="javascript:void(0)" onclick="funcInput.viewTerms()">usage terms</a> of this website.</span>
</li>
<li id="optionWarning">
<span>Please Read!</span>
<span>For game, 2x scale are more than enough!</span>
</li>
</ul>
<!-- Generate Button -->
<ul id="formButton">
<li id="buttonGenerate">
<button disabled onclick="funcGenerate.render()">Render</button>
</li>
<li id="buttonDownload">
<button disabled onclick="funcButton.download()">Download</button>
</li>
<li id="buttonReset">
<button onclick="funcButton.reset()">Reset</button>
</li>
</ul>
</div>
</div>
<!-- Result Container -->
<div id="result">
<h1>Generated Image</h1>
<div id="resultSize"></div>
<!-- Waiting for input -->
<!-- Result Container -->
<div id="resultWait">
<img src="img\loading.svg" alt="loading...">
<h2>Waiting for input...</h2>
</div>
<div id="resultContainer">
<div id="generatedDiffuse">
<div class="diffuse"></div>
<span>Diffuse Map</span>
</div>
<div id="generatedHeight">
<!-- <div class="normalCanvas" style="display: none"></div> -->
<div class="height"></div>
<span>Normal Map</span>
</div>
<div id="generatedSeal">
<div class="seal">
<i class='bx bxs-x-circle'></i>
</div>
<span>Seal Texture</span>
</div>
<div id="generatedSealNrm">
<div class="sealNrm">
<i class='bx bxs-x-circle'></i>
</div>
<span>Seal Texture</span>
</div>
</div>
<div id="aboutNormal">
<span>
I'm currently still searching method for generating normal map texture. <br>
You can use <a href="https://cpetry.github.io/NormalMap-Online/" target="_blank" rel="noopener noreferrer">[ This Site ]</a> for generating normal map, till i found a way to generate it myself.
</span>
</div>
</div>
</div>
<div id="downloadContainer">
<div id="modelDownload">
<h1>Model Download</h1>
<span>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ut, iure!</span>
<div class="preview">
<img src="img\mdl\preview1.png" alt="Preview Front" loading="lazy">
<img src="img\mdl\preview2.png" alt="Preview Rear" loading="lazy">
</div>
<div class="info">
<h2>Model Information</h2>
<table>
<tr>
<th>Tris</th>
<td>10570</td>
</tr>
<tr>
<th>Faces</th>
<td>4873</td>
</tr>
<tr>
<th>Texture Resolution</th>
<td>4096 * 4096</td>
</tr>
</table>
</div>
<div class="download">
<h2>Download Link</h2>
<ul>
<li>
<a href="img\mdl\mbahArip_jpPlate_blend.rar">Blender file</a> | <a href="img\mdl\mbahArip_jpPlate_fbx.rar">FBX</a> | <a href="img\mdl\mbahArip_jpPlate_obj.rar">OBJ</a>
</li>
<li>
<a href="img\mdl\mbahArip_jpPlate_template.rar">Texture Template</a>
</li>
</ul>
</div>
</div>
</div>
<div id="discordContainer">
<div id="discordDescription">
<h1>Discord Server</h1>
<img src="" alt="Server Header" loading="lazy">
<p>
For more easier method, I create discord bot for generating the texture. <br>
You can invite the bot to your server, host the bot in your own server, or join the server.
</p>
<a href="http://" target="_blank" rel="noopener noreferrer">[ Invite Bot ]</a>
<a href="http://" target="_blank" rel="noopener noreferrer">[ Join Public Server ]</a>
</div>
<div id="discordCommand">
<h1>Command</h1>
<p>
[] = Needed Arguments <br>
() = Optional Arguments <br>
prefix : g! <br><br>
<h3>g!generate [vehType] [plateType] [region] [engine] [hiragana] [serial] (scale) (normal)</h3> <br>
main command, generate the plate texture. <br>
vehType = car | bike <br>
plateType = regular | commercial | kregular | kcommercial <br>
region = wards name. use g!region for more info <br>
engine = 3 digit engine classification <br>
hiragana = 1 hiragana character. use g!hiragana for more info <br>
serial = 5 digit - 6 digit serial. accepted character = [0-9] [.] [-] [space] <br>
scale = scale the texture. resolution (default: 660px x 330px) * scale (default: 1). <br>
normal = yes | no. generate normal map. <br>
</p>
</div>
</div>
<div id="notification">
<!-- Bottom Notification -->
</div>
<div id="footer">
<div id="github">
<span>View source code here</span>
<div class="repository">
<a href="https://github.com/mbahArip/japanLicensePlate_Generator/" target="_blank" rel="noopener noreferrer"><i class="bx bxl-github"></i> Github Repository</a>
</div>
</div>
<div id="contact">
<span>If you found any Bugs or Problem, or if you have any Request feel free to message me at</span>
<div class="contact">
<a href="https://twitter.com/mbahArip_" target="_blank" rel="noopener noreferrer"><i class='bx bxl-twitter'></i> Twitter</a> -
<a href="https://github.com/mbahArip/" target="_blank" rel="noopener noreferrer"><i class='bx bxl-github'></i> Github</a> -
<a href="https://www.facebook.com/Kanoon48Graphics/" target="_blank" rel="noopener noreferrer"><i class='bx bxl-facebook-circle'></i> Facebook</a>
</div>
</div>
<div id="donate">
<span>If you like this project, please</span>
<div class="donation">
<!-- <div class="kofi">
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script>
<script type='text/javascript'>
kofiwidget2.init('Support Me on Ko-fi', '#4a3d70', 'B0B03UE0T');
kofiwidget2.draw();
</script>
</div> -->
<div class="paypal">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="modstorage.48@gmail.com">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="item_name" value="jp Plate Generator Donation">
<input type="hidden" name="currency_code" value="USD">
<input type="image" name="submit" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_donate_92x26.png" alt="Donate">
<img alt="" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>
</div>
</div>
</div>
</div>
</body>
<script src="js/exVar.js"></script>
<script src="js/exLayout.js"></script>
<script src="js/exFunc.js"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement(
{
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>
</html>