-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
113 lines (113 loc) · 3.68 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
<!doctype html>
<html lang="en-US">
<head>
<title>CoffeeRun</title>
<meta name="description" content="Manage coffee orders for a food truck.">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.shoelace.style/1.0.0-beta22/shoelace.css">
<style>
form :focus:required:invalid {
border-color: #ff4136;
}
</style>
</head>
<body>
<main class="container">
<div class="row">
<div class="col-12 col-md-6">
<form data-coffee-order="form">
<fieldset>
<legend>CoffeeRun</legend>
<div class="input-field">
<label for="order-name">Coffee Order Name</label>
<input
autofocus
id="order-name"
name="coffee"
pattern="[a-zA-Z\s]+"
required
type="text"
>
</div>
<div class="input-field">
<label for="email-address">Email Address</label>
<input
id="email-address"
name="emailAddress"
required
type="email"
>
</div>
<div class="input-field">
<label>
<input
name="size"
required
type="radio"
value="short"
>
Short
</label>
</div>
<div>
<label>
<input
name="size"
type="radio"
value="tall"
>
Tall
</label>
</div>
<div>
<label>
<input
name="size"
type="radio"
value="grande"
>
Grande
</label>
</div>
<div class="input-field">
<label for="flavor">Flavor Shot</label>
<select id="flavor" name="flavor" >
<option value="">None</option>
<option value="caramel">Caramel</option>
<option value="almond">Almond</option>
<option value="mocha">Mocha</option>
</select>
</div>
<div class="input-field">
<label for="strength">Caffeine Rating</label>
<input
id="strength"
name="strength"
type="range"
value="30"
>
</div>
<button type="submit" class="button">Submit</button>
<button type="reset" class="button-light float-right">Reset</button>
</fieldset>
</form>
</div>
<div class="col-12 col-md-6">
<fieldset>
<legend>Pending Orders</legend>
<section data-coffee-order="checklist" class="loader-bg"></section>
</fieldset>
</div>
</div>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" defer></script>
<script src="app/validation.js" defer></script>
<script src="app/checklist.js" defer></script>
<script src="app/formhandler.js" defer></script>
<script src="app/remotedatastore.js" defer></script>
<script src="app/datastore.js" defer></script>
<script src="app/truck.js" defer></script>
<script src="app/index.js" defer></script>
</body>
</html>