-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (90 loc) · 4.42 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
<html>
<head>
<meta charset="UTF-8">
<link href="index.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="app" class="flex-column">
<div class="file-upload flex-column" v-if="!passData">
<select v-model="plugin">
<option disabled value="">Please, select airline</option>
<option v-for="key in Object.keys(plugins)" v-bind:value="plugins[key]">
{{ plugins[key] }}
</option>
</select>
<input type="file" id="upload" v-on:change="parseFile($event)" v-if="plugin">
</div>
<div id="main-content" class="main-layout flex-column" v-if="passData">
<div class="airline-logo flex-row">
<img v-bind:src="airlineLogo">
</div>
<div class="flight-direction-info flex-column">
<div class="departure-airport flex-column">
<div class="city">{{ passData.departureAirport.city }}</div>
<div class="airport-code">{{ passData.departureAirport.airportCode }}</div>
</div>
<div class="airplane-symbol"><span>✈</span></div>
<div class="destination-airport flex-column">
<div class="city">{{ passData.destinationAirport.city }}</div>
<div class="airport-code">{{ passData.destinationAirport.airportCode }}</div>
</div>
</div>
<div class="qr-code">
<img v-bind:src="passData.qrCodeImage">
</div>
<div class="passanger-info flex-column">
<div class="passanger-name">{{ passData.passenger }}</div>
</div>
<div class="seating-info flex-column">
<div class="flight-number flex-row">
<div class="label">FLIGHT:</div>
<div class="value">{{ passData.flightNumber }}</div>
</div>
<div class="seating-class flex-row">
<div class="label">CLASS:</div>
<div class="value">{{ passData.serviceClass }}</div>
</div>
<div class="seat-number flex-row">
<div class="label">SEAT:</div>
<div class="value">{{ passData.seatNumber }}</div>
</div>
</div>
<div class="flight-info flex-column">
<div class="value">DEPARTURE:</div>
<div class="flight-departure flex-row">
<div class="departure-time">{{ passData.departureTime }}</div>
<div class="departure-date">{{ passData.departureDate }}</div>
</div>
<div class="value">BOARDING:</div>
<div class="boarding-times flex-row">
<div class="boarding-start">START: <b>{{ passData.boardingStart }}</b></div>
<div class="boarding-end">END: <b>{{ passData.boardingEnd }}</b></div>
</div>
</div>
<div class="passanger-baggage">
<div class="checked-baggage">
<div class="label">CHECKED-IN BAGGAGE:</div>
<div v-for="item in passData.checkedBaggage" class="value">{{ item }}</div>
</div>
<div class="hand-baggage">
<div class="label">HAND-LUGGAGE</div>
<div v-for="item in passData.handLuggage" class="value">{{ item }}</div>
</div>
</div>
<div class="barcodes">
<img v-for="src in passData.barCodeImages" v-bind:src="src">
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.js"></script>
<script src="https://cdn.rawgit.com/qaap/pdf417-generator/master/lib/libbcmath.js"></script>
<script src="https://cdn.rawgit.com/qaap/pdf417-generator/master/lib/bcmath.js"></script>
<script src="lib/pdf417.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcode-generator/1.4.1/qrcode.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.3/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.min.js"></script>
<script src="plugins/flyUIA.js"></script>
<script src="plugins/wizzAir.js"></script>
<script src="index.js"></script>
</body>
</html>