-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (61 loc) · 3.66 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Home Page</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="home.css">
</head>
<body>
<div id = "home">
<div class="text-center mb-4">
<h1 class="h1 mb-3 font-weight-normal" style="margin-top: 100px">Welcome to Eat Complete</h1>
</div>
<form class="form-signin">
<p align="center" class="h5 mb-3 font-weight-normal">Enter a category of restaurants (<a href="cat.html">list of valid categories</a>) or leave blank to search for all restaurants</p>
<div class="form-label-group">
<input type="text" id="inputCat" style="margin-bottom: 15px" class="form-control" placeholder="Category of Restaurants" required autofocus>
<p align="center" class="h5 mb-3 font-weight-normal">Next, enter a city or zip code or use current location to begin your search</p>
<input type="text" id="inputCity" class="form-control" placeholder="City or Zip Code" required autofocus>
</div>
<button class="btn btn-lg btn-primary btn-block" type="button" onclick="changeCity()">Select Location</button>
<button class="btn btn-lg btn-primary btn-block" type="button" onclick="changeCurr()" style="margin-top: 50px">Use Current Location</button>
</form>
</div>
<div id = "new" style="display:none;">
<h1 class="h1 mb-3 font-weight-normal" style="margin-bottom: 5px"><center>Eat Complete</center></h1>
<h1 class="h4 mb-3 font-weight-normal" style="margin-bottom: 0px"><center>Click find restaurants to begin your search or load more results</center></h1>
<h1 class="h4 mb-3 font-weight-normal" style="margin-bottom: 0px"><center>Restart search to use a different location or category</center></h1>
<div class="row">
<div class="col-md-6">
<table id="table">
<tr>
<th>Business</th>
<th>Address</th>
<th>Rating</th>
<th>Price</th>
<th>Phone #</th>
</tr>
</table>
</div>
<div class="col-md-6">
<div id="map"></div>
<p hidden id="lat">empty</p>
<p hidden id="long">empty</p>
<p hidden id="category">empty</p>
<p id="curr"></p>
<button type="button" class="btn btn-lg btn-primary btn-block" onClick="performSearch()">Find Restaurants</button>
<button type="button" class="btn btn-lg btn-primary btn-block" onClick="restart()">Restart Search</button>
</div>
<p id="load"></p>
</div>
</div>
<script type="text/javascript" src="home.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAe3uPI8a0KI_ZXU1a1qjHp444cGW_A2-8&callback=initMap">
</script>
<!-- <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" crossorigin="anonymous" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" crossorigin="anonymous" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"></script> -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" crossorigin="anonymous" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"></script>
</body>
</html>