-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
112 lines (110 loc) · 6.11 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
<!DOCTYPE html>
<html>
<title>Flight Search</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="script.js"></script>
<body>
<div class="container">
<div class="card custom-bg w-75 p-4 d-flex">
<div class="row">
<div class="pb-3 h3 text-left">Flight Search 🛫</div>
</div>
<form id="flight-form" onsubmit="return validateForm()">
<div class="row">
<div class="form-group col-md align-items-start flex-column">
<label for="origin" class="d-inline-flex">From</label>
<input type="text" placeholder="City or Airport" class="form-control" id="origin" name="origin"
required>
</div>
<div class="form-group col-md align-items-start flex-column">
<label for="depart" class="d-inline-flex">To</label>
<input type="text" placeholder="City or Airport" class="form-control" id="depart" name="depart"
required>
</div>
</div>
<div class="row">
<div class="form-group col-md align-items-start flex-column">
<label for="departure-date" class=" d-inline-flex">Depart</label>
<input type="date" class="form-control" id="departure-date" name="departure-date"
onkeydown="return false" required>
</div>
<div class="form-group col-md align-items-start flex-column">
<label for="return-date" class="d-inline-flex">Return</label>
<input type="date" placeholder="One way" value=""
onChange="this.setAttribute('value', this.value)" class="form-control" id="return-date"
name="return-date">
</div>
</div>
<div class="row">
<div class="form-group col-lg-3 align-items-start flex-column">
<label for="adults" class="d-inline-flex col-auto">Adults <span class="sublabel"> 12+
</span></label>
<select class="form-select" id="adults"
onchange="javascript: dynamicDropDown(this.options[this.selectedIndex].value);">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
</div>
<div class="form-group col-lg-3 align-items-start flex-column">
<label for="children" class="d-inline-flex col-auto">Children <span class="sublabel"> 2-11
</span></label>
<select class="form-select" id="children">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
</select>
</div>
<div class="form-group col-lg-3 align-items-start flex-column">
<label for="infants" class="d-inline-flex col-auto">Infants <span class="sublabel"> less than
2</span></label>
<select class="form-select" id="infants">
<option value="0">0</option>
<option value="1">1</option>
</select>
</div>
</div>
<div class="row">
<div class="form-group col-lg-6 align-items-start flex-column">
<label for="cabin" class="d-inline-flex">Cabin</label>
<select class="form-select" id="cabin">
<option value="ECONOMY">Economy</option>
<option value="PREMIUM_ECONOMY">Premium Economy</option>
<option value="BUSINESS">Business</option>
<option value="FIRST">First</option>
</select>
</div>
<div class="form-group col-lg-6 align-items-start flex-column pt-lg-4">
<div class="form-check form-switch">
<input class="form-check-input align-self-center" type="checkbox" id="directFlights">
<label class="form-check-label d-inline-flex align-self-center" for="directFlights">Direct
flights</label>
</div>
</div>
</div>
<div class="row">
<div class="text-left col-auto">
<button type="submit" class="btn btn-primary">Search flights</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>