-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (50 loc) · 1.65 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Creating an Npm-driven Website</title>
</head>
<body>
<div class="container">
<h1>Your Google Maps Locations</h1>
<form id="geocoding_form" class="form-horizontal">
<div class="form-group">
<div class="col-xs-12 col-md-6 col-md-offset-3">
<div class="input-group">
<input type="text" class="form-control" id="address" placeholder="Enter your location...">
<span class="input-group-btn">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
</span>
</div>
</div>
</div>
</form>
<div class="map-overlay">
<p>Loading...</p>
<div id="map"></div>
</div>
<div class="col-xs-12 col-md-6 col-md-offset-3 save-container">
<h4 id="save-location"></h4>
<span class="glyphicon glyphicon-star-empty" aria-hidden="true"></span>
</div>
<div class="list-group col-xs-12 col-md-6 col-md-offset-3">
<span class="list-group-item active">Saved Locations</span>
</div>
</div>
<!-- The actively library -->
<!--script type="module" src="node_modules/lodash/throttle.js"></script-->
<script src="output/actively.js"></script>
<script>
const active = new window.Actively({
timeIntervalEllapsedCallbacks: [],
absoluteTimeEllapsedCallbacks: [],
browserTabInactiveCallbacks: [],
browserTabActiveCallbacks: [],
idleTimeoutMs: 3000,
checkCallbacksIntervalMs: 250
})
window.addEventListener('mousemove', active.startTimer)
window.addEventListener('beforeunload', active.stopTimer)
</script>
</body>
</html>