-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
202 lines (196 loc) · 11.3 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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang="jp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
</head>
<body>
<style type="text/css" media="screen">
</style>
<div class="container">
<h1>Map</h1>
<p><a href="https://github.com/enukane/nk-wlan-planner">View the project on GitHub</a> <a href="./antenna-pattern.html">Antenna Pattern Converter</a></p>
<canvas id="canvas-map" width="1280" height="800"></canvas>
<div class="row">
<label>Power [dBm]</label>
</div>
<div class="row">
<table class="table">
<tbody>
<tr id="tr-powerdb-colorbar"></tr>
</tbody>
</table>
</div>
<div class="row">
<label>Attenuation [dBm]</label>
</div>
<div class="row">
<table class="table">
<tbody>
<tr id="tr-obstacles-attdb-colorbar"></tr>
</tbody>
</table>
</div>
<div id="map-status" class="alert alert-primary" role="alert">
Press Button to operate
</div>
<div id="coverage-status" class="alert alert-primary" role="alert">
Coverage Evaluation:
</div>
</div>
<div>
<div>
</div>
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
<h4>AP</h4>
</div>
<div class="card-body">
<h5 class="card-title">Operations</h5>
<div class="btn-group">
<button id="button-add-ap" type="button" class="btn btn-outline-primary toggle">Add (a)</button>
<button id="button-modify-ap" type="button" class="btn btn-outline-success">Modify</button>
<button id="button-del-ap" type="button" class="btn btn-outline-warning">Delete (d)</button>
<button id="button-clear-ap" type="button" class="btn btn-outline-danger">Clear</button>
</div>
<h5 class="card-title">Parameters</h5>
<h6 class="dard-title">Tx Power</h6>
<select id="ap-param-powerdb" class="form-select" aria-label="select ap power in dBm">
<option value="10">10 dBm (10 mW)</option>
<option value="14">14 dBm (25 mW)</option>
<option value="17">17 dBm (50 mW)</option>
<option value="20" selected>20 dBm (100 mW)</option>
<option value="23">23 dBm (200 mW)</option>
<option value="24">24 dBm (250 mW)</option>
<option value="30">30 dBm (1 W)</option>
<option value="40">40 dBm (10 W)</option>
</select>
<h6 class="dard-title">Antenna Pattern</h6>
<select id="ap-param-antenna-type" class="form-select" aria-label="select ap power in dBm">
<option value="0" selected>Omni-Directional</option>
</select>
<h6 class="card-title">Antenna Angle (right: 0, clockwise)</h6>
<div class="row">
<div class="col-md-8">
<input type="number" class="form-range" value="0" min="-180" max="180" id="ap-param-antenna-angle">
</div>
<div class="col-md-4">
<button id="button-apply-ap-param" type="button" class="btn btn-outline-primary" disabled>Apply</button>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="row card">
<div class="card-header">
<h4>Wall/Obstacles</h4>
</div>
<div class="card-body w-100">
<h5 class="card-title">Type</h5>
<div class="card-text">
<select id="select-wall-type" class="form-select" aria-label="select wall type">
<option value="drywall" selected>Dry Wall (3 dB)</option>
<option value="bookshelf">Bookshelf (3 dB)</option>
<option value="exteriorglass">Exterior Glass (3 dB)</option>
<option value="wooddoor">Wood Door (6 dB)</option>
<option value="marble">Marble Wall (6 dB)</option>
<option value="brick">Brick Wall (10 dB)</option>
<option value="concrete">Concrete Wall (12 dB)</option>
<option value="elevator-shaft">Elevator Shaft (30 dB)</option>
</select>
</div>
<h5 class="card-title">Operations</h5>
<div class="card-text">
<div class="btn-group">
<button id="button-add-wall" type="button" class="btn btn-outline-primary">Add Line (w)</button>
<Button id="button-add-square" type="button" class="btn btn-outline-primary">Square Box (s)</Button>
</div>
<div class="btn-group">
<Button id="button-add-v-wall" type="button" class="btn btn-outline-primary">Vertical Line (v)</Button>
<Button id="button-add-h-wall" type="button" class="btn btn-outline-primary">Horizontal Line (t)</Button>
<button id="button-add-human" type="button" class="btn btn-outline-primary">Human Body (x)</button>
</div>
<div class="btn-group">
<button id="button-del-wall" type="button" class="btn btn-outline-warning">Delete Wall (f)</button>
<button id="button-clear-wall" type="button" class="btn btn-outline-danger">Clear Wall</button>
</div>
</div>
</div>
</div>
<div class="row card">
<div class="card-header">
<h4>Frequency</h4>
</div>
<div class="card-body">
<h5 class="card-title">Displaying Band</h5>
<select id="select-freq-type" class="form-select" aria-label="select frequency type">
<option value="920000000">920MHz</option>
<option value="2412000000">2.4GHz</option>
<option value="4920000000">4.9GHz</option>
<option value="5180000000" selected>5GHz (W52, U-NII-1)</option>
<option value="5260000000">5GHz (W53, U-NII-2A)</option>
<option value="5500000000">5GHz (W56, U-NII-2C)</option>
<option value="5745000000">5GHz (W58, U-NII-3)</option>
<option value="5955000000">6GHz (U-NII-5)</option>
<option value="6435000000">6GHz (U-NII-6)</option>
<option value="6435000000">6GHz (U-NII-7)</option>
<option value="6895000000">6GHz (U-NII-8)</option>
<option value="58320000000">60GHz</option>
</select>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">Image Scale [Meter]</h5>
<input id="text-scale-meter" class="form-control" type="text" placeholder="Length in Meter">
<button id="button-select-scale" type="button" class="btn btn-outline-primary">Drag & Select Scale</button>
<button id="button-measure-scale" type="button" class="btn btn-outline-primary">Measure Scale</button>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Image Upload</h5>
<input type="file" name="file" id="button-image-upload">
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Coverage</h5>
<button id="button-add-coverage" type="button" class="btn btn-outline-primary">Add</button>
<button id="button-del-coverage" type="button" class="btn btn-outline-primary">Delete</button>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Save Config</h5>
<button id="button-download" type="button" class="btn btn-outline-primary">Download Config</button>
<h5 class="card-title">Load Config</h5>
<input type="file" name="file" id="button-config-upload">
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Save Image</h5>
<button id="button-image-download" type="button" class="btn btn-outline-primary">Download Image</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2"
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.js"
integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<script src="shortcut.js"></script>
<script src="main.js"></script>
</body>
</html>