-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (113 loc) · 6.24 KB
/
index.html
File metadata and controls
125 lines (113 loc) · 6.24 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Smart Contract</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.2.7-rc.0/web3.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-lg bg-light">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="./reg_customer.html">Register Customer</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="./reg_driver.html">Register Driver</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./login_customer.html">Login Customer</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./login_driver.html">Login Driver</a>
</li>
<li class="nav-item">
<a class="nav-link"></a>
</li>
</ul>
</div>
</div>
</nav>
<section id="cover" class="min-vh-100">
<div id="cover-caption">
<div class="container">
<div class="row text-white">
<div class="col-xl-5 col-lg-6 col-md-8 col-sm-10 mx-auto text-center form p-4">
<h1 style="color: black" class="display-4 py-2 text-truncate">Register Customer</h1>
<div class="px-2">
<!--<form action="" class="justify-content-center">
<div class="form-group">
<label class="sr-only text-primary">User Name</label>
<input type="text" class="form-control" id="inputArea0" placeholder="Jane Doe">
</div>
<div class="form-group">
<label class="sr-only text-primary">User Password</label>
<input type="password" class="form-control" id="userpass" placeholder="sfasf3298@">
</div>
<div class="form-group">
<label class="sr-only text-primary">User Email</label>
<input type="text" class="form-control" id="usermail" placeholder="jane.doe@example.com">
</div>
<br>
<button onclick="reg_customer()" type="submit" class="btn btn-primary btn-lg">Register</button>
</form>-->
<div class="form-group">
<label class="sr-only text-primary">User Name</label>
<input type="text" class="form-control" id="inputArea0" placeholder="Jane Doe">
</div>
<div class="form-group">
<label class="sr-only text-primary">User Password</label>
<input type="password" class="form-control" id="userpass" placeholder="sfasf3298@">
</div>
<div class="form-group">
<label class="sr-only text-primary">User Email</label>
<input type="text" class="form-control" id="usermail" placeholder="jane.doe@example.com">
</div>
<br>
<button onclick="reg_customer()" type="submit" class="btn btn-primary btn-lg">Register</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!--
<button onclick="login_customer()">CUSTOMER LOGIN</button> <br>
<p id="dataArea5">Customer not logged in</p> <br>
<button onclick="reg_driver()">REGISTER DRIVER</button> <br>
<input type="text" id="inputArea1"> <br>
<input type="text" id="inputArea2"> <br>
<p id="dataArea8">Driver not registered</p> <br>
<button onclick="login_driver()">DRIVER LOGIN</button> <br>
<p id="dataArea6">Driver not logged in</p> <br>
<button onclick="req_ride()">REQUEST RIDE</button> <br>
<input type="text" id="inputArea3"> <br>
<input type="text" id="inputArea4"> <br>
<p id="dataArea3">Let's go on a ride!</p> <br>
<button onclick="place_bet()">PLACE BET</button> <br>
<input type="text" id="inputArea5"> <br>
<input type="text" id="inputArea6"> <br>
<input type="text" id="inputArea7"> <br>
<p id="dataArea4">Bet on a ride!</p> <br>
<button onclick="see_req()">SEE REQUESTS</button> <br>
<p id="dataArea1">View ride requests</p> <br>
<button onclick="get_driver()">GET DRIVER</button> <br>
<input type="text" id="inputArea8"> <br>
<p id="dataArea2">Get your driver</p> <br>
-->
<script src="backend.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"
integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.min.js"
integrity="sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk"
crossorigin="anonymous"></script>
</body>
</html>