-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (130 loc) · 5.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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Boarding-Pass Barcode QR Generator</title>
<meta name="description" content="Flight Boarding Pass QR Code Generator that can create any Boarding Code for any flight.">
<link rel="stylesheet" href="./css/style.css" />
<link rel="icon" href="./img/favicon.png">
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body id="body" onload="start()" >
<header>
<h1><a href="./">PASS<span>GEN</span></a></h1>
<ul class="menu">
<li><label class="btn" for="qrCodeInput" title="Upload boarding pass QR-Code"><span class="mdi--qrcode-plus"></span></label>
<li><a class="btn" href="#open-modal"><span class="mdi--edit"></span></a>
<li><a class="btn" title="Permalink to save in bookmark" id="bookmark" href="#"><span class="mdi--bookmark-plus"></span></a>
</ul>
</header>
<div class="wrapper">
<main>
<div>
<div id="errMsg"></div>
<div id="qrcode" class="qrcode">
<img id="theimg2" src="./img/loading.gif" />
<canvas style="display:none;" id="theimg3"></canvas>
<div id="textEdit"></div>
</div>
</div>
<div id="open-modal" class="modal-window">
<div class="background"></div>
<div class="foreground">
<a href="#" title="Close" class="modal-close"><span class="mdi--close-thick"></span></a>
<h2>Settings</h2>
<div id="inputArea">
<div class="row">
<div class="column">
<label for="firstName">First name</label>
<input id="firstNameEd" name="firstName" type="text" value="" placeholder="John" oninput="formatName(true)">
</div>
<div class="column">
<label for="firstName">Last name</label>
<input id="lastNameEd" name="lastName" type="text" value="" placeholder="Doe" oninput="formatName(true)">
</div>
<div class="column">
<label for="bookingRef">Booking-Ref</label>
<input id="bookRefEd" name="bookingRef" type="text" value="" placeholder="XYZ123" oninput="formatField('bookRef', true)">
</div>
<div class="column">
<label for="date">Date</label>
<input id="dateEd" for="date" type="date" oninput="formatDay(true)">
</div>
<div class="column">
<label for="from">From</label>
<input id="fromEd" name="for" type="text" value="" placeholder="HAM" oninput="formatField('from', true)">
</div>
<div class="column">
<label for="to">To</label>
<input id="toEd" for="to" type="text" value="" placeholder="FRA" oninput="formatField('to', true)">
</div>
<div class="column">
<label for="flightOps">Flight Operator</label>
<input id="fOpEd" name="flightOps" type="text" placeholder="LH" value="" oninput="formatField('fOp',true)">
</div>
<div class="column">
<label for="number">Flightnumber</label>
<input id="fNumEd" name="number" type="text" value="" placeholder="1234" oninput="formatField('fNum', true)">
</div>
<div class="column">
<label for="seat">Seat</label>
<input id="seatNumEd" name="seat" type="text" value="" placeholder="35A" oninput="formatSeat(true)">
</div>
<div class="column">
<label for="class">Class</label>
<select id="classSel" name="class" onchange="formatClass(true)">
<option value="Y">Economy</option>
<option value="C">Business</option>
<option value="F">First</option>
</select>
</div>
<div class="column hide">
<label for="seqNum">Sequence Number</label>
<input name="seqNum" id="seqNumEd" value="0000" onchange="formatField('seqNum', true)">
</div>
<div class="column hide">
<label for="dayOfYearEd">Day of year</label>
<input id="dayOfYearEd" value="0" disabled>
</div>
<div class="column hide">
<label for="eccSelect">Error correction</label>
<select id="eccSelect" onchange="update()" disabled>
<option value="0">-1</option>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
</div>
<h2>QR Code</h2>
<div class="row">
<div class="column">
<label for="size">Render size</label>
<input id="symSize" name="size" type="number" onchange="update()" value="11">
</div>
<div class="column">
<label for="format">QR Code Format</label>
<select name="format" id="codeTypeSel" onchange="typeUpdate()">
<option value="0">aztec</option>
<option value="1">pdf417</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="push"></div>
</main>
</div>
<footer>
<div id="copyright">Use at own risk | <a target="_blank" href="https://github.com/bitnulleins/BoardingPass-QR-Code-Generator" title="Source code on GitHub">GitHub</a></div>
</footer>
<div id="reader" width="600px" height="600px" class="hide"></div>
<input type="file" id="qrCodeInput" accept="image/*" onchange="loadQRCode(this)">
<script src="./js/qrcode-generator.js"></script>
<script src="./js/html5-qrcode.js"></script>
<script src="./js/frontend.js"></script>
</body>
</html>