-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin.html
171 lines (146 loc) · 4.96 KB
/
admin.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<style>
#map{
margin-left: 25%;
height: 500px;
width: 50%;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="loratech.html">ADMIN PAGE</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#"><span class="sr-only">(current)</span></a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<br>
<div class="list-group container">
<div class="dropdown list-group-item list-group-item-action">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
LoRa Nodes
</button>
<style media="screen">
.dot1{
height: 10px;
width: 10px;
background-color: green;
border-radius: 50%;
display: inline-block;
}
</style>
<style media="screen">
.dot2{
height: 10px;
width: 10px;
background-color: red;
border-radius: 50%;
display: inline-block;
}
</style>
<style media="screen">
.dot3{
height: 10px;
width: 10px;
background-color: red;
border-radius: 50%;
display: inline-block;
}
</style>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="LoRa1.html">LoRa 1 <span class="dot1"></span></a>
<a class="dropdown-item" href="#">LoRa 2 <span class="dot2"></span></a>
<a class="dropdown-item" href="#">LoRa 3 <span class="dot3"></span></a>
</div>
</div>
<a href="#" class="list-group-item list-group-item-action">Location</a>
</div>
<br>
<div id="map">
</div>
<script>
function initMap(){
//Map Options
var options = {
zoom:8,
center:{lat:10.0554,lng: 76.3551}
}
//New Map
var map = new google.maps.Map(document.getElementById('map'),options);
//Add Marker
// var marker = new google.maps.Marker({
// position:{lat:10.0261,lng: 76.3125},
// map:map
// });
//
addMarker1({lat:10.0554,lng: 76.3551});
addMarker2({lat:10.5276,lng: 76.2144});
// addMarker({lat:11.0510,lng: 76.0711});
addMarker3({lat:11.2588,lng: 75.7804});
//Add Marker function
function addMarker1(coords){
var marker = new google.maps.Marker({
position:coords,
map:map,
});
marker.addListener('click',function(){
infoWindow1.open(map,marker);
});
}
function addMarker2(coords){
var marker = new google.maps.Marker({
position:coords,
map:map,
});
marker.addListener('click',function(){
infoWindow2.open(map,marker);
});
}
function addMarker3(coords){
var marker = new google.maps.Marker({
position:coords,
map:map,
});
marker.addListener('click',function(){
infoWindow3.open(map,marker);
});
}
var infoWindow1 = new google.maps.InfoWindow({
content:'<h1>LoRa 1</h1>'
});
var infoWindow2 = new google.maps.InfoWindow({
content:'<h1>LoRa 2</h1>'
});
var infoWindow3 = new google.maps.InfoWindow({
content:'<h1>LoRa 3</h1>'
});
//
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDQptqa10s-pziD9T-ECBMO0viTKbTfkWw&callback=initMap">
</script>
</body>
</html>