-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
235 lines (216 loc) · 8.07 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Keyboard Shortcut Image Generator v0.3</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <link rel="stylesheet" type="text/css" media="screen" href="main.css"> -->
<link rel="stylesheet" href="css/spectre.min.css" />
<link rel="stylesheet" href="css/spectre-exp.min.css" />
<link rel="stylesheet" href="css/spectre-icons.min.css" />
<link rel="stylesheet" href="css/keys.css" />
<!-- Production -->
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="js/platform1.3.5.js"></script>
<script src="js/html2canvas.ekoopman.js"></script>
<script src="js/main.js"></script>
<style>
.grid-hero h2 {
color: #455060;
font-size: .9rem;
font-weight: 400;
line-height: 1.5rem;
margin-bottom: 1.5rem;
}
</style>
<style>
#container-output-location {
/* transform: scale(5.0); */
display: inline-block;
}
#output-location {
/* background-color: #ACFFA820; */
border-radius: 3px;
padding: 10px;
}
/* keystyles stack overflow */
kbd {
display: inline-block;
margin: .1em;
padding: .1em .6em;
font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
font-size: 32px;
line-height: 1.4;
color: #242729;
text-shadow: 0 1px 0 #FFF;
background-color: #e1e3e5;
border: 1px solid #adb3b9;
border-radius: 3px;
box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;
white-space: nowrap;
}
#credits {
position: fixed;
bottom: 0;
left: 45%;
}
#img-preview-div{
margin-top: 2vh;
border: 1px dashed;
}
</style>
</head>
<body>
<div class="section section-hero bg-gray">
<div class="grid-hero container grid-lg text-center" id="overview">
<div class="docs-brand">
<br>
<h1>KeyboShot / キーボーショート</h1>
<h2>
A <u>Keyboard</u>-<u>Shortcut</u>-<u>Image</u> Generator. v0.5 ( <span href="" id="revision-history" class="label label-rounded label-primary">changeLog</span> )
<br/>
キーボード ショートカット イメージを生成する
</h2>
<h2>
</h2>
<form>
<div class="form-group">
OS :
<label class="form-radio form-inline">
<input type="radio" name="windows" checked><i class="form-icon"></i> Windows
</label>
<label class="form-radio form-inline">
<input type="radio" name="mac"><i class="form-icon"></i> Mac
</label>
<label class="form-radio form-inline">
<input type="radio" name="other"><i class="form-icon"></i> Other
</label>
<label class="form-radio form-inline">
<input type="radio" name="text"><i class="form-icon"></i> Text
</label>
</div>
</form>
<p>
<label class="form-radio form-inline"></label>
<icon id="shift-toggle" class="keyboard-key shift"></icon>
<icon id="ctrl-toggle" class="keyboard-key ctrl"></icon>
<icon id="meta-toggle" class="keyboard-key cmd"></icon>
<icon id="alt-toggle" class="keyboard-key alt"></icon>
</label>
<input class="form-input form-inline" type="text" id="kb-input" placeholder="Press Any Keyboard Shortcut" style="width: 50%; margin: auto;" />
<input class="form-input form-inline" type="text" id="user-text-input" placeholder="Type Any Keyboard Shortcut" style="width: 50%; margin: auto;" />
<div class="container">
<div class="columns">
<div class="column col-3 p-centered"><label id="only-symbols-checkbox-label" class="form-switch">
<input id="only-symbols-checkbox" type="checkbox"><i class="form-icon"></i> Use Symbols Only
</label></div>
</div>
</div>
</p>
<div >
<!-- <h2>Image Output</h2> -->
<div id="container-output-location">
<p id="output-location">
<kbd>Ctrl</kbd>+
<kbd>Alt</kbd>+
<kbd>C</kbd>
</p>
</div>
</div>
<br/>
<div class="container">
<div class="columns">
<div class="column col-3"></div>
<div class="column col-3 col-mx auto">
<button class="btn btn-primary btn-lg" type="button" id="generate-img-btn">
<i class="icon icon-check"></i> Generate image
</button>
<div class="form-group">
<label id="resize-checkbox-label" class="form-switch">
<input id="resize-checkbox" type="checkbox" checked><i class="form-icon"></i> High Quality
</label>
</div>
</div>
<div class="column col-4 col-mx auto">
<button class="btn btn-primary btn-lg" type="button" id="download-btn">
<i class="icon icon-download"></i> Download image
</button>
<div>
Resize to <select id="img-out-size-selector">
<option value="1">Default (0.5x)</option>
<option value="2">Actual (1x)</option>
<option value="3">Medium (0.75x)</option>
<option value="4">Small (0.35x)</option>
<option value="5">Very Small (0.25x)</option>
<option value="6">Too Small (0.10x)</option>
</select>
</div>
</div>
<div class="column col-2"></div>
</div>
</div>
<div id="img-preview-div">
<h2><i class="icon icon-photo"></i> Generated Image - (<b>Download -> download image</b> as png)</h2>
<p id="gen-img-size-label">w,h = [0px, 0px]</p>
<div id="img-out-preview">
</div>
<!--
used for testing resized and non resized images
<div id="img-out-preview-resized">
</div> -->
</canvas>
</div>
<br>
<br>
<h2>
<a href="https://github.com/monsterbrain/keyboard-shortcut-image-generator">
<img src="img/GitHub-Mark-32px.png" alt="github logo"> Source on Github </a> / <a href="https://github.com/monsterbrain/keyboard-shortcut-image-generator/issues">Post an issue / request new feature</a>
</h2>
<p class="text-gray">
Created by <a href="https://github.com/monsterbrain">Monster Brain</a> / <a href="https://github.com/alexis-">Alex Incognito</a> [contrib] <a href="https://github.com/GustavoA95">Gustavo</a>
<br>uses [<a href="https://html2canvas.hertzen.com/">html2canvas</a>] for converting html elements to image
<br> -- Last Updated: 30-09-2023
</p>
<br/>
<a class="docs-logo" href="https://github.com/picturepan2/spectre">
<img src="img/spectre-logo.svg" alt="Spectre.css CSS Framework">
<h2>powered by SPECTRE.css</h2>
</a>
</div>
</div>
<div class="modal" id="modal-revision-history">
<!-- <a href="#close" class="modal-overlay close-btn" aria-label="Close"></a> -->
<div class="modal-container">
<div class="modal-header">
<a href="#close" class="btn btn-clear float-right close-btn" aria-label="Close"></a>
<div class="modal-title h5">Revision History</div>
</div>
<div class="modal-body">
<div class="content">
<!-- content here -->
<h3>update v0.4</h3>
<p>- added icons for mac shortcuts (like options, cmd etc) Thanks <a href="https://github.com/GustavoA95">Gustavo Alberto</a></p>
<h3>update v0.3</h3>
<p>
- added download button <br>
- download png file with file format kbs_ctrl_x.png <br>
- added control, alt button similar to windows button
</p>
<h3>update v0.2</h3>
<p>
- image generated is shown in same page <br>
- toggle meta/windows/cmd key added <br>
- space bar key added
</p>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary close-btn">close</button>
</div>
</div>
</div>
</body>
</html>