-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·146 lines (138 loc) · 4.36 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
<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript API v3 Example: Map Geolocation</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link href="css/default.css" rel="stylesheet">
<!--
Include the maps javascript with sensor=true because this code is using a
sensor (a GPS locator) to determine the user's location.
See: https://developers.google.com/apis/maps/documentation/javascript/basics#SpecifyingSensor
-->
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<link href="css/smoothness/jquery-ui-1.8.23.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="css/jScrollPane.css" />
<link href="css/jquery.miniColors.css" rel="stylesheet" type="text/css" />
<link href="css/fileuploader.css" rel="stylesheet" type="text/css" />
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/datatable.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.8.0.min.js"></script>
<script src="js/jquery-ui-1.8.23.custom.min.js"></script>
<script src="js/jquery.miniColors.min.js"></script>
<script src="js/jquery.dataTable.js"></script>
<script src="js/formsui.js"></script>
<script src="js/fileuploader.js"></script>
<script src="js/jquery.validate.js"></script>
<script src="js/app.js"></script>
<script type="text/javascript" src="js/jScrollPane.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=true"></script>
<script>
var map;
function initialize() {
var mapOptions = {
zoom: 6,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
// Try HTML5 geolocation
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = new google.maps.LatLng(position.coords.latitude,
position.coords.longitude);
var infowindow = new google.maps.InfoWindow({
map: map,
position: pos,
content: 'Location found using HTML5.'
});
map.setCenter(pos);
}, function() {
handleNoGeolocation(true);
});
} else {
// Browser doesn't support Geolocation
handleNoGeolocation(false);
}
}
function handleNoGeolocation(errorFlag) {
if (errorFlag) {
var content = 'Error: The Geolocation service failed.';
} else {
var content = 'Error: Your browser doesn\'t support geolocation.';
}
var options = {
map: map,
position: new google.maps.LatLng(60, 105),
content: content
};
var infowindow = new google.maps.InfoWindow(options);
map.setCenter(options.position);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<script>
$(function() {
$( "[data-role='button']" ).button();
$(".item_list #devices").click(function(){
app.showDevices(true);
})/*.mouseleave(function(){
app.showDevices(false);
//setTimeout(function(){app.showDevices(false);},100);
})*/
});
</script>
</head>
<body>
<div id="container">
<div id="header">
<div class="mainnav">
<ul>
<li>
</li>
</ul>
</div>
</div>
<div id="listbox">
<div class="item_list">
<a href="javascript:app.map();">
<div>
<div class="ico map"></div>
<div class="description">Map</div>
</div>
</a>
</div>
<div class="item_list">
<a id="devices">
<div>
<div class="ico devices"></div>
<div class="description">Devices</div>
</div>
</a>
</div>
<div class="item_list">
<a href="javascript:app.library();">
<div>
<div class="ico library"></div>
<div class="description">Library</div>
</div>
</a>
</div>
</div>
<div id="contentmain">
<div class="NTa">
<div class="SDa">
<div class="UDa"></div>
<div class="TDa"></div>
</div>
<div>
<div></div>
<div></div>
</div>
</div>
<div id="ctn_display"></div>
<div id="map_canvas" ></div>
</div>
</div>
</body>
</html>