-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (84 loc) · 3.4 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
<!DOCTYPE html>
<html>
<head>
<title>Neighborhood Explorer</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="node_modules/semantic-ui-css/semantic.css">
<link rel="stylesheet" href="css/offline-theme-default.css">
<link rel="stylesheet" href="css/offline-language-english.css">
<link rel="stylesheet" href="css/master.css" media="screen">
<link rel="stylesheet" media="screen and (min-width: 320px) and (max-width: 667px)" href="css/mobile.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
var performOfflineCheck = function(){
$.ajax({
url: "/conn_check.js",
type: "GET",
cache: false,
success: function () {
if (!$('.conn-error').hasClass('hidden')) {
$('.conn-error').addClass('hidden');
}
},
error: function () {
console.log("Connection failed");
$('.conn-error').removeClass('hidden');
}
});
};
setInterval(performOfflineCheck, 1000);
</script>
</head>
<body>
<div class="conn-error ui negative message hidden">
Connection lost, please try again later.
</div>
<div class="controls-bar">
<div class="search-control controls ui icon input">
<input id="address-search" class="address-search" placeholder="Enter a new address to search" data-bind="enterkey: $root.resetSearch"/>
<i class="search icon"></i>
</div>
</div>
<div id="map-canvas" class="map-canvas"></div>
<div class="list-container" data-bind="with: locationFourSquareData">
<div class="show-places ui button teal hidden float-right" data-bind="click: $root.showFunPlaces">
Show fun places
</div>
<div class="hide-places hidden ui button black float-right" data-bind="click: $root.hideFunPlaces">
Hide fun places
</div>
<div class="places-list ui styled accordion hidden" data-bind="foreach: items">
<div class="title places-list-item" data-bind="with: venue, click: $root.highlightMarker">
<i class="dropdown icon"></i>
<span data-bind="text: name"></span>
</div>
<div class="content" data-bind="with: venue">
<p>
Rating: <span data-bind="text: rating"></span>
</p>
<p data-bind="with: location">
Address:
<!-- ko if: typeof(address) !== 'undefined' -->
<span data-bind="text: address"></span>
<span data-bind="text: city"></span>
<span data-bind="text: country"></span>
<!-- /ko -->
</p>
</div>
</div>
</div>
<!-- Templates -->
<div class="ui modal alert small">
<div class="header">Alert</div>
<div class="content" data-bind="text: alertText">Alert text</div>
</div>
<!-- Dependecies -->
<script src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyDAyAwpCoHZhdy8JoZeQJSQp3hNLQRjn0o"></script>
<script src="node_modules/knockout/build/output/knockout-latest.js"></script>
<script src="node_modules/semantic-ui-css/semantic.js"></script>
<!-- APP Scripts -->
<script src="js/helper.js"></script>
<script src="js/app.js"></script>
</body>
</html>