-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
259 lines (247 loc) · 13 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>EMPIRICALLY DELICIOUS</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!--JavaScript ref-->
<script type="text/javascript" src="./javascript/app.js"></script>
<!--Google Font APIs-->
<link rel = "stylesheet"
href = "https://fonts.googleapis.com/icon?family=Material+Icons">
<!--Materialize JS/CSS-->
<link rel = "stylesheet"
href = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<script type = "text/javascript"
src = "https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
</head>
<body class="container">
<!--FORM OUTLINE-->
<nav>
<div class="nav-wrapper black">
<a class="brand-logo center">EMPIRE PIZZA</h1>
</div>
</nav>
<ul class = "collapsible popout" data-collapsible = "accordion">
<li> <!--SIZES-->
<div class = "collapsible-header"><i class="material-icons">pie_chart</i>GIRTH</div>
<div class = "collapsible-body center-align">
<div class="row">
<form action="#">
<p class="center-align">
<input class="with-gap" name="size" type="radio" value="6" id="sml"/>
<label for="sml">SINGLE ($6)</label>
<input class="with-gap" name="size" type="radio" value="10" id="med" checked/>
<label for="med">MEDIUM ($10)</label>
<input class="with-gap" name="size" type="radio" value="14" id="lrg"/>
<label for="lrg">LARGE ($14)</label>
<input class="with-gap" name="size" type="radio" value="16" id="xl"/>
<label for="xl">"I'M JUST BIG-BONED" ($16)</label>
</p>
</form>
</div>
</li>
<li> <!--CRUST-->
<div class = "collapsible-header"><i class="material-icons">radio_button_unchecked</i>BORDER</div>
<div class = "collapsible-body center-align">
<div class="row">
<form action="#">
<p class="center-align">
<input class="with-gap" name="crust" type="radio" value="PLAIN CRUST" id="pl" checked/>
<label for="pl">PLAIN</label>
<input class="with-gap" name="crust" type="radio" value="HOUSE SPECIAL CRUST" id="house"/>
<label for="house">HOUSE SPECIAL</label>
<input class="with-gap" name="crust" type="radio" value="CHEESE STUFF CRUST" id="stuft"/>
<label for="stuft">CHEESE STUFFED (+$3)</label>
<input class="with-gap" name="crust" type="radio" value="GARLIC BUTTER CRUST" id="garl"/>
<label for="garl">GARLIC BUTTER</label>
<input class="with-gap" name="crust" type="radio" value="SPICY CRUST" id="spcy"/>
<label for="spcy">SPICY</label>
</p>
</form>
</div>
</li>
<li> <!--SAUCE-->
<div class = "collapsible-header"><i class="material-icons">opacity</i>GRAVY</div>
<div class = "collapsible-body center-align">
<div class="row">
<form action="#">
<p class="center-align">
<input class="with-gap" name="sauce" type="radio" value="MARINARA" id="mar" checked/>
<label for="mar">MARINARA</label>
<input class="with-gap" name="sauce" type="radio" value="BBQ SAUCE" id="bbq"/>
<label for="bbq">BBQ</label>
<input class="with-gap" name="sauce" type="radio" value="WHITE SAUCE" id="wht"/>
<label for="wht">WHITE</label>
<input class="with-gap" name="sauce" type="radio" value="NO SAUCE" id="null"/>
<label for="null">NONE</label>
</p>
</form>
</div>
</li>
<li> <!--CHEESE-->
<div class = "collapsible-header"><i class="material-icons">local_pizza</i>DAIRY</div>
<div class = "collapsible-body center-align">
<div class="row">
<form action="#">
<p class="center-align">
<input class="with-gap" name="cheese" type="radio" value="REG. CHEESE" id="reg" checked/>
<label for="reg">REGULAR</label>
<input class="with-gap" name="cheese" type="radio" value="EXTRA CHEESE" id="ex"/>
<label for="ex">EXTRA (+$3)</label>
<input class="with-gap" name="cheese" type="radio" value="NO CHEESE" id="no"/>
<label for="no">NONE</label>
</p>
</form>
</div>
</li>
<li> <!--MEATS-->
<div class = "collapsible-header"><i class="material-icons">whatshot</i>ANIMALS</div>
<div class = "collapsible-body center-align">
<div class="row">
<form action="#">
<div><label><i>(first included; +$1 additional)</i></label></div>
<p class="center-align">
<input type="checkbox" name="meat" value="PEPPERONI" id="pep" />
<label for="pep">PEPPERONI</label>
<input type="checkbox" name="meat" value="SAUSAGE" id="saus" />
<label for="saus">SAUSAGE</label>
<input type="checkbox" name="meat" value="CANADIAN BACON" id="can" />
<label for="can">CANADIAN BACON</label>
<input type="checkbox" name="meat" value="GROUND BEEF" id="beef" />
<label for="beef">GROUND BEEF</label>
<input type="checkbox" name="meat" value="ANCHOVY" id="anch" />
<label for="anch">ANCHOVY</label>
<input type="checkbox" name="meat" value="CHICKEN" id="chkn" />
<label for="chkn">CHICKEN</label>
</p>
</form>
</div>
</li>
<li> <!--VEGETABLES-->
<div class = "collapsible-header"><i class="material-icons">spa</i>PLANTS</div>
<div class = "collapsible-body center-align">
<div class="row">
<form action="#">
<div><label><i>(first included; +$1 additional)</i></label></div>
<p class="center-align">
<input type="checkbox" name="veg" value="GREEN PEPPER" id="gpep" />
<label for="gpep">GREEN PEPPER</label>
<input type="checkbox" name="veg" value="SUN-DRIED TOMATO" id="tom" />
<label for="tom">SUN-DRIED TOMATO</label>
<input type="checkbox" name="veg" value="BLACK OLIVE" id="ol" />
<label for="ol">BLACK OLIVE</label>
<input type="checkbox" name="veg" value="RED ONION" id="on" />
<label for="on">RED ONION</label>
<input type="checkbox" name="veg" value="JALAPENO" id="jalap" />
<label for="jalap">JALAPENO</label>
<input type="checkbox" name="veg" value="MUSHROOM" id="mush" />
<label for="mush">MUSHROOM</label>
<input type="checkbox" name="veg" value="PINEAPPLE" id="pine" />
<label for="pine">PINEAPPLE</label>
<input type="checkbox" name="veg" value="SPINACH" id="spnch" />
<label for="spnch">SPINACH</label>
</p>
</form>
</div>
</li>
</ul>
<!--ORDER BUTTON-->
<div class="center-align">
<a class="waves-effect waves-light btn modal-trigger" href="#modal-trigger" onclick="order()">EXECUTE ORDER 66</a>
<div id="modal-trigger" class="modal">
<div class="modal-content">
<!--<h4>ORDER SUMMARY</h4>-->
<ul class = "collapsible popout" data-collapsible = "accordion">
<li> <!--SUMMARY-->
<div id="order_summary" class = "collapsible-header"><i class="material-icons">local_pizza</i>ORDER SUMMARY</div>
<div class = "collapsible-body">
<div class="container left-align">
<div class="center-align"><label><i>(click icon to remove item)</i></label></div>
<form action="#">
<ul class="collection"></ul> <!--list dynamically populated in JS-->
</form>
</div>
</li>
<li> <!--ADDRESS-->
<div class = "collapsible-header"><i class="material-icons">location_city</i>ADDRESS</div>
<div class = "collapsible-body">
<div class="container left-align">
<form action="#">
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s6">
<input id="first_name" type="text" class="validate">
<label for="first_name">first name</label>
</div>
<div class="input-field col s6">
<input id="last_name" type="text" class="validate">
<label for="last_name">last name</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="address" type="text" class="validate">
<label for="address">address</label>
</div>
</div>
<div class="row">
<div class="input-field col s6">
<input id="city" type="text" class="validate">
<label for="city">city</label>
</div>
<div class="input-field col s6">
<input id="last_name" type="text" class="validate">
<label for="last_name">zip</label>
</div>
</div>
</form>
<div class="row">
<div class="input-field col s12">
<input id="email" type="email" class="validate">
<label for="email">email</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<input id="phone" type="email" class="validate">
<label for="phone">phone</label>
</div>
</div>
</form>
</div>
</form>
</div>
</li>
<li> <!--PAYMENT-->
<div class = "collapsible-header"><i class="material-icons">attach_money</i>PAYMENT METHOD</div>
<div class = "collapsible-body">
<div class="container left-align">
<div class="center-align"><label><i>(select payment option)</i></label></div>
<div class="switch center-align">
<label>
cash
<input type="checkbox">
<span class="lever"></span>
credit card
</label>
</div>
<form action="#">
<div id="credit_card_info" class="row">
</form>
</div>
</li>
</ul>
</div>
<div class="modal-footer">
<a class = "btn" onclick = "confirmOrder(5000)">CONFIRM</a>
<a href="javascript:clearList()" class="modal-close waves-effect waves-green btn-flat">CANCEL</a>
</div>
</div>
</div>
<!--jQuery ref // needs to be located after modal button is rendered in HTML-->
<script type="text/javascript" src="./javascript/modal.js"></script>
</body>
</html>