-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
178 lines (145 loc) · 7.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>OkMyKey</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="./styles.css">
<!-- Scripts -->
<script>
delete module.exports
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://kit.fontawesome.com/f6e3bd48b9.js"></script>
<script src="./window.js" charset="utf-8"></script>
</head>
<body>
<!-- Info Modal -->
<div class="modal fade" id="info-modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 id='info-modal-title' class="modal-title"></h4>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Loading Modal -->
<div class="modal fade" tabindex="-1" role="dialog" id="loading-modal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered text-center" role="document">
<span class="fa fa-spinner fa-spin fa-3x w-100"></span>
</div>
</div>
<div class="left-aligned-buttons" id="device-data-transfer" style="display: none; margin-right: 0px;">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle fas fa-cog" type="button" id="dropdownMenuButton"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> </button>
<div class="dropdown-menu dropdown-menu-left" aria-labelledby="dropdownMenuButton">
<button type="button" id="export-settings" class="dropdown-item"><i class="fas fa-file-upload"></i> Export
Settings</button>
<button type="button" id="import-settings" class="dropdown-item"><i class="fas fa-file-download"></i> Import
Settings</button>
<button type="button" id="erase-settings" class="dropdown-item"><i class="fas fa-eraser"></i> Erase
Device</button>
</div>
</div>
</div>
<div class="right-aligned-buttons">
<label id="ports-hint" ports-hintclass="">Select the device</label>
<i id="ports-hint-icon" class="fas fa-arrow-circle-right" style="vertical-align: middle;"></i>
<label id="ports-error"></label>
<div class="btn-group" role="group">
<div class="btn-group" role="group">
<button class="btn btn-secondary dropdown-toggle" type="button" id="ports-selection" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Serial Ports</button>
<div class="dropdown-menu" aria-labelledby="ports-selection" id="ports-selection-list">
</div>
</div>
<button type="button" id="refresh-ports" class="btn btn-secondary fas fa-sync-alt"></button>
</div>
</div>
<div id="button-selection-container" style="display: none;">
<!-- Page selection -->
<div id="pages" class="btn-toolbar mb-4 justify-content-center" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group-lg ml-3" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary selected">1</button>
<button type="button" class="btn btn-secondary">2</button>
<button type="button" class="btn btn-secondary">3</button>
<button type="button" class="btn btn-secondary">4</button>
</div>
</div>
<ul id="keyboard">
<li class="letter">S5</li>
<li class="letter">S6</li>
<li class="letter">S7</li>
<li class="letter">S8</li>
<li class="letter">S4</li>
<li class="letter">S3</li>
<li class="letter">S2</li>
<li class="letter">S1</li>
</ul>
</div>
<div id="settings-area" style="display: none;">
<div class="btn-group btn-group-toggle btn-block" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="button-modes" id="press-mode" value="press-mode" autocomplete="off" checked>Press
Mode</label>
<label class="btn btn-secondary">
<input type="radio" name="button-modes" id="print-mode" value="print-mode" autocomplete="off">Print Mode</label>
</div>
<div id="settings-area-mode">
<div id="press-mode-settings" class="button-mode-settings">
<div class="input-group">
<input type="text" id="press-mode-input" class="form-control command-input" maxlength="50"
placeholder="Key1+Key2+..."></input>
<div class="input-group-append">
<button type="button" id="refresh-ports" data-toggle="dropdown" class="btn btn-secondary dropdown-toggle"><a
class="fas fa-keyboard"></a></button>
<div id="key-selection-list" class="dropdown-menu">
<a class="dropdown-item" name="press-mode-special-key" href="#">Ctrl</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Alt</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Shift</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Tab</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Win</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Backspace</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Up</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Down</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Left</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">Right</a>
<a class="dropdown-item" name="press-mode-special-key" href="#">FX</a>
</div>
</div>
</div>
</div>
<div id="print-mode-settings" style="display: none;">
<textarea rows="2" id="text-input" maxlength="110" class="form-control text-input"
placeholder="Enter the text to be printed..."></textarea>
</div>
</div>
<div id="action-buttons">
<div class="right-aligned-buttons" id="device-data-controls-confirmation" style="margin-right: 0px;">
<div class="btn-group" role="group">
<button type="button" id="cancel-settings" class="btn btn-dark">Cancel</i></button>
<button type="button" id="confirm-settings" class="btn btn-warning">Confirm</i></button>
</div>
</div>
<div class="right-aligned-buttons" id="device-data-controls" style="display: none; margin-right: 0px;">
<div class="btn-group" role="group">
<button type="button" id="save-settings" class="btn btn-secondary">Save <i class="fas fa-save"></i></button>
<button type="button" id="upload-settings" class="btn btn-secondary">Read <i
class="fas fa-upload"></i></button>
</div>
</div>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</html>