-
Notifications
You must be signed in to change notification settings - Fork 79
/
index.html
72 lines (51 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="msapplication-TileColor" content="#2196f3">
<meta name="msapplication-config" content="browserconfig.xml">
<meta name="theme-color" content="#2196f3">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="msapplication-starturl" content="./">
<meta name="description"
content="Progressive Web Application for serial communication with your own Bluetooth Low Energy (Smart) devices">
<title>Web Bluetooth Terminal</title>
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#2196f3">
<link rel="shortcut icon" href="icons/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/normalize.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
</head>
<body>
<div class="app">
<div class="toolbar">
<div id="device-name" class="name">Terminal</div>
<div class="buttons">
<button id="connect" type="button" aria-label="Connect">
<i class="material-icons">bluetooth_connected</i>
</button>
<button id="disconnect" type="button" aria-label="Disconnect">
<i class="material-icons">bluetooth_disabled</i>
</button>
</div>
</div>
<div id="terminal" class="terminal"></div>
<form id="send-form" class="send-form">
<input id="input" type="text" aria-label="Input" autocomplete="off" placeholder="Type something to send...">
<button type="submit" aria-label="Send">
<i class="material-icons">send</i>
</button>
</form>
</div>
<script src="js/BluetoothTerminal.js"></script>
<script src="js/main.js"></script>
<script src="js/companion.js" data-service-worker="sw.js"></script>
</body>
</html>