-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (49 loc) · 1.97 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
<!--
@Author: Axel Galicia
@Description: This project was created using the help of ChatGPT to create a prototype
to display a list of bluetooth devices displaying an approximation of its distances.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Device Proximity Visualization</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body data-theme="light">
<div class="container">
<h2>Bluetooth Device's Distance</h2>
<div class="filter-container">
<label>Refresh Frequency (milliseconds): </label>
<input type="number" id="refreshFrequency" value="1000">
<button onclick="setRefreshFrequency()">Set</button>
<label>RSSI Filter: </label>
<input type="number" id="rssiMin" placeholder="Min RSSI">
<input type="number" id="rssiMax" placeholder="Max RSSI">
<label>Device Name: </label>
<input type="text" id="deviceName" placeholder="Device name">
<label>Only show devices with name: </label>
<input type="checkbox" id="devicesWithName" placeholder="Device with name" checked>
<button onclick="updateFilters()">Apply Filters</button>
</div>
<div class="visualization-container">
<svg width="800" height="600"></svg>
</div>
<div class="table-container">
<table id="devicesTable">
<tr>
<th>Device Name</th>
<th>RSSI</th>
<th>UUID</th>
<th>DISTANCE in (m)</th>
</tr>
</table>
</div>
</div>
<div class="tooltip" id="tooltip"></div>
<script src="./js/d3.v7.min.js"></script>
<script src="./js/app.js"></script>
</body>
</html>