-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathtransfer.html
79 lines (78 loc) · 3.53 KB
/
transfer.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Transfer</title>
<link rel="stylesheet" href="css/theme.css">
<link rel="stylesheet" href="css/transfer.css">
</head>
<body>
<nav>
<div id="status-indicator" class="color-selector"></div>
<h1>Transfer Data</h1>
</nav>
<main class="send">
<section id="settings">
<div class="input-container">
<label for="main-checkbox">Hub device:</label>
<input id="main-checkbox" type="checkbox">
</div>
<div id="receive-directory-container" class="input-container receive">
<label for="receive-directory" class="file-label">Choose an output directory</label>
<input id="receive-directory" type="file" webkitdirectory multiple="false">
<ul class="input-list"></ul>
</div>
<div id="data-file-container" class="input-container send">
<label for="data-file" class="file-label">Select your data file</label>
<input id="data-file" type="file" accept="text/csv,.csv">
<ul class="input-list"></ul>
</div>
</section>
<section id="device-viewer" class="receive connected">
<h2>Device Listing</h2>
<div id="device-list">
<!-- Devices populated by JS -->
</div>
</section>
<section id="broadcast-data" class="send connected">
<h2>Broadcast Data</h2>
<div id="broadcast-steps">
<div class="broadcast-step">
<h3>Waiting for connection</h3>
<svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px">
<use href="images/transfer/bluetooth_searching.svg#icon"></use>
</svg>
<p class="instruction">Select a data file to start broadcasting</p>
</div>
<div class="broadcast-step">
<h3>Preparing to send</h3>
<svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px">
<use href="images/transfer/bluetooth_connected.svg#icon"></use>
</svg>
</div>
<div class="broadcast-step">
<h3>Sending data</h3>
<svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px">
<use href="images/transfer/upload.svg#icon"></use>
</svg>
</div>
<div id="broadcast-complete-step" class="broadcast-step">
<h3>Data sent successfully</h3>
<svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px">
<use href="images/transfer/checkmark.svg#icon"></use>
</svg>
</div>
</div>
</section>
<section id="no-connection" class="disconnected">
<h2>Bluetooth Disabled</h2>
<svg xmlns="http://www.w3.org/2000/svg" height="48px" viewBox="0 0 24 24" width="48px">
<use href="images/transfer/bluetooth_disabled.svg#icon" class="icon"></use>
</svg>
<p>Please turn on Bluetooth in system preferences</p>
<button id="enable-bluetooth">Open Bluetooth Settings</button>
</section>
</main>
<script src="js/transfer/transfer.js"></script>
</body>
</html>