-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-2.html
123 lines (104 loc) · 4.03 KB
/
index-2.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Airport App</title>
<link rel="stylesheet" href="css/styles.css">
<link
rel="stylesheet"
href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">
</head>
<main>
<h1 class="mdc-typography--display1">Copenhagen Airport App</h1>
<input type="search" id="address-input" placeholder="Where r u going" />
<form action="#" id="greeting-form">
<div>
<div class="mdc-form-field">
<div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
<input id="departureCity" type="text" class="mdc-text-field__input">
<label for="departureCity" class="mdc-text-field__label">
Departure City
</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div>
<!-- These fields should first show after the search has been made. And then they will not be form fields anynore.
<div class="mdc-form-field">
<div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
<input id="takeOffTime" type="text" class="mdc-text-field__input">
<label for="takeOffTime" class="mdc-text-field__label">
Take off Time
</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div>
<div class="mdc-form-field">
<div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
<input id="arrivalTime" type="text" class="mdc-text-field__input">
<label for="arrivalTime" class="mdc-text-field__label">
Arrival Time
</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div> -->
</div>
<button type="submit"
class="mdc-button
mdc-button--raised
mdc-ripple-surface"
data-mdc-auto-init="MDCRipple">
Search
</button>
</form>
<!-- The p element below is where we'll eventually output our greeting -->
<p class="mdc-typography--headline" id="greeting">
Welcome to the Copenhagen Airport App. Above you can search for arivals landing in Copenhagen.
</p> <br>
<p class="mdc-typography--headline" id="greeting">
Below you can searh for flights to other destinations. Enjoy your travels.
</p>
<form action="#" id="greeting-form">
<div>
<div class="mdc-form-field">
<div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
<input id="destination" type="text" class="mdc-text-field__input">
<label for="destination" class="mdc-text-field__label">
Destination
</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div>
<!-- <div class="mdc-form-field">
<div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
<input id="takeOffTime" type="text" class="mdc-text-field__input">
<label for="takeOffTime" class="mdc-text-field__label">
Take Off Time
</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div>
<div class="mdc-form-field">
<div class="mdc-text-field" data-mdc-auto-init="MDCTextField">
<input id="arrivalTime" type="text" class="mdc-text-field__input">
<label for="arrivalTime" class="mdc-text-field__label">
Arrival Time
</label>
<div class="mdc-text-field__bottom-line"></div>
</div>
</div> -->
</div>
<button type="submit"
class="mdc-button
mdc-button--raised
mdc-ripple-surface"
data-mdc-auto-init="MDCRipple">
Search
</button>
</form>
</main>
<script src="https://cdn.jsdelivr.net/npm/places.js@1.4.18"></script>
<script src="src/scripts-2.js"></script>
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script>window.mdc.autoInit();</script>
</html>