forked from norbu-s/Project-Otaku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (156 loc) · 7.67 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
<!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">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
crossorigin="anonymous"
/>
<!-- Foundation CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/css/foundation.min.css" integrity="sha256-ogmFxjqiTMnZhxCqVmcqTvjfe1Y/ec4WaRj/aQPvn+I=" crossorigin="anonymous">
<!-- CSS file -->
<link rel="stylesheet" href="Assets/style.css">
<link rel="shortcut icon" type="image/png" href="Assets/images/favicon.png">
<title>Restaurant Otaku</title>
</head>
<body>
<div class="top-bar">
<a id="logo-img" href="index.html"><img src="Assets/images/heading-2.png" alt="Restaurant Otaku" height="50px" width="360px"></a>
<ul class="menu align-right">
<li><a id="highlight" href="#">RESTAURANT SEARCH</a></li>
<li><a href="fave-restaurants.html">FAVOURITES</a></li>
</ul>
</div>
<!-- Foundation grid -->
<div class="grid-x">
<!-- Foundation column 1 (search section) -->
<div id="search-cell" class="cell medium-4 large-4 ">
<div id="search-zipcode">
<form>
<input type="text" id="zipcode" placeholder="Search a suburb/city">
<button type="submit" id="search-btn"><i class="fas fa-search"></i></button>
</form>
<div id="search-history" class="dropdown">
<button class="dropbtn">Search History</button>
<hr id="history-hr">
<div class="dropdown-content">
<h2 id="title-history" class="sidebar-title"><i class="fas fa-history"></i> SEARCH HISTORY</h2>
<ul id="search-history-list">
<!-- Dynamically render search history -->
</ul>
<button id="clear-search-btn">Clear History</button>
</div>
</div>
</div>
</div>
<!-- Foundation column 2 (search results) -->
<div id="result-cell" class="cell medium-5 large-5">
<div id="content">
<h2 id="nearest-restaurant">NEARBY RESTAURANTS <span id="page-outof" class="hide">PAGE <span id="page-no">1</span> OUT OF 2</span></h2>
<div id="results"></div>
<!-- Foundation modals -->
<!-- No locations found alert -->
<div id="error-modal" class="reveal" data-reveal>
<h3>Sorry!</h3>
<p>
We can't find your searched location in our database.
</p>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
<div class="modal-ok-btn-div">
<button class="modal-ok">OK</button>
</div>
</div>
<!-- Error retrieving API data alert -->
<div id="error-modal2" class="reveal" data-reveal>
<h3>Sorry!</h3>
<p>
An error occurred while retrieving your data.
<br>
Please try again later.
</p>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
<div class="modal-ok-btn-div">
<button class="modal-ok">OK</button>
</div>
</div>
<!-- Search history clear confirm -->
<div id="error-modal3" class="reveal" data-reveal>
<h3>Clear search history?</h3>
<p>
Are you sure you want to clear your search history?
</p>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
<div id="clear-search-modal-btn-div">
<button id="clear-search-yes" class="clear-search-modal-btn">Yes</button>
<button id="clear-search-no" class="clear-search-modal-btn">No</button>
</div>
</div>
<!-- Numbers in input alert -->
<div id="error-modal4" class="reveal" data-reveal>
<p>
<strong>Invalid input.</strong>
<br>
Please search for a suburb or city.
</p>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
<div class="modal-ok-btn-div">
<button class="modal-ok">OK</button>
</div>
</div>
<!-- No input alert -->
<div id="error-modal5" class="reveal" data-reveal>
<p>
Please search for a suburb or city.
</p>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">×</span>
</button>
<div class="modal-ok-btn-div">
<button class="modal-ok">OK</button>
</div>
</div>
<!-- Page buttons -->
<div id="page-btn-div" class="grid-x">
<div class="cell">
<a href="#" id="page-btn1" class="page-btn">1</a>
|
<a href="#" id="page-btn2" class="page-btn">2</a>
</div>
</div>
</div>
</div>
<!-- Foundation column 3 (favourites section) -->
<div id="fave cell" class="cell medium-3 large-3">
<div id="faves">
<h2 id="title-faves" class="sidebar-title"><i class="far fa-heart"></i> FAVOURITES </h2>
<ul id="faves-list"></ul>
<a id="view-fav" href="fave-restaurants.html">GO TO FAVOURITES PAGE <i class="fas fa-arrow-circle-right"></i></a>
</div>
</div>
</div>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Foundation JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/js/foundation.min.js" integrity="sha256-pRF3zifJRA9jXGv++b06qwtSqX1byFQOLjqa2PTEb2o=" crossorigin="anonymous"></script>
<!-- JavaScript files -->
<script src="Assets/javascript.js"></script>
</body>
</html>