-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (52 loc) · 2.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Neighborhood Map</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<section class="wrapper" data-bind="style: {display: isAppLoaded() ? 'block': 'none'}">
<header class="header">
<!-- creating hamburger icon to show side bar-->
<div class="hamburger-icon" data-bind='click: showSideBar'>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<h1 class="header-title">Neighborhood Map</h1>
</header>
<aside class="sidebar" data-bind="style: { width: isSideBarVisible() ? '250px' : '0'}">
<section class='sidebar-content'>
<div class="sidebar-header">
<h2 class="sidebar-title">Filter</h2>
<!-- creating close icon to hide the side bar -->
<div data-bind="click: hideSideBar" class="close-icon">
<div class="bar1"></div>
<div class="bar2"></div>
</div>
</div>
<input type="search" class="input-search" placeholder="Search.." data-bind="textInput: searchedText, valueUpdate: 'afterkeydown'"/>
<div data-bind="visible: !filterLocation().length" class="error-list error">No data found</div>
<!-- location-list containing lists of locations -->
<ul class="location-list" data-bind="foreach: filterLocation">
<li class="location" data-bind="text: title, click: $parent.displayVenue"></li>
</ul>
</section>
</aside>
<div id="map" class="map"></div>
<div class="back-drop" data-bind="visible: isSideBarVisible, click: hideSideBar"></div>
<!-- displaying four square logo-->
<aside class="fourSquareLogo"></aside>
</section>
<!-- wrapper for handling error in map loading, displaying error message-->
<section class="wrapper" data-bind = "style: {display: !isAppLoaded() ? 'flex': 'none'}">
<h3 class="error-title error">There is some issue loading the map<br/>Please check the internet connection or try after some time</h3>
</section>
<script type="text/javascript" src="./dist/main.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDbqG1PMoPH2Zit5sAFsF5c28prKGH-wSg&v=3&callback=initMap" onerror="handleMapError()">
</script>
</body>
</html>