-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
328 lines (276 loc) · 11.7 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
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ONN BIKES</title>
<link rel="icon" href="https://www.onnbikes.com/img/ONN-logo-unit-without-shadow.png" type="image/gif">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./style/header.css">
<link rel="stylesheet" href="./style/footer.css">
<link rel="stylesheet" href="./style/index.css">
<link rel="stylesheet" href="./style/Fleet.css">
<link rel="stylesheet" href="./style/register.css">
<link rel="stylesheet" href="./style/form.css">
<link rel="stylesheet" href="./style/navbar.css">
</head>
<body>
<div id="navbar">
</div>
<div id="header" style="display: flex;flex-direction: column; justify-content: center">
<div id="cont_vam" >
<!-- <div class="modal-dialog">
<div class="modal-content"> -->
<div id="Place">
<div id="boxu">
<div class="row g-2">
<div class="col-md">
<div class="form-floating">
<select class="form-select" id="floatingSelectGrid" aria-label="Floating label select example">
<option value="0">BENGALURU</option>
<option value="1">GURUGRAM</option>
<option value="2">HYDERABAD</option>
<option value="3">JAIPUR</option>
<option value="4">AHMEDABAD</option>
</select>
<label for="floatingSelectGrid"></label>
</div>
</div>
</div>
</div>
<div id="boxd"></div>
</div>
<div id="Slider" class="carousel slide" data-bs-ride="carousel" data-width="100%" >
<!-- <button type="button" class="btn-close" aria-label="Close"></button> -->
<button class="btn-close" id="close"></button>
<div class="carousel-inner">
<div class="carousel-item active ">
<div id="grid1"></div>
</div>
<div class="carousel-item" >
<div id="grid2"></div>
</div>
<div class="carousel-item" >
<div id="grid3"></div>
</div>
<div class="carousel-item" >
<div id="grid4"></div>
</div>
<div class="carousel-item" >
<div id="grid5"></div>
</div>
<div class="carousel-item" >
<div id="grid6"></div>
</div>
<div class="carousel-item" >
<div id="grid7"></div>
</div>
<div class="carousel-item" >
<div id="grid8"></div>
</div>
<div class="carousel-item" >
<div id="grid9"></div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#Slider" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#Slider" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
<div id="search_div" style="margin:auto;gap: 0px;">
<select name=""onchange="savecityname()" id="selecttag_div"style="padding: 12px;">
<option value="" >Select City</option>
<option value="BANGALURU">BANGALURU</option>
<option value="GURUGRAM">GURUGRAM</option>
<option value="HYDERABAD">HYDERABAD</option>
<option value="JAIPUR">JAIPUR</option>
<option value="AHMEDABAD">AHMEDABAD</option>
</select>
<select ><option>HOURLY/DAILY</option></select>
<input class="ride" type="datetime-local" name="" id="startdate" onclick="startdate()" min="2022-2-25">
<input class="ride" type="datetime-local" name="" onclick="enddate()" id="enddate">
<button onclick="savedate()">Ride Now</button>
</div>
</div>
<!-- shakh bhai -->
<div id="container-g">
</div>
<!-- shaikh bhai -->
<!-- footer -->
<div id="footer_" style="width: 100%;"></div>
<!-- footer -->
<!-- shivam -->
<!-- Login Pop up -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content ">
<button style="background-color: aliceblue;" id="closepopup_vam"type="button" class="btn-close btn-outline-light" data-bs-dismiss="modal" aria-label="Close"></button>
<!-- Card inside Modal -->
<div class="card " style="max-width: 940px;">
<div class="row ">
<div class="col-6">
<img id="popup_img_vam"src="https://pbs.twimg.com/media/FFMejIRUYAEZkOY?format=jpg&name=large" alt="...">
</div>
<div class="col-6">
<div class="card-body">
<h5 class="card-title"><span class="gayab2_vam">LOGIN</span> |<span class="gayab_vam">SIGNUP</span> </h5>
<div id="google-sign-in_vam" class="row">
<button class="col-5 m-2 btn-primary p-1" >Facebook</button>
<button class="col-5 m-2 btn-danger p-1">Google</button>
</div>
<div id="login_vam">
<form>
<input type="email" id="email_vam" placeholder="Email">
<input type="password" id="login-password_vam" placeholder="Password">
</form>
<button id="btn-login_vam">Login</button>
<a href="#" id="toggle_vam">New to ONN BIKES? Signup</a>
</div>
<div id="signup_vam">
<form>
<div class="row">
<input class="col" type="text" id="sfname_vam" placeholder="First Name">
<input class="col" type="text" id="slname_vam" placeholder="Last Name">
</div>
<div class="row">
<input class="col" type="email" id="semail_vam" placeholder="Email">
<input class="col" type="number" id="smb_vam" placeholder="Mobile Number">
</div>
<div class="row">
<input class="col-5" type="password" id="signup-password_vam" placeholder="Password">
</div>
</form>
<button id="btn-signup_vam">Signup</button>
</div>
</div>
</div>
</div>
</div>
<!-- ------------------------------------------------------------------------>
</div>
</div>
</div>
<!-- shivam -->
</body>
</html>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="./script/navbar.js"></script>
<script src="./script/index.js"></script>
<script type="module">
// footer----------------
import footer from "./components/footer.js"
let footer_div=document.getElementById("footer_");
footer_div.innerHTML=footer()
// footer-------------------------
// header-----------------------
import header from "./components/header.js"
let navbar_div=document.getElementById("navbar");
navbar_div.innerHTML=header();
// heaader----------------------
// form container--------------
import home from "./components/from.js"
let container_div = document.getElementById("container-g");
container_div.innerHTML=home()
// form container----------------
// welcome --------
let Current_UserLogin=JSON.parse(localStorage.getItem("Current_User"));
if (Current_UserLogin!=null)
{
let welcome_div=document.getElementById("welcome");
let mister=document.getElementById("Mister");
welcome_div.style.display="none"
document.querySelector("#Mister").style.display="inline-block"
//document.querySelector("#misterindia").style.display="block";
document.querySelector("#classnone").textContent=Current_UserLogin[0].first_name;
// welcome signout--------
document.querySelector("#signout_div").addEventListener("click",signOut)
let Current_User=JSON.parse(localStorage.getItem("Current_User"));
function signOut()
{
localStorage.removeItem("Current_User");
window.location.href="./index.html"
}
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<!-- -->
<!-- -->
<!-- shivam -->
<script src="./data/bikedata.js"></script>
<script src="./script/LoginSignup.js"></script>
<script src="./data/PlacesData.js"></script>
<script type="module">
//Getting Bikes Data
let Data=JSON.parse(localStorage.getItem("product_Data"));
//importing the append function
import displaydata from "./data/appendSliderData.js"
//Button for Slider to get Started
document.querySelector("#fleet_vam").addEventListener("click",()=>{
document.querySelector("#cont_vam").style.display="flex";
// document.querySelector("#header").textContent=""
//console.log("div")
})
//Appending Bike data to slider
let grid1=document.querySelector("#grid1")
displaydata(Data,grid1,2,0)
let grid2=document.querySelector("#grid2")
displaydata(Data,grid2,5,3)
let grid3=document.querySelector("#grid3")
displaydata(Data,grid3,8,6)
let grid4=document.querySelector("#grid4")
displaydata(Data,grid4,11,9)
let grid5=document.querySelector("#grid5")
displaydata(Data,grid5,14,12)
let grid6=document.querySelector("#grid6")
displaydata(Data,grid6,17,15)
let grid7=document.querySelector("#grid7")
displaydata(Data,grid7,20,18)
let grid8=document.querySelector("#grid8")
displaydata(Data,grid8,23,21)
let grid9=document.querySelector("#grid9")
displaydata(Data,grid9,26,24)
//Close the Slider with Close Button
let close=document.querySelector("#close").addEventListener("click",Close_Slider)
function Close_Slider(){
document.querySelector("#cont_vam").style.display="none";
}
//Khel
var stops=JSON.parse(localStorage.getItem("Places_Data"));
let boxd=document.querySelector("#boxd");
document.querySelector("#floatingSelectGrid").addEventListener("change",display);
function display(){
var value=document.querySelector("#floatingSelectGrid").value||0;
boxd.textContent="";
stops.map((elem,i)=>{
if(value==i){
//console.log(value,i,elem.stop1,elem.stop2)
let ul=document.createElement("ul");
let li1=document.createElement("li");
li1.textContent=elem.stop1;
let li2=document.createElement("li");
li2.textContent=elem.stop2;
let li3=document.createElement("li");
li3.textContent=elem.stop3;
let li4=document.createElement("li");
li4.textContent=elem.stop4;
let li5=document.createElement("li");
li5.textContent=elem.stop5;
ul.append(li1,li2,li3,li4,li5);
boxd.append(ul);
}
})
}
//console.log(value);
display()
// console.log(value);
// if(value==1){
// city[value].map((elem)=>{
// console.log("elem");
// })
// }
</script>