-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
89 lines (85 loc) · 3.51 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Passport MRZ Example</title>
<script type="text/javascript" src="mrz.js"></script>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="index.js"></script>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<input id="mrz" type="text" size="90" min="48" max="90" value="P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<L898902C<3UTO6908061F9406236ZE184226B<<<<<14" />
<button id="parse" name="parse">Parse</button>
<div>
<div class="sampleInput">
<label for="sampleInput1">Example Type 3 (2 lines of 44 characters)</label>
<pre id="sampleInput1">
P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<
L898902C<3UTO6908061F9406236ZE184226B<<<<<14
</pre>
</div>
<div class="sampleInput">
<label for="sampleInput2">Invalid (?) example Type 1 (3 lines of 30 characters)</label>
<pre id="sampleInput2">
IDAUT10000999<6<<<<<<<<<<<<<<<
7109094F1112315AUT<<<<<<<<<<<6
MUSTERFRAU<<ISOLDE<<<<<<<<<<<<
</pre>
</div>
<div class="sampleInput">
<label for="sampleInput3">Example Type 1 (3 lines of 30 characters)</label>
<pre id="sampleInput3">
IDBEL590335801485120100200<<<<
8512017F0901015BEL<<<<<<<<<<<<
REINARTZ<<ULRIKE<KATIA<E<<<<<<
</pre>
</div>
<div class="sampleInput">
<label for="sampleInput4">Invalid example Type 3 (2 lines, first of 44 characters, second truncated)</label>
<pre id="sampleInput4">
IDFRABERTHIER<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
9409923102854CORINNE<<<<<<<6512068F4
</pre>
</div>
<div class="sampleInput">
<label for="sampleInput5">Example Type 1 (3 lines of 30 characters)</label>
<pre id="sampleInput5">
IOHRV000000000000000000000<<<<
0000000M0000000HRV<<<<<<<<<<<0
UZORAK<<SPECIMEN<<<<<<<<<<<<<<
</pre>
</div>
<div class="sampleInput">
<label for="sampleInput6">Example Type 3 (2 lines of 44 characters)</label>
<pre id="sampleInput6">
P<GBRJENNINGS<<PAUL<MICHAEL<<<<<<<<<<<<<<<<<
0123456784GBR5011025M0810050<<<<<<<<<<<<<<00
</pre>
</div>
<div class="sampleInput">
<label for="sampleInput7">Example Type 3 (2 lines of 44 characters)</label>
<pre id="sampleInput7">
P<HRVSPECIMEN<<SPECIMEN<<<<<<<<<<<<<<<<<<<<<
0070070071HRV8212258F1407019<<<<<<<<<<<<<<06
</pre>
</div>
</div>
<div>
<div class="message"></div>
<table>
<tr><th>Property</th><th>Value</th></tr>
<tr><td>Document type</td><td id="documentType"></td></tr>
<tr><td>Issuing country or organization</td><td id="issuer"></td></tr>
<tr><td>Last name</td><td id="lastName"></td></tr>
<tr><td>Other names</td><td id="otherNames"></td></tr>
<tr><td>Document number</td><td id="documentNumber"></td></tr>
<tr><td>Nationality</td><td id="nationality"></td></tr>
<tr><td>Date of birth</td><td id="birthDate"></td></tr>
<tr><td>Sex</td><td id="sex"></td></tr>
<tr><td>Date of expiry</td><td id="expiryDate"></td></tr>
<tr><td>Personal number</td><td id="personalNumber"></td></tr>
</table>
</div>
</body>
</html>