-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
54 lines (45 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.4">
<title>Font Compare v1.4</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body ondragover="dragOverHandler(event)" ondragleave="dragLeaveHandler(event)" ondrop="loadFonts(event, 'drop')">
<img src="logo.png" alt="Logo" class="logo" id="logo">
<div class="file-input-wrapper">
<button class="custom-file-button" id="fontButton">Choose Fonts</button>
<input type="file" class="file-input" accept=".ttf, .otf" multiple onchange="loadFonts(event, 'picker')" />
</div>
<div id="fontParams">
<input type="text" class="text-input" placeholder="Type text here..." oninput="updateText(this.value)" />
<input type="range" id="fontSize" class="range-slider" min="1" max="200" step="1" value="50" autocomplete="off"
oninput="updateSize(this.value, currentSizeUnit, 'click')"
onwheel="changeRangeWithMouseWheel(event, this.value, this.id)">
<label for="fontSize">50</label>
<select type="select" id="fontSizeUnit" class="dropdown" autocomplete="off"
oninput="updateSize(currentSize, this.value)">
<option value="cm">cm</option>
<option value="in">in</option>
<option value="mm">mm</option>
<option value="pc">pc</option>
<option value="pt">pt</option>
<option value="px" selected>px</option>
</select>
</div>
<div id="fontSamples">
</div>
<div id="colorPickers">
<div>
<label for="backgroundColorPicker" class="lineUp">Background color</label>
<input type="color" id="backgroundColorPicker" class="color-pickers" value="#cccccc" autocomplete="off"/>
</div>
<div>
<label for="fontColorPicker">Font color</label>
<input type="color" id="fontColorPicker" class="color-pickers" value="#000000" autocomplete="off"/>
</div>
</div>
<script src="js/script.js"></script>
</body>
</html>