-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (71 loc) · 2.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Neighborhood Map Project</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<main class="container-fluid" id="mapView">
<section class="row">
<aside class="col-md-3 no-padding">
<section class="panel-group">
<section class="panel panel-default">
<section class="panel-heading">
<h4 class="panel-title">
<section class="row">
<section class="col-xs-10 vcenter">
<input type="text" data-bind="textInput: searchTerm" class="form-control" placeholder="Search">
</section><!--
--><section class="col-xs-2 vcenter">
<a data-toggle="collapse" href="#collapse1">
<span class="glyphicon glyphicon-menu-hamburger"></span>
</a>
</section>
</section>
</h4>
</section>
<section id="collapse1" class="panel-collapse collapse in">
<ul class="list-group" data-bind="foreach: filterResults">
<li class="list-group-item">
<a href="#" data-bind="text: name, click: $parent.showMarkerInfo.bind($index())"></a>
</li>
</ul>
</section>
</section>
</section>
</aside>
<section class="col-md-9 no-padding">
<div class="map" id="map" data-bind="map: filterResults"></div>
</section>
</section>
</main>
<section id="weatherView">
<p class="weather-title">
Location:
<span class="weather-result" data-bind="text: location"></span>
</p>
<p class="weather-title">
Temperature:
<span class="weather-result" data-bind="text: temp"></span>
</p>
<p class="weather-title">
Humidity:
<span class="weather-result" data-bind="text: humidity"></span>
</p>
<img data-bind="attr: {src: url}" />
<span class="weather-description" data-bind="text: description"></span>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/libs/knockout-3.4.1.debug.js"></script>
<script src="js/models.js"></script>
<script src="js/bindings.js"></script>
<script src="js/viewmodel.js"></script>
<script src="js/app.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCw3Ftg0e0a9ku5Pk8GlfJYtwjD9vC3SfQ&callback=initMap"
onerror="alert('Google Maps API laoding failed! Some features would not work so we highly recommend to refresh the browser to prevent the problem. If the error persists then report us!')"></script>
</body>
</html>