-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomePage.html
267 lines (262 loc) · 9.04 KB
/
homePage.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home-Page</title>
<link rel="stylesheet" href="nav.css" />
<link rel="stylesheet" href="signup.css" />
</head>
<body>
<div id="navbar">
<div>
<img
src="https://www.revv.co.in/grapheneImages/newopen/logo.svg"
alt="company-logo"
/>
<div><h5>Sanitised.Safe</h5></div>
</div>
<div id="nav2">
<button id="hyundai"><b>Hyundai</b> subscription</button>
<button id="mahindra"><b>Mahindra</b> subscription</button>
<h3><a href="Faqs.html">FAQs</a></h3>
<input type="submit" id="login" value="➡️Login & Signup" />
<div id="myModal" class="modal">
<!-- Modal content -->
<form class="modal-content">
<span class="close">×</span>
<!-- <p>Some text in the Modal..</p> -->
<h3>LOGIN</h3>
<input type="email" id="email" placeholder="Enter Email" />
<input type="password" id="password" placeholder="Enter Password" />
<p>
<a href="https://www.gmail.com/"
>Send a new password to my email ID</a
>
</p>
<button type="submit" id="signin" onclick="Login();">Login</button>
<p>
Don't have an account?<span id="signup" onclick="signUp();"
>Sign Up</span
>
</p>
<div id="google">
<button>
<a
href="https://accounts.google.com/signin/v2/identifier?ec=hpp_signin_001&flowName=GlifWebSignIn&flowEntry=ServiceLogin"
>
<img
src="https://www.patterson.k12.ca.us/UserFiles/Servers/Server_18037253/Templates/login-google.png"
style="width: 200px"
/></a>
</button>
<button>
<a href="https://www.facebook.com/">
<img
src="https://unidaddy.com/media/images/social/login-facebook.png"
style="width: 200px"
/></a>
</button>
</div>
</form>
</div>
<div id="myModelSignUp" class="modal">
<!-- Modal content -->
<form class="modal-content">
<span class="close" onclick="closeSignup();">×</span>
<!-- <p>Some text in the Modal..</p> -->
<h3>LOGIN</h3>
<input type="email" id="email" placeholder="Enter Email" />
<input type="password" id="password" placeholder="Enter Password" />
<p>
<a href="https://www.gmail.com/"
>Send a new password to my email ID</a
>
</p>
<button type="submit" id="signin" onclick="Login();">Login</button>
<p>
Don't have an account?<span id="signup" onclick="signUp()"
>Sign Up</span
>
</p>
<div id="google">
<button>
<a
href="https://accounts.google.com/signin/v2/identifier?ec=hpp_signin_001&flowName=GlifWebSignIn&flowEntry=ServiceLogin"
>
<img
src="https://www.patterson.k12.ca.us/UserFiles/Servers/Server_18037253/Templates/login-google.png"
style="width: 200px"
/></a>
</button>
<button>
<a href="https://www.facebook.com/">
<img
src="https://unidaddy.com/media/images/social/login-facebook.png"
style="width: 200px"
/></a>
</button>
</div>
</form>
</div>
<!-- Sign up pop up page -->
<div id="myModal1" class="modal1">
<!-- Modal content -->
<form class="modal-content1">
<span class="close1">×</span>
<!-- <p>Some text in the Modal..</p> -->
<h3>Signup</h3>
<input type="email" id="email1" placeholder="Enter Email" />
<input
type="password"
id="password1"
placeholder="Enter Password"
/>
<p>
<a href="https://www.gmail.com/"
>Send a new password to my email ID</a
>
</p>
<button type="submit" id="signup" onclick="sinupUser();">
Sign up
</button>
<!-- <p>Don't have an account?<span id="signup">Sign Up</span></p> -->
<div id="google">
<button>
<a
href="https://accounts.google.com/signin/v2/identifier?ec=hpp_signin_001&flowName=GlifWebSignIn&flowEntry=ServiceLogin"
>
<img
src="https://www.patterson.k12.ca.us/UserFiles/Servers/Server_18037253/Templates/login-google.png"
style="width: 200px"
/></a>
</button>
<button type="button" class="btn btn-primary">
<img
src="https://unidaddy.com/media/images/social/login-facebook.png"
style="width: 200px"
/>
<!-- <a href="https://www.facebook.com/">
<img
src="https://unidaddy.com/media/images/social/login-facebook.png"
style="width: 200px"
/></a> -->
</button>
</div>
</form>
</div>
<!-- signup pop up ends -->
</div>
</div>
<div id="container">
<div id="crouser">
<img
src="https://i.postimg.cc/0QPV2RzN/1st.jpg"
alt="Senitised car"
id="crousers"
/>
<button id="left"><</button>
<button id="right">></button>
<form>
<!-- Rentals and subscription div -->
<div id="optional">
<!-- Rental div -->
<div>
<h2>Rentals</h2>
<p>For hours & days</p>
<div class="arrowDown"></div>
</div>
<!-- subscription div -->
<div>
<h2>Subscriptions</h2>
<p>For months & years</p>
</div>
</div>
<div class="middle">
<img
src="https://www.revv.co.in/imgs/logo-rentals.svg"
alt="rentals"
/>
<h3>Self drive car rentals in india</h3>
</div>
<div id="inputs">
<select>
<option>Select Location</option>
<option>Banglore</option>
<option>Hyderabad</option>
<option>Mumbai</option>
<option>Delhi-NCR</option>
<option>Chennai</option>
<option>Pune</option>
<option>Kolkata</option>
<option>Ahmedabad</option>
<option>Bhubaneswar</option>
<option>Mysore</option>
<option>Tirupati</option>
<option>Jaipur</option>
</select>
<input type="date" id="timing" placeholder="Start Time" />
<input type="date" id="timing" placeholder="End Time" />
<input type="submit" id="submit" value="Search" />
</div>
</form>
</div>
</div>
</body>
</html>
<script>
let imagesLink = [
"https://i.postimg.cc/0QPV2RzN/1st.jpg",
"https://i.postimg.cc/d0tqSKTK/2nd.png",
"https://i.postimg.cc/85FcCV4V/3rdL.png",
];
let leftBtn = document.getElementById("left");
let rightBtn = document.getElementById("right");
let crousers = document.getElementById("crousers");
let imageState = 0;
rightBtn.addEventListener("click", function () {
imageState++;
if (imageState === imagesLink.length) {
imageState = 0;
}
crousers.src = imagesLink[imageState];
});
leftBtn.addEventListener("click", function () {
imageState--;
if (imageState < 0) {
imageState = imagesLink.length - 1;
}
crousers.src = imagesLink[imageState];
});
</script>
<script src="login.js"></script>
<script src="signup.js"></script>
<script
language="JavaScript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"
></script>
<script
type="text/javascript"
src="https://code.jquery.com/jquery-1.11.3.min.js"
></script>
<script
type="text/javascript"
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
></script>
<script>
function signUp() {
$("#myModal").css("display", "none");
$("#myModal1").modal("toggle");
$("#myModal1").modal("show");
}
function closeSignup() {
$("#myModal1").css("display", "none");
}
function sinupUser() {
var email1 = $("#email1").val();
var password1 = $("#password1").val();
localStorage.setItem("email", email1);
localStorage.setItem("password", password1);
}
</script>