-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (49 loc) · 1.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>tPosterMaker</title>
<script src="screen.dpi.detector.js"></script>
<script src="dom-to-image.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="index.js" defer></script>
<link rel="stylesheet" href="index.css" />
</head>
<body>
<main>
<div class="panel">
<div class="file-config">
<h3>Configuracion de imagen:</h3>
<input type="file" id="file" onchange="fnShowImgOnCanvas(this);" />
</div>
<div class="sheet-config">
<h3>Configuracion de hoja:</h3>
<label>Ancho (cm):
<input type="number" id="sheet-width" value="21.59" onchange="fnUpdateInputValues();"/>
</label>
<label>Alto (cm):
<input type="number" id="sheet-height" value="27.94" onchange="fnUpdateInputValues();"/>
</label>
<label>Margen (cm):
<input type="number" id="sheet-margin" value="1.27" onchange="fnUpdateInputValues();"/>
</label>
</div>
<div class="result-config">
<h3>Configuracion de resultado:</h3>
<label>Ancho (cm):
<input type="number" id="result-width" value="10" onchange="fnUpdateInputValues();"/>
</label>
<label>Alto (cm):
<input type="number" id="result-height" value="0.5" onchange="fnUpdateInputValues();"/>
</label>
</div>
<button id="btn-download" onclick="fnDownloadPX();">Descargar</button>
</div>
<div class="preview" title="Vista previa">
<canvas id="cnv"></canvas>
</div>
<div class="results" id="results"></div>
</main>
</body>
</html>