-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcars.html
92 lines (82 loc) · 3.05 KB
/
cars.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cars</title>
<link rel="stylesheet" href="mystyle.css" />
<script src="cars.js"></script>
<script src="script.js"></script>
</head>
<body onload="displayDateTime()">
<header>Welcome to Travel Deals - Cars</header>
<div class="navbar">
<a href="index.html">Home</a>
<a href="stays.html">Stays</a>
<a href="flights.html">Flights</a>
<a href="cars.html">Cars</a>
<a href="cruises.html">Cruises</a>
<a href="contact.html">Contact Us</a>
<a href="cart.html">Cart</a>
<a href="myaccount.html">My Account</a>
<a href="login.html">Login</a>
<a href="registration.html">Register</a>
</div>
<div class="container">
<div class="sidebar">
<h3>Explore</h3>
<a href="stays.html">Stays</a>
<a href="flights.html">Flights</a>
<a href="cars.html">Cars</a>
<a href="cruises.html">Cruises</a>
<a href="contact.html">Contact Us</a>
<a href="cart.html">Cart</a>
<a href="myaccount.html">My Account</a>
<a href="login.html">Login</a>
<a href="registration.html">Register</a>
<!-- New section for changing font size -->
<h3>Settings</h3>
<label for="fontSize">Font Size:</label>
<input
type="number"
id="fontSize"
min="12"
max="36"
value="16"
onchange="changeFontSize()"
placeholder="Enter font size (px)"
/>
<!-- New section for changing background color -->
<label for="bgColor">Background Color:</label>
<input type="color" id="bgColor" onchange="changeBgColor()" />
</div>
<div class="main-content">
<p id="dateTime"></p>
<p id="userName"></p>
<h2>Cars</h2>
<form id="carForm" onsubmit="validateCarForm(); return false;">
<label for="carCity">City:</label>
<input type="text" id="carCity" required /><br />
<label for="carType">Car Type:</label>
<select id="carType" required>
<option value="economy">Economy</option>
<option value="suv">SUV</option>
<option value="compact">Compact</option>
<option value="midsize">Midsize</option></select
><br />
<label for="carCheckIn">Check-in Date:</label>
<input type="date" id="carCheckIn" required /><br />
<label for="carCheckOut">Check-out Date:</label>
<input type="date" id="carCheckOut" required /><br />
<button type="submit">Search</button>
</form>
</div>
</div>
<div class="footer">
Section Number: CS 6314.002<br />
Dhairya Patel (NetID: ddp230000)<br />
Prathamesh Kulkarni (NetID: pdk220001)<br />
Harsh Rashmikant Patel (NetID: hxp230001)<br />
</div>
</body>
</html>