-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
134 lines (134 loc) · 6.56 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
<!DOCTYPE html>
<html lang="en" class="has-background-dark">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
crossorigin="anonymous"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
<link href="assets/style.css" rel="stylesheet">
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB_MRjVNaC1LP659PeDLQW5KgHHnw4hVQM&libraries=places">
</script>
<title>Feed Me</title>
</head>
<body>
<!-- Modal to getset up CORS to make search work-->
<div id ="modal" class="modal is-active">
<div class="modal-background">
<div class="modal-content has-text-white">
<p>Please follow this link and click on the "Request temporty access to the demo server"</p>
<a href="https://cors-anywhere.herokuapp.com/corsdemo" target="blank"><p class="has-text-link">https://cors-anywhere.herokuapp.com/corsdemo</p></a>
</div>
<button id="modalButton" class="modal-close is-large" aria-label="close"></button>
</div>
</div>
<section class="hero">
<div class="container">
<div class="hero body">
<canvas id="logo" width="500" height="500"></canvas>
<!--Selected Restaurant replaces logo when form is submitted-->
<section class="section has-text-light has-background-orange-lighter m-6" id="restaurantSection">
<div class="container">
<div class="columns">
<!--Restaurant Name-->
<div class="column has-text-centered is-offset-1 first-column">
<h2>Restaurant Name: <span id="restaurantName"></span></h2>
<h3>Rating: <span id="restaurantRating"></span></h2>
<h4>Status: <span id="restaurantStatus"></span></h2>
<p>Address: <span id="restaurantAddress"></span></p>
<p>Phone Number: <span id="restaurantNumber"></span></p>
</div>
<div class="column second-column">
<!--Restaurant Photo-->
<div class="image is-square">
<img id="restaurantPhoto" class="is-rounded is-vcentered is-offset-1" alt="photo of the restaurtant food">
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</section>
<section class="section has-text-light">
<h1 class="columns is-centered">Feed Me</h1>
<form id="search-form">
<div class="container">
<div class="columns is-centered">
<div class="column first-column is-one-quarter">
<!--Enter City button-->
<input id="autocomplete" class="input has-background-grey-lighter has-text-grey-dark block is-small" type="text" placeholder="Enter City" maxlength="20">
</div>
</div>
<div class="columns is-centered">
<!--Choose a budget -->
<div class="column second-column is-one-quarter">
<div class="field has-addons">
<div class="control is-expanded">
<div class="select is-fullwidth">
<select id="budget-list" class="has-background-grey-lighter ">
<option value="" disabled selected hidden>Choose a Budget</option>
<option value="1">$</option>
<option value="2">$$</option>
<option value="3">$$$</option>
<option value="4">$$$$</option>
</select>
</div>
</div>
</div>
</div>
<!--Enter type of Restaurant Type-->
<div class="column second-column is-one-quarter">
<div class="field has-addons">
<div class="control is-expanded">
<div class="select is-fullwidth">
<select id="food-type-list" class="has-background-grey-lighter">
<option value="" disabled selected hidden>Choose a Type of Food </option>
<option value="American">American</option>
<option value="Delis">Delis</option>
<option value="Burgers">Burgers</option>
<option value="Breakfast">Breakfast</option>
<option value="Mexican">Mexican</option>
<option value="Chinese">Chinese</option>
<option value="Vietnamese">Vietnamese</option>
<option value="Thai">Thai</option>
<option value="BBQ">BBQ</option>
<option value="Sandwhiches">Sandwhiches</option>
<option value="Pakistani">Pakistani</option>
<option value="Greek">Greek</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="columns is-centered">
<div class="column is-half has-text-centered">
<button class="button has-background-grey-lighter" type="submit">Submit</button>
</div>
</div>
</div>
</form>
</section>
<!--Previous Saved Restaurant button section-->
<section>
<div class="container is-multiline">
<ul id="restaurantHistory" class="buttons are-normal is-centered"></ul>
</div>
</section>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous">
</script>
<script src="assets/node_modules/animejs/lib/anime.min.js"></script>
<script src="https://unpkg.com/zdog@1/dist/zdog.dist.min.js"></script>
<script src="assets/index.js"></script>
</body>
</html>