-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·123 lines (120 loc) · 4.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>FlightSurety</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.min.css"
rel="stylesheet"
/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link
rel="stylesheet"
type="text/css"
href="./src/dapp/flightsurety.css"
/>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="./src/dapp/index.js" type="module"></script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">FlightSurety</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarsExampleDefault"
aria-controls="navbarsExampleDefault"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="./index.html"
>Insurance Purchase
<span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item active">
<a
class="nav-link"
href="./src/dapp/airlineRegistration.html"
>Airline Registration
<span class="sr-only">(current)</span></a
>
</li>
</ul>
</div>
<button
class="btn btn-outline-success"
type="button"
id="connect-web3"
>
Connect Web3
</button>
</nav>
<main class="container">
<h2 style="text-align: center; font-weight: bold">
Insurance Purchase
</h2>
<div class="row top-20">
<label class="form">Airline</label>
<input
type="text"
id="airline-buyer"
value="0xFEf9e1acC08407C3986378b55F984789B7Ea5775"
/>
<label class="form"> Flight </label>
<input type="text" id="flight-number" value="MX0812" />
<label class="form"> Time </label>
<input type="text" id="flight-time" value="20210215" />
</div>
<div class="row top-20">
<btn
class="btn btn-primary"
id="register-flight"
style="margin-left: 2em"
>Register Flight</btn
>
<btn
class="btn btn-primary"
id="submit-oracle"
style="margin-left: 2em"
>Fetch Flight Status</btn
>
</div>
<br />
<br />
<div class="row top-20">
<label class="form">Insurance Value</label>
<input type="text" id="insurance-val" value="1" />ETH
</div>
<div class="row top-20">
<btn
class="btn btn-primary"
id="buy-insurance"
style="margin-left: 2em"
>Buy Insurance</btn
>
<btn
class="btn btn-primary"
id="withdraw-funds"
style="margin-left: 2em"
>Withdraw Proceeds</btn
>
</div>
<br />
<div style="text-align: center">
<span id="display-wrapper"></span>
</div>
</main>
</body>
</html>