-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
212 lines (200 loc) · 9.71 KB
/
index.html
File metadata and controls
212 lines (200 loc) · 9.71 KB
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
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>glyphdiff</title>
<!-- google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&family=Zen+Maru+Gothic:wght@300;400;500;700;900&display=swap"
rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" async></script>
<!-- bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<link rel="stylesheet" href="style.css" />
<body>
<div id="parallax">
<div id="writepad">
<svg id="comparepad">
<line id="baseline" x1="10%" y1="70%" x2="90%" y2="70%" class="strokeCC" />
<text id="sample2" x="50%" y="70%"></text>
<text id="sample1" x="50%" y="70%" class="strokeCC"></text>
<text id="label-font1" x="48%" y="95%" class="fillCC" text-anchor="end"></text>
<text id="label-font2" x="52%" y="95%" class="fillCC"></text>
<!-- <text x="98%" y="95%" text-anchor="end">glyphdiff.yuki.rocks</text> -->
</svg>
<input type="text" id="gd-input" value="いろは" />
</div>
<div class="main">
<div class="container">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#panel-fonts" type="button"
role="tab">Fonts</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#panel-tunings" type="button"
role="tab">Tunings</button>
</li>
</ul>
<div class="tab-content pt-3">
<div class="tab-pane active" id="panel-fonts" role="tabpanel">
<div class="row gy-3">
<div class="col-md-6">
<div class="row gy-3">
<div class="col-7">
<label class="form-label" for="gd-fontfamily1">Font family</label>
<input id="gd-fontfamily1" class="form-control" type="text" list="preset-fonts"
placeholder="Zen Kaku Gothic New" />
</div>
<div class="col-5">
<label class="form-label" for="gd-fontweight1">Weight</label>
<input id="gd-fontweight1" class="form-range" type="range" min="100" max="900" value="400"
step="100" />
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" id="gd-slant-normal1" name="slant1" type="radio" value="normal" />
<label class="form-check-label" for="gd-slant-normal1">Normal</label>
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" id="gd-slant-italic1" name="slant1" type="radio" value="italic" />
<label class="form-check-label" for="gd-slant-italic1">Italic</label>
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" id="gd-slant-oblique1" name="slant1" type="radio"
value="oblique" />
<label class="form-check-label" for="gd-slant-oblique1">Oblique</label>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="row gy-3">
<div class="col-7">
<label class="form-label" for="gd-fontfamily2">Font family</label>
<input id="gd-fontfamily2" class="form-control" type="text" list="preset-fonts"
placeholder="Zen Maru Gothic" />
</div>
<div class="col-5">
<label class="form-label" for="gd-fontweight2">Weight</label>
<input id="gd-fontweight2" class="form-range" type="range" min="100" max="900" value="400"
step="100" />
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" id="gd-slant-normal2" name="slant2" type="radio" value="normal" />
<label class="form-check-label" for="gd-slant-normal2">Normal</label>
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" id="gd-slant-italic2" name="slant2" type="radio" value="italic" />
<label class="form-check-label" for="gd-slant-italic2">Italic</label>
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input class="form-check-input" id="gd-slant-oblique2" name="slant2" type="radio"
value="oblique" />
<label class="form-check-label" for="gd-slant-oblique2">Oblique</label>
</div>
</div>
<div class="col-auto">
<button id="gd-swap" class="btn btn-outline-secondary btn-sm">
Swap
</button>
</div>
</div>
</div>
</div>
<datalist id="preset-fonts">
<option value="Arial" />
<option value="Avenir Next" />
<option value="Avenir" />
<option value="Courier New" />
<option value="Courier" />
<option value="Futura" />
<option value="Georgia" />
<option value="Gill Sans" />
<option value="Helvetica Neue" />
<option value="Helvetica" />
<option value="Impact" />
<option value="Optima" />
<option value="Palatino" />
<option value="Times New Roman" />
<option value="Verdana" />
</datalist>
</div>
<div class="tab-pane" id="panel-tunings" role="tabpanel">
<div class="row gy-3">
<div class="col-md-4">
<div class="row gy-3">
<div class="col-auto">
<div class="form-check">
<input type="checkbox" id="gd-baseline" class="form-check-input" />
<label class="form-check-label" for="gd-baseline">Baseline</label>
</div>
</div>
<div class="col-auto">
<div class="form-check">
<input type="checkbox" id="gd-darkmode" class="form-check-input" />
<label class="form-check-label" for="gd-darkmode">Dark mode</label>
</div>
</div>
</div>
<div class="row gy-3">
<div class="col-auto">
<input id="gd-color2" class="form-control form-control-color" type="color" />
</div>
</div>
</div>
<div class="col-md-4">
<div class="row gy-3">
<div class="col-12">
<label class="form-label" for="gd-size2">Size <span id="size2-tooltip"></span></label>
<input class="form-range" id="gd-size2" type="range" min="0.8" max="1.2" step="0.01" />
</div>
<div class="col-12">
<label class="form-label" for="gd-spacing2">Spacing <span id="spacing2-tooltip"></span></label>
<input class="form-range" id="gd-spacing2" type="range" min="-0.1" max="0.1" value="0"
step="0.01" />
</div>
</div>
</div>
<div class="col-md-4">
<div class="row gy-3">
<div class="col-12">
<label class="form-label" for="gd-translateX">Translate X <span
id="translateX-tooltip"></span></label>
<input class="form-range" id="gd-translateX" type="range" min="-30" max="30" value="0" />
</div>
<div class="col-12">
<label class="form-label" for="gd-translateY">Translate Y <span
id="translateY-tooltip"></span></label>
<input class="form-range" id="gd-translateY" type="range" min="-30" max="30" value="0" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="py-4">
<p class="text-center"><a href="https://github.com/chadluo/glyphdiff">glyphdiff</a></p>
</div>
</div>
</div>
</div>
<div class="flt"><button id="gd-share" class="btn btn-primary rounded-circle">Share</button></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI"
crossorigin="anonymous"></script>
<script src="scripts/app.js"></script>
</body>
</html>