-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
244 lines (209 loc) · 10.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Hungry and Indecisive</title>
<link rel="icon" href="https://cdn4.iconfinder.com/data/icons/romantic-dinner-dating-couples/50/37-512.png">
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<!-- Jumbotron Title -->
<div class="text-white bg-success">
<h1 class="bg-success text-center">Hungry and Indecisive</h1>
<img class="bg-success rounded mx-auto d-block"
src="http://maximumble.thebookofbiff.com/comics/2012-12-06-0523.png">
<h3 class="bg-success text-center">Save your relationship and let us decide where you are going to dinner.</h3>
</div>
<div class="w-75 container">
<div class="header bg-info text-center text-white">
<h3>Cuisine Choices!</h3>
</div>
<div class="row">
<div class="col-md-6 text-center">
<div class="btn-group">
<button type="button" id="cuisine-button1" class="btn-lg btn-info dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Selection #1
</button>
<div class="dropdown-menu" id="dropdown-menu1">
</div>
</div>
<!--Put image here of cuisine?-->
<div id="selectionImage1"></div>
</div>
<div class="col-md-6 text-center">
<div class="btn-group">
<button type="button" id="cuisine-button2" class="btn-lg btn-info dropdown-toggle"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Selection #2
</button>
<div class="dropdown-menu" id="dropdown-menu2">
</div>
</div>
<!--Put image here of cuisine?-->
<div id="selectionImage1"></div>
</div>
</div>
<!-- <div class="row"> -->
<!-- distance selector-->
<!-- <div class="col-6 col-md-3">
<form id="distanceForm">
<div class="form-group" id="distanceFormGroup">
<label for="distanceBox">
<h4>Distance</h4>
</label>
<input class="form-control" type="text" id="distanceBox"></input> -->
<!-- this button is hidden, but allows event from distanceBox to be watched -->
<!-- <button id="distanceFormButton" type="submit" class="btn btn-info"
style="display:none">submit</button>
</div>
</form>
</div> -->
<!-- <div class="col-6 col-md-3">
<div class="btn-group" id="distanceButtonGroup" role="group">
<button type="button" id="distanceButton" class="btn btn-info dropdown-toggle float-left"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
style="margin-top: 2.7rem;">Distance</button>
<div class="dropdown-menu" id="distanceMenu">
<a class="dropdown-item distanceItem" href="#" data-value="5">5</a>
<a class="dropdown-item distanceItem" href="#" data-value="7">7</a>
<a class="dropdown-item distanceItem" href="#" data-value="10">10</a>
<a class="dropdown-item distanceItem" href="#" data-value="15">15</a>
<a class="dropdown-item distanceItem" href="#" data-value="20">20</a>
<a class="dropdown-item distanceItem" href="#" data-value="30">30</a>
</div>
</div>
</div> -->
<!-- rating selector -->
<!-- <div class="col-6 col-md-3">
<form>
<div class="form-group" id="ratingForm">
<label for="ratingBox">
<h4>Rating</h4>
</label>
<input class="form-control" type="text" id="ratingBox"></input> -->
<!-- this button is hidden, but allows event from distanceBox to be watched -->
<!-- <button id="ratingFormButton" type="submit" class="btn btn-info"
style="display:none">submit</button>
</div>
</form>
</div>
<div class="col-6 col-md-3">
<div class="btn-group" id="ratingButtonGroup">
<button type="button" id="ratingButton" class="btn btn-info dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" style="margin-top: 2.7rem;">
Rating
</button>
<div class="dropdown-menu" id="ratingMenu">
<a class="dropdown-item ratingItem" href="#" data-value="1">1</a>
<a class="dropdown-item ratingItem" href="#" data-value="2">2</a>
<a class="dropdown-item ratingItem" href="#" data-value="3">3</a>
<a class="dropdown-item ratingItem" href="#" data-value="4">4</a>
<a class="dropdown-item ratingItem" href="#" data-value="5">5</a>
</div>
</div>
</div> -->
</div>
</div>
<div class="w-75 container">
<button id="chooseButton" type="submit" class="btn btn-success btn-lg btn-block"><h3>Choose my Dinner!</h3></button>
<div class="header bg-info text-center text-white" id="chooseHeader">
<h3>Previous Dinner Winners</h3>
</div>
<table class="table border border-primary">
<thead>
<tr>
<th scope="col">Restaurant</th>
<th scope="col">Last Visit</th>
<th scope="col">Cuisine Type</th>
<th scope="col">City</th>
<th scope="col">Allow Again?</th>
<th scope="col">Never Again?</th>
</tr>
</thead>
<tbody id = "winnersTableBody">
</tbody>
</table>
</div>
<!--Rob's testing stuff-->
<!-- <div class="container" id="debugRestaurantTable">
<h2>Basic Table</h2>
<table class="table">
<thead>
<tr>
<th scope="col">Restaurant Name</th>
<th scope="col">Address</th>
<th scope="col">Cuisines</th>
</tr>
</thead>
<tbody id="debugTableBody">
<tr>
<td id=rName></td>
<td id=rAddress></td>
<td id=rCuisines></td>
</tr>
</tbody>
</table>
</div> -->
<!-- winning restaurant display, can activate with javascript -->
<div class="modal fade" id="winnerModal" tabindex="-1">
<div class="modal-dialog modal-dialog-centered" role="document" style="max-width:90%;">
<div class="modal-content" >
<div class="modal-header">
<h4 class="modal-title">The winner is <span id = "winningRestaurant"></span></h4><br>
<button type="button" class="close" id="closeInstructions1" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row" >
<h4 id="winningCuisine"></h4>
</div>
<div class="row">
<div class="col-md-6">
<img src="" alt="restaurant picture" id="restaurantImage">
</div>
<div class="col-md-6" style="height:400px;">
<div id="restaurantMap" style="height:400px;">
</div>
</div>
</div>
<div class="row">
<h5 id="restaurantAddress"></h5>
</div>
</div>
<div class="modal-footer">
<button type="button btn-sm" id="closeInstructions2" class="btn btn-secondary"
data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery and Bootstrap -->
<script src="https://code.jquery.com/jquery-3.4.0.js"
integrity="sha256-DYZMCC8HTC+QDr5QNaIcfR7VSPtcISykd+6eSmBW5qo=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<!-- Jquery Modal -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" /> -->
<!-- mapbox -->
<script src="https://api.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.js"> </script>
<!-- Moment -->
<script src="https://cdn.jsdelivr.net/momentjs/2.12.0/moment.min.js"></script>
<!-- Firebase Reference -->
<script src="https://www.gstatic.com/firebasejs/5.10.0/firebase.js"></script>
<script src="assets/javascript/app.js"></script>
</body>
</html>