-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDelivery.html
412 lines (328 loc) · 12.1 KB
/
Delivery.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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<html>
<head><title>Delivery</title>
<!-- add a statemnt, deliver with us !-->
<link rel="stylesheet" type="text/css" href="deliver2.css"/>
<style type="text/css">
</style>
<script src="text.js">
</script>
<script>
function Order(First_Name, Last_Name, Age,Email,Phone_Number,Street_Address,
City,State,Zipcode, Vehicle_Quality, Vehicle_Make,Vehicle_Model,Vehicle_Color
,Vehicle_Type, Card_Name, Card_Number, Expiration_Month, Expiration_Year, CVC)
{
this.Card_Name = Card_Name;
this.Card_Number = Card_Number;
this.Expiration_Month = Expiration_Month;
this.Expiration_Year = Expiration_Year;
this.CVC = CVC;
this.First_Name = First_Name;
this.Last_Name = Last_Name;
this.Age = Age;
this.Email = Email;
this.Phone_Number = Phone_Number;
this.Street_Address = Street_Address;
this.City = City;
this.State = State;
this.Zipcode = Zipcode;
this.Vehicle_Quality = Vehicle_Quality;
this.Vehicle_Make = Vehicle_Make;
this.Vehicle_Model = Vehicle_Model;
this.Vehicle_Color = Vehicle_Color;
this.Vehicle_Type = Vehicle_Type;
}
function VForm(First_Name, Last_Name, Age,Email,Phone_Number,Street_Address,
City,State,Zipcode, Vehicle_Quality, Vehicle_Make,Vehicle_Model,Vehicle_Color
,Vehicle_Type, Card_Name, Card_Number, Expiration_Month, Expiration_Year, CVC)
{
var Fname = /^[A-Za-z\s]+$/;
if (First_Name.value.match(Fname))
{
alert('Valid First Name');
}
else
{alert('Please Enter A Valid Name with Alphabetic letters ONLY!');
return false;
}
var Lname = /^[A-Za-z\s]+$/;
if (Last_Name.value.match(Lname))
{
alert('Valid Last Name');
}
else
{alert('Last name should ONLY Alphabetic letters!');
return false;
}
var age = /^([2-90]{2})$/;
if (Age.value.match(age))
{
alert('Your can proceed');
}
else
{alert('If you are not 20 you cannot purchase a car OR enter the last two digits of your birth year!');
return false;
}
var email = /^[0-9-A-Za-z\@\.]+$/;
if (Email.value.match(email))
{
alert('Valid Email');
}
else
{alert('Please enter your email address');
return false;
}
var Phone = /^([0-9]{10})$/;
if (Phone_Number.value.match(Phone))
{
alert(' Phone number approved!');
}
else
{alert('Please enter 10 digits phone number ONLY (no space or special characters)!');
return false;
}
var sa = /^[0-9-A-Za-z\@\.\s]+$/;
if (Street_Address.value.match(sa))
{
alert(' Street Address Approved');
}
else
{
alert('Please enter your home street address!');
return false;
}
var city = /^[A-Za-z\s]+$/;
if (City.value.match(city))
{
alert('City Approved');
}
else
{alert('City should be with Alphabetic letters ONLY!');
return false;
}
var zipcode = /^[0-9-A-Za-z\@\.\s]+$/;
if (Zipcode.value.match(zipcode))
{
alert('Zipcode Approved');
}
else
{alert('Please enter your zipcode');
return false;
}
var Vmake = /^[0-9-A-Za-z\s]+$/;
if (Vehicle_Make.value.match(Vmake))
{
alert('Valid Vehicle Make');
}
else
{alert('Please enter the vehicle make!');
return false;
}
var Vmodel = /^[0-9-A-Za-z\@\.\s]+$/;
if (Vehicle_Model.value.match(Vmodel))
{
alert('Valid Vehicle Model');
}
else
{alert('Please enter the vehicle model');
return false;
}
var Vcolor = /^[A-Za-z\s]+$/;
if (Vehicle_Color.value.match(Vcolor))
{
alert('Valid Vehicle color');
}
else
{alert('Please enter the vehicle color!');
return false;
}
var cardNme = /^[A-Za-z\s]+$/;
if (Card_Name.value.match(cardNme))
{
alert('Valid Card Name');
}
else
{
alert('Please enter card name with ALPHABETIC letters!');
return false;
}
var cardnum = /^([0-9]{16})$/;
if(Card_Number.value.match(cardnum))
{
alert('Valid Card Number!')
}
else
{
alert('Not a valid card number! 16 numerics required');
return false;
}
var exmonth = /^([0-9]{2})$/;
if(Expiration_Month.value.match(exmonth))
{
alert('Valid Expiration Month');
}
else
{
alert('Not a valid expiration month! 2 numerics required');
return false;
}
var exyear = /^([0-9]{4})$/
if (Expiration_Year.value.match(exyear))
{
alert('Valid Expiration Year');
}
else
{
alert('Not a valid expiration year! 4 numerics required');
return false;
}
var cvc = /^([0-9]{3})$/
if (CVC.value.match(cvc))
{
alert('Valid CVC Number');
}
else
{
alert("Not a valid CVC Number! 3 numerics required");
return false;
}
}
</script>
</head>
<body>
<!-- add a pages that say your car is ready for pick up>
</!-->
<div class="background-wrap">
<video id="video-bg-element" preload="auto" autoplay="true" loop="loop" muted="muted">
<source src="deliver.mov">
</video></div>
<div id="topdiv" style="background-color:darkgrey">
<h2 style="margin-left:0px; margin-top:0px; float:left;">Getcar
<img style="float:left;margin-left:00px" height="80" width="120" src="logo.png" />
</div>
<center><mark style="background-color: darkgrey;">
<a style="color:black" href="hp1.html" data-id="1"> Home Page </a>    
<a style="color:black" href="NewCars.html" data-id="2"> New Cars </a>    
<a style="color:black" href="UsedCars.html" data-id="3"> Used Cars </a>    
<a style="color:black" href="Hybrid&Electric.html" data-id="4"> Hybrid/Electric</a>    
<a style="color:black" >Delivery</a>    
<a style="color:black" href="aboutus.html" data-id="6"> About Us</a>    
<a style="color:black" href="listCar.html" data-id="9">List/Sell My Car</a>
</mark></center></div>
<div class="content">
<h1>Buy your next car online.</h1>
<h2>Here's how is works</h2>
</div>
<table style="margin-top:200px; margin:auto">
<tr><ol>
<th><li>Find the Right Car</th></li>
<th><li>Purchase the Car Here</li></th>
<th><li>Get it Delivered</li></th></ol></tr>
<tr><td><img src="https://previews.123rf.com/images/tatianasun/tatianasun1705/tatianasun170500026/77826883-looking-for-car-selling-icon-magnifying-glass-search-car-vector-logo-illustration-.jpg" width="250" height="170"></td>
<td><img src="https://media.istockphoto.com/vectors/online-electronic-smart-contract-document-on-laptop-vector-cartoon-vector-id912944360"width="250" height="170"></td>
<td><img src="https://thumbs.dreamstime.com/b/vector-cartoon-delivery-van-deliveryman-illustration-yellow-truck-against-background-city-courier-sitting-car-cargo-127287588.jpg" width="250" height="170"></td>
</table>
<form name = "myForm" action = "http://www.WebsiteDevelopmentBook.com/FormEcho.php"
method = "post" onsubmit = "return VForm(First_Name, Last_Name, Age,Email,Phone_Number,Street_Address,City,State,Zipcode, Vehicle_Quality, Vehicle_Make,Vehicle_Model,Vehicle_Color,Vehicle_Type, Card_Name, Card_Number, Expiration_Month, Expiration_Year, CVC)"/>
<!-- table 1 !-->
<table style="margin-top:200px; background:orange" cellspacing="10"; >
<th style="background-color:orange">Enter Your Personnel Information Here</th>
<tr><td style="background-color:orange; font-size:18px;">First Name <input type = "text" name = "First_Name" size="30" /></td>
<td style="background-color:orange; font-size:18px;">Last Name <input type = "text" name = "Last_Name" /></td>
<td style="background-color:orange; font-size:18px;">Your Age <input type = "text" name = "Age" size="5" /></td>
</tr>
<tr><td style="background-color:orange; font-size:18px;">E-mail <input type = "text" name = "Email" size="45" /></td>
<td style="background-color:orange; font-size:18px;">Phone Number <input type="text" name = "Phone_Number" /></td>
</tr>
<tr><td style="background-color:orange; font-size:18px;">Street Address <input type = "text" name = "Street_Address" size="50" /></td>
<td style="background-color:orange; font-size:18px;"> City <input type = "text" name = "City" /></td>
<td style="background-color:orange; font-size:18px;">State <select name = "State">
<option>Ala</option>
<option>Alaska</option>
<option>Ariz</option>
<option>Ark</option>
<option> Calif</option>
<option>Colo</option>
<option>Conn</option>
<option>Del</option>
<option>D.C</option>
<option> Fla</option>
<option>Ga</option>
<option>Hawaii</option>
<option>Idaho</option>
<option>Ill</option>
<option> Ind</option>
<option>Iowa</option>
<option>Kans</option>
<option>Ky</option>
<option>La </option>
<option> Maine</option>
<option>Md</option>
<option>Mass</option>
<option>Mich</option>
<option>Minn</option>
<option> Miss</option>
<option>Mo</option>
<option>Mont</option>
<option>Nebr</option>
<option>Nev</option>
<option> N.H</option>
<option> N.J</option>
<option> N.Mex</option>
<option>N.Y</option>
<option>N.C</option>
<option> N.Dak</option>
<option>Ohio</option>
<option>Okla</option>
<option>Oreg</option>
<option>Pa </option>
<option> R.I</option>
<option>S.C</option>
<option>S.Dak</option>
<option> Tenn</option>
<option>Tex</option>
<option>Utah</option>
<option>Vt</option>
<option>Va </option>
<option> Wash</option>
<option>W.Va</option>
<option>Wisc </option>
<option> Wyo</option>
</select>
</td>
<td style="background-color:orange; font-size:18px;"> Zipcode: <input type = "text" name = "Zipcode" /></td> </tr>
</table>
<!--table 2 add buttons for hybrid electric, ...><!-->
<h2 style="margin-top:100px; color:white; text-align:center; background-color:red; width:100%">Please Enter the Information of the Vehicle You Want to Purchase Here</h2>
<table style="margin-top:40px; background-color:grey; color: white" cellspacing="15"; >
<tr><th style="font-size:20; margin-right:200px"> </th></tr>
<tr><th>Vehicle Quality</th></tr>
<tr><tr> <td style="font-size:18px;"> NEW <input type = "radio" name = "Vehicle_Quality" value="NEW" /></td>
<td style="font-size:18px;"> USED <input type = "radio" name = "Vehicle_Quality" value="USED"/></td>
</tr>
<tr> <td style="font-size:20px;"> Vehicle Make <input type = "text" name = "Vehicle_Make" size="30" /></td>
<td style="font-size:20px;">Vehicle model <input type = "text" name = "Vehicle_Model" size="30" /></td>
<td style="font-size:20px;">Vehicle Color<input type = "text" name = "Vehicle_Color" size="30" /></td>
</tr>
<tr> <th>Vehicle Type (All USED are REGULAR)</th></tr>
<tr> <td style="font-size:18px;"> Regular <input type = "radio" name = "Vehicle_Type" value="Regular"/></td>
<td style="font-size:18px;"> Electric<input type = "radio" name = "Vehicle_Type" value="Electric" /></td>
<td style="font-size:18px;"> Hybrid <input type = "radio" name = "Vehicle_Type" value="Hybrid" /></td>
</tr>
</table>
<!-- table 3 !-->
<table style="margin-top:40px; background-color:green; color: white" cellspacing="10"; >
<tr><th style="font-size:20"> Payment </th></tr>
<tr> <td style="font-size:20px;">Card Name <input type = "text" name = "Card_Name" /></td>
<td style="font-size:20px;">Card Number <input type = "text" name = "Card_Number" size="40" /></td>
<td style="font-size:20px;">Expiration Month <input type = "text" name = "Expiration_Month" size="10" /></td>
<td style="font-size:20px;">Expiration Year <input type = "text" name = "Expiration_Year" size="15"/></td>
<td style="font-size:20px;">CVC <input type = "text" name = "CVC" size="5"/></td></tr>
<tr><td> <input type = "submit" value = "Click Here to Submit" size="40" /></td></tr>
</table>
</form>
<div id="bottomdiv" style="background-color:darkgrey">
<a href="aboutus.html" data-id="1" margin-left="0px"> About</a>    
<a href="tel:347-221-9814" data-id="2"> 347-221-9814</a>    
<a href="https://www.google.com/maps/place/Pier+40+at+Hudson+River+Park/@40.7292334,-74.0138527,17z/data=!3m1!4b1!4m5!3m4!1s0x89c259f207efd1f5:0x6744bbded1006a3!8m2!3d40.7292334!4d-74.011664" data-id="3"> Location</a></div>
</body>
</html>