-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
179 lines (165 loc) · 7.57 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
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
<title>ETIQUETA</title>
<link rel="stylesheet" type="text/css" href="etiqueta.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script type="text/javascript" src="dragndrop.js"></script>
</head>
<body>
<div class="folha" id="folha"></div>
<div class="caixa-config" style="text-align:center; " id="div_config">
<h3>CONFIGURAÇÕES</h3>
<br>
<div style="overflow-y: auto; height: calc(100% - 140px); padding-right: 10px">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<button style="background-color: #B93939; color: #fff; border: 1px solid #B93939; margin: 1px;border-radius: 40px;padding: 1px 10px;cursor: pointer;font-weight: bold; font-size: 12px" onclick="adicionarCorFundo()" title="Na tela de preview de impressão, a folha deve ser ocupada pelo fundo vermelho. Lembre-se de deixar sem margens!">Ativar / Desativar Cor de Fundo para ajuste de escala</button>
</div>
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Modelo de Etiqueta</label>
<select class="form-control" id="select_modelo" onchange="trocarModelo()">
</select>
</div>
<hr style="margin: 10px 0px 20px 0px">
<table style="width: 100%">
<tr>
<td></td>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Top - Superior</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="pTop_folha">
</div>
</td>
<td></td>
</tr>
<tr>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Left - Esquerda</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="pLeft_folha">
</div>
</td>
<td style="text-align: center; padding: auto">
<div style="width: 2cm; height: 3cm; border: 1px solid black;background-color: white;margin: auto; vertical-align: middle;"><br><b>FOLHA</b></div>
</td>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Right - Direita</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="pRight_folha" disabled>
</div>
</td>
</tr>
<tr>
<td></td>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Bottom - Inferior</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="pBottom_folha" disabled>
</div>
</td>
<td></td>
</tr>
<tr>
<td style="text-align: left">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Altura</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="h_folha" >
</div>
</td>
<td style="text-align: left">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Largura</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="w_folha">
</div>
</td>
<td></td>
</tr>
</table>
<hr style="margin: 10px 0px 20px 0px">
<table style="width: 100%">
<tr>
<td></td>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Top - Superior</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="mTop_etiqueta">
</div>
</td>
<td></td>
</tr>
<tr>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Left - Esquerda</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="mLeft_etiqueta">
</div>
</td>
<td style="text-align: center; padding: auto">
<div style="width: 3cm; height: 0.5cm; border: 1px solid black;background-color: white;margin: 5px auto; vertical-align: middle; ">
<b>ETIQUETA</b>
</div>
<div style="width: 3cm; height: 0.5cm; border: 1px solid black;background-color: white;margin: 5px auto; vertical-align: middle; ">
<b>ETIQUETA</b>
</div>
<div style="width: 3cm; height: 0.5cm; border: 1px solid black;background-color: white;margin: 5px auto; vertical-align: middle; ">
<b>ETIQUETA</b>
</div>
</td>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Right - Direita</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="mRight_etiqueta" disabled>
</div>
</td>
</tr>
<tr>
<td></td>
<td style="text-align: center">
<div class="form-group col-xs-12 col-md-12" style="text-align: center;">
<label style="font-size: 11px">Margin Bottom - Inferior</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="mBottom_etiqueta" disabled>
</div>
</td>
<td></td>
</tr>
<tr>
<td style="text-align: left">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Altura</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="h_etiqueta">
</div>
</td>
<td style="text-align: left">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Largura</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="w_etiqueta">
</div>
</td>
<td></td>
</tr>
<tr>
<td style="text-align: left">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Colunas</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="qtd_coluna" >
</div>
</td>
<td style="text-align: left">
<div class="form-group col-xs-12 col-md-12" style="text-align: left;">
<label style="font-size: 11px">Linhas</label>
<input class="form-control" type="text" style="" autocomplete="off" value="" id="qtd_linha" >
</div>
</td>
<td></td>
</tr>
</table>
</div>
<br>
<center>
<button style="background-color: #404A61; color: #fff; border: 1px solid #404A61; margin: 1px;border-radius: 40px;padding: 10px 10px;cursor: pointer;font-weight: bold; font-size: 14px" onclick="atualizarValoresEtiqueta()">APLICAR ALTERAÇÕES</button>
</center>
</div>
<script type="text/javascript" src="etiqueta.js"></script>
</body>
</html>