-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (76 loc) · 3 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
<!DOCTYPE html>
<html id="kld" lang="en">
<head>
<title>Web2JPG</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body class='app'>
<div id="overlay">
<div id="overlay-content">
<div id="overlay-text"></div>
<button type="button" class="btn" id="overlayBtn" onclick="overlayClose()">Close</button>
</div>
</div>
<section class="flex-container space-around">
<form id="input-form" method="post">
<!-- INPUT -->
<div class="form-group">
<label for="sourcePath">Source Path</label>
<input type="text" class="form-control" id="sourcePath" name="sourcePath" required>
</div>
<!-- OUTPUT -->
<div class="form-group">
<label for="outputPath">Output Path</label>
<input type="text" class="form-control" id="outputPath" name="outputPath" required>
</div>
<!-- WIDTH -->
<div class="form-group">
<label for="pageWidth">Width (px)</label>
<input type="number" class="form-control" id="pageWidth" name="pageWidth" value="1920" min="1"
max="99999" required>
</div>
<!-- HEIGHT -->
<div class="form-group">
<label for="pageHeight">Height (px)</label>
<input type="number" class="form-control" id="pageHeight" name="pageHeight" value="1080" min="1"
max="99999" required>
</div>
<!-- FONT SIZE -->
<div class="form-group">
<label for="fontSize">Font/Img Multiplier</label>
<input type="number" class="form-control" id="fontSize" name="fontSize" value="0" min="0" max="99"
step="0.1" required>
[0 = off]
</div>
<!-- BW/COLOR -->
<div class="form-group">
<label for="color" class="switch">
<input type="checkbox" class="switch-input color-switch" id="color" name="color">
<span class="switch-label" data-on="COLOR" data-off="BW"></span>
<span class="switch-handle"></span>
</label>
</div>
<!-- RUN -->
<div class="form-group last">
<button type="button" class="btn btn-primary" id="run">Run</button>
</div>
</form>
<div id="output-info">
<div id="output-text"></div>
<div id="progress">
<div id="progress-bar"></div>
</div>
</div>
</section>
</body>
<script>
require('./js/io');
function overlayClose() {
document.getElementById("overlay").style.display = "none";
document.getElementById("overlay-text").innerHTML = '';
}
</script>
</html>