-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
181 lines (181 loc) · 10.9 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" />
<meta content="" name="description" />
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/qle.js"></script>
<title>QMK Logo Editor</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="">QMK Logo Editor</a>
<div class="collapse navbar-collapse" id="navbars">
<div class="nav navbar-nav" id="nav-tab" role="tablist">
<span class="text-light">Ctrl+C to copy image to the clipboard, Ctrl+V to paste image from the clipboard, Ctrl+Z/Ctrl+Y to undo/redo.</span>
</div>
</div>
</div>
</nav>
<div class="container">
<nav>
<div class="nav nav-pills mt-3 mb-2" id="nav-tab" role="tablist">
<a class="nav-item nav-link active" data-toggle="tab" href="#nav-font" id="nav-font-tab" role="tab" title="Pixel font, arbitrary font width, height is 8 or 16 pixels.">Font</a>
<a class="nav-item nav-link" data-toggle="tab" href="#nav-logo" id="nav-logo-tab" role="tab" title="Arbitrary text (uses font characters), 0x10 for newline">Text</a>
<a class="mr-2 nav-item nav-link" data-toggle="tab" href="#nav-raw" id="nav-raw-tab" role="tab" title="Arbitrary bitmap data, fixed tile width and height (8x8).">Raw</a>
<div>
<div class="mr-2 btn-group btn-group-toggle" data-toggle="buttons" id="scale">
<label class="btn btn-secondary active" title="1x">
<input id="small" name="scale" type="radio">Small</input>
</label>
<label class="btn btn-secondary" title="5x">
<input checked="checked" id="medium" name="scale" type="radio">Medium</input>
</label>
<label class="btn btn-secondary" title="16x">
<input id="large" name="scale" type="radio">Large</input>
</label>
</div>
<div class="mr-2 btn-group">
<button class="btn btn-secondary" id="undo" type="button" title="Ctrl+Z">Undo</button>
<button class="btn btn-primary" id="redo" type="button" title="Ctrl+Y">Redo</button>
</div>
<div class="mr-2 btn-group">
<button class="btn btn-secondary" id="upload" title="Upload picture in arbitrary format">Upload Image</button>
<input class="d-none" id="file" type="file" />
<button class="btn btn-primary" id="download" title="Download .PNG">Download Image</button>
</div>
<button class="btn btn-danger" id="clear" title="Clear Image">Clear Image</button>
</div>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<!--font-->
<div class="tab-pane fade show active" id="nav-font" role="tabpanel">
<div class="canvas-container">
<canvas id="canvas_font"></canvas>
<div class="grid-container"></div>
<div class="symbol-overlay"></div>
</div>
<div class="mb-2">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a aria-controls="home" aria-selected="true" class="nav-link active" data-toggle="tab" href="#home" id="home-tab" role="tab">Export</a>
</li>
<li class="nav-item">
<a aria-controls="profile" aria-selected="false" class="nav-link" data-toggle="tab" href="#profile" id="profile-tab" role="tab">Raw data</a>
</li>
<li class="nav-item dropdown">
<a aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">Examples</a>
<div class="dropdown-menu" id="examples">
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/helix/common/glcdfont.c">helix</a>
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/crkbd/lib/glcdfont.c">crkbd</a>
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/yosino58/lib/glcdfont.c">yosino58</a>
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/lily58/lib/glcdfont_lily.c">lily58</a>
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/rgbkb/sol/common/glcdfont.c">sol</a>
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/rgbkb/zen/common/glcdfont.c">zen</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="https://raw.githubusercontent.com/qmk/qmk_firmware/master/drivers/oled/glcdfont.c">drivers/oled</a>
</div>
</li>
<li class="ml-auto">
<div class="float-right form-inline">
<div class="mr-2">Font Width</div>
<input class="form-control mr-1" id="fw" max="256" min="1" size="2" type="number" value="6" />
<div class="ml-2 mr-2">Font Height</div>
<input class="form-control" id="fh" max="256" min="8" size="2" step="8" type="number" value="8" />
</div>
</li>
</ul>
</div>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel">
<textarea autofocus="autofocus" class="form-control" id="font" rows="12" wrap="off"></textarea>
</div>
<div class="tab-pane fade" id="profile" role="tabpanel">
<textarea class="form-control" id="dec" rows="10" wrap="on"></textarea>
</div>
</div>
<div class="mt-1">
<span id="hint_font"></span>
<span class="float-right hint_char"></span>
</div>
</div>
<!--logo-->
<div class="tab-pane fade" id="nav-logo" role="tabpanel">
<div class="canvas-container">
<canvas id="canvas_logo"></canvas>
<div class="grid-container"></div>
<div class="symbol-overlay"></div>
</div>
<ul class="nav nav-tabs mb-2" id="myTab" role="tablist">
<li class="nav-item">
<a aria-controls="home" aria-selected="true" class="nav-link active" data-toggle="tab" href="#home" id="home1-tab" role="tab">Export</a>
</li>
<li class="nav-item dropdown">
<a aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">Examples</a>
<div class="dropdown-menu" id="examples_logo">
<a class="dropdown-item" href="files/logo_reader.c">files/logo_reader.c</a>
<a class="dropdown-item" href="files/logo_apple.c">files/logo_apple.c</a>
<a class="dropdown-item" href="files/logo_windows.c">files/logo_windows.c</a>
<a class="dropdown-item" href="files/logo_tux.c">files/logo_tux.c</a>
<a class="dropdown-item" href="files/logo_android.c">files/logo_android.c</a>
</div>
</li>
</ul>
<textarea class="form-control" id="logo" rows="10" wrap="off"></textarea>
<div class="mt-1">
<span id="hint_logo"></span>
<span class="float-right hint_char"></span>
</div>
</div>
<!--raw-->
<div class="tab-pane fade" id="nav-raw" role="tabpanel">
<div class="canvas-container">
<canvas id="canvas_raw"></canvas>
<div class="grid-container"></div>
<div class="symbol-overlay"></div>
</div>
<ul class="nav nav-tabs mb-2" id="myTab" role="tablist">
<li class="nav-item">
<a aria-controls="home" aria-selected="true" class="nav-link active" data-toggle="tab" href="#home" id="home1-tab" role="tab">Export</a>
</li>
<li class="nav-item dropdown">
<a aria-expanded="false" aria-haspopup="true" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button">Examples</a>
<div class="dropdown-menu" id="examples_raw">
<a class="dropdown-item" href="files/jorne_raw.c">files/jorne_raw.c</a>
<a class="dropdown-item" href="files/kyria_raw.c">files/kyria_raw.c</a>
<a class="dropdown-item" href="files/doge_raw.c">files/doge_raw.c</a>
</div>
</li>
<li class="ml-auto">
<div class="float-right form-inline">
<div class="mr-2">Image Width</div>
<input class="form-control mr-2" id="iw" max="256" min="8" size="3" type="number" value="128" step="8"/>
</div>
</li>
</ul>
<textarea class="form-control" id="raw" rows="12" wrap="off"></textarea>
<div class="mt-1">
<span id="hint_raw"></span>
<span class="float-right hint_char"></span>
</div>
</div>
</div>
</div>
<a aria-label="View source on Github" class="github-corner" href="https://github.com/joric/qle">
<svg viewbox="0 0 250 250">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path class="octo-arm" d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;"></path>
<path class="octo-body" d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor"></path>
</svg>
</a>
<footer class="page-footer font-small pt-4"></footer>
</body>
</html>