-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
434 lines (349 loc) · 15.8 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
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<hr />
<h3>cModal</h3>
<div hidden>
<button data-modal="teste123" data-modal-class="teste123">MODAL TXT</button>
<div id="teste123" hidden>
<h1>Dolor sit.</h1>
<p>Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.</p>
<p>Placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante.</p>
<p>Fusce non varius purus aenean nec magna felis fusce vestibulum velit mollis odio sollicitudin lacinia aliquam posuere, sapien elementum lobortis tincidunt, turpis dui ornare nisl, sollicitudin interdum turpis nunc eget.</p>
<p><strong>Amet, consectetur adipiscing elit.</strong></p>
<p><small>Elit fusce vel sapien elit in malesuada.</small></p>
</div>
<a data-modal href="/test/2.jpg" title="Modal teste 123" data-modal-class="img123" data-modal-url="http://www.ceicom.com.br/">MODAL IMG LINK</a>
<button data-modal data-modal-img="/test/1.jpg" data-modal-lock="false">MODAL IMG BUTTON</button>
<!--<a data-modal href="/test/3.jpg" title="Auto Modal teste 123" data-modal-url="http://www.ceicom.com.br/" data-auto-modal></a>-->
</div>
<hr />
<h3>matchHeight</h3>
<div hidden>
<div class="mh1" style="width:25%; float:left; background-color:red;">Tincidunt integer eu augue augue nunc elit dolor.</div>
<div class="mh1" style="width:25%; float:left; background-color:blue;">Placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante.</div>
<div class="mh1" style="width:25%; float:left; background-color:yellow;">Fusce non varius purus aenean nec magna felis fusce vestibulum velit mollis odio sollicitudin lacinia aliquam posuere, sapien elementum lobortis tincidunt, turpis dui ornare nisl, sollicitudin interdum turpis nunc eget.</div>
<div class="mh1" style="width:25%; float:left; font-size:20px; background-color:green;">Sem nulla eu ultricies orci praesent id augue nec lorem pretium congue sit amet ac nunc fusce iaculis lorem eu diam hendrerit at mattis purus dignissim vivamus mauris tellus, fringilla. Ut fusce varius nisl ac ipsum gravida vel pretium tellus tincidunt integer eu augue augue nunc elit dolor, luctus placerat.</div>
<br clear="all" />
<br />
<div class="mh" style="width:25%; float:left; background-color:chartreuse; font-size:50px;">1</div>
<div class="mh" style="width:25%; float:left; background-color:cornflowerblue; font-size:25px;">2</div>
<div class="mh" style="width:25%; float:left; background-color:coral; font-size:30px;">3</div>
<div class="mh" style="width:25%; float:left; background-color:dimgray; font-size:75px;">4</div>
<br clear="all" />
<br />
<div data-mh style="width:25%; float:left; background-color:chartreuse; font-size:5px;">1</div>
<div data-mh style="width:25%; float:left; background-color:cornflowerblue; font-size:10px;">2</div>
<div data-mh style="width:25%; float:left; background-color:coral; font-size:15px;">3</div>
<div data-mh style="width:25%; float:left; background-color:dimgray; font-size:7px;">4</div>
</div>
<hr clear="all" />
<h3>cidadeEstado</h3>
<div hidden>
<select id="estado">
<option>carregando...</option>
</select>
<select id="cidade">
<option>carregando...</option>
</select>
<br />
<select id="estado1">
<option>carregando...</option>
</select>
<select id="cidade1" multiple>
<option>carregando...</option>
</select>
</div>
<hr />
<h3>zipcode</h3>
<div hidden>
<input type="text" value="85604000" data-zipcode="zip" data-zipcode-group="1" />
<input type="text" value="" data-zipcode="street" data-zipcode-group="1" />
<input type="text" value="" data-zipcode="district" data-zipcode-group="1" />
<!--<input type="text" value="" data-zipcode="state" data-zipcode-group="1" />
<input type="text" value="" data-zipcode="city" data-zipcode-group="1"/>-->
<br />
<select data-list="states" data-list-group="1" data-zipcode="state" data-zipcode-group="1">
<option>carregando...</option>
</select>
<select data-list="cities" data-list-group="1" data-zipcode="city" data-zipcode-group="1">
<option>carregando...</option>
</select>
</div>
<hr />
<h3>validaform</h3>
<div hidden>
<form data-validate="form" style="padding:0 20px;">
<div>
<label>
Required
<input type="text" value="obrigatorio" data-validate="required" />
</label>
</div>
<div>
<label>
Enter no textarea
<textarea data-validate="required"></textarea>
</label>
</div>
<div>
<label>
Full Name
<input type="text" value="obrigatorio obrigatorio" data-validate="fullname" />
</label>
</div>
<div hidden>
<label>
Full Name
<input type="text" value="" data-validate="fullname" />
</label>
</div>
<div>
<label>
Email
<input type="email" value="[email protected]" data-validate />
</label>
</div>
<div>
<label>
CPF
<input type="text" value="04296863908" data-validate="cpf" />
</label>
</div>
<div>
<label>
CNPJ
<input type="text" value="89171274000157" data-validate="cnpj" />
</label>
</div>
<div>
<label>
URL
<input type="url" value="http://www.gloonyc.com/food" data-validate data-validate-optional="true" />
</label>
</div>
<div>
<label>
Input File
<input type="file" value="" data-validate data-validate-size="10240" data-validate-ext="jpg,rar,zip" data-validate-optional="true" />
</label>
</div>
<div>
<label>
Compare
<input type="password" value="" data-validate="compare" data-validate-group="1" data-validate-optional="true" /><br />
<input type="password" value="" data-validate-group="1" /><br />
<input type="password" value="" data-validate-group="1" />
</label>
</div>
<div>
<label>
Checkbox
<br />
<input type="checkbox" name="testeCheck" value="" data-validate="checkbox" data-validate-optional="true" data-validate-qtd="2,2" data-validate-target="div" />Item<br />
<input type="checkbox" name="testeCheck" value="" />Item<br />
<input type="checkbox" name="testeCheck" value="" />Item<br />
<input type="checkbox" name="testeCheck" value="" />Item<br />
<input type="checkbox" name="testeCheck" value="" />Item
</label>
</div>
<div>
<label>Hidden Value</label><br />
<button id="putbalue" type="button">put value at hidden field</button><br />
<button id="removebalue" type="button">remove value at hidden field</button>
<input type="hidden" id="hiddenfield" data-validate="hidden" data-validate-txt="Clique no botão para colocar valor... ou tirar..." value="123" />
</div>
<div>
<label>Radio</label>
<input type="radio" value="1" name="teste123" data-validate />Item 1<br />
<input type="radio" value="2" name="teste123" />Item 2<br />
<input type="radio" value="3" name="teste123" />Item 3<br />
<input type="radio" value="4" name="teste123" />Item 4
</div>
<hr />
<input type="submit" value="OK" />
<button type="submit">OK</button>
</form>
<form data-validate="form" data-submitform="contato">
<div>
<input type="text" name="teste" value="" data-validate="required" />
<button type="submit" disabled>OK</button>
</div>
</form>
</div>
<hr />
<h3>mask</h3>
<div hidden>
<input type="text" data-mask="phone"/>
<input id="abc" type="text" data-mask="date" value="10102012" placeholder="00/00/0000" /><br />
<input type="text" data-mask="zip" value="85604000" placeholder="00000-000" /><br />
<input type="text" data-mask="money" placeholder="0.000,00" /><br />
<input class="cnpj" type="text" placeholder="00.000.000/0000-00" />
<input class="cpf" type="text" placeholder="000.000.000-00" />
<input type="text" class="ncnpj" />
</div>
<hr />
<h3>carrousel</h3>
<div hidden>
<ul class="carrousel owl-carousel">
<li><img src="/test/1.jpg" alt="" /></li>
<li><img src="/test/2.jpg" alt="" /></li>
<li><img src="/test/3.jpg" alt="" /></li>
</ul>
</div>
<hr />
<h3>lightgallery</h3>
<div hidden>
<div id="lightgallery">
<a href="/test/1.jpg">
<img src="/test/1.jpg" width="200" height="200" alt="" />
</a>
<a href="/test/2.jpg">
<img src="/test/2.jpg" width="200" height="200" alt="" />
</a>
<a href="/test/3.jpg">
<img src="/test/3.jpg" width="200" height="200" alt="" />
</a>
</div>
</div>
<hr />
<h3>popup</h3>
<div hidden>
<meta name="bannerAd" data-image="/test/1.jpg" data-link="www.ceicom.com.br" />
</div>
<hr />
<h3>dotdot</h3>
<div hidden>
<p style="max-height:20px;" class="dotelement">
Laoreet ac, aliquam sit amet justo nunc tempor, metus vel placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante fusce non varius purus aenean nec magna felis fusce vestibulum.<br />
Laoreet ac, aliquam sit amet justo nunc tempor, metus vel placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante fusce non varius purus aenean nec magna felis fusce vestibulum.<br />
Laoreet ac, aliquam sit amet justo nunc tempor, metus vel placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante fusce non varius purus aenean nec magna felis fusce vestibulum.<br />
Laoreet ac, aliquam sit amet justo nunc tempor, metus vel placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante fusce non varius purus aenean nec magna felis fusce vestibulum.<br />
Laoreet ac, aliquam sit amet justo nunc tempor, metus vel placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante fusce non varius purus aenean nec magna felis fusce vestibulum.
</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$('h3').on('click', function () {
$(this).next().toggle();
});
$('#putbalue').on('click', function () {
$('#hiddenfield').val('blz agora tem valor');
});
$('#removebalue').on('click', function () {
$('#hiddenfield').val('');
});
</script>
<!--<script src="//src.inf.br/cfw/cfw.min.js"></script>-->
<script src="/prod/cfw/cfw.min.js"></script>
<script>
cfw.cmodal.init();
/**/
cfw.matchheight.init({ element: '.mh1' });
cfw.matchheight.init({ element: '.mh' });
/**/
cfw.citystate.init({
filterStates: ['!SC', '!Rs'],
selectState: '#estado',
selectCity: '#cidade'
});
cfw.citystate.init({
filterStates: ['SC'],
selectState: '#estado1',
selectCity: '#cidade1',
initState: 'Santa CaTaRiNa',
initCity: 'Anitápolis,Abelardo Luz'
});
/**/
cfw.zipcode.init();
/**/
cfw.validateform.init({
//tooltip: false,
//styles: true
});
/**/
cfw.mask.init({
element: $('.ncnpj')
});
cfw.mask.init({
element: $('.cnpj'),
mask: '00.000.000/0000-00',
options:{
reverse: true
}
});
cfw.mask.init({
element: $('.cpf'),
mask: '000.000.000-00',
options: {
reverse: true,
selectOnFocus: true,
onComplete: function (cpf) {
alert('CPF Completed!:' + cpf);
},
onChange: function (cpf) {
console.log('CPF changed! ', cpf);
},
onInvalid: function (val, e, f, invalid, options) {
var error = invalid[0];
console.log("Digit: ", error.v, " is invalid for the position: ", error.p, ". We expect something like: ", error.e);
}
}
});
/**/
cfw.form.init({
citystate: {
filterStates: ['!SC', '!Rs'],
selectState: '#estado',
selectCity: '#cidade'
},
zipcode: true,
validateform: true,
mask: false,
validateformdata: true,
submitform: true
});
/**/
cfw.funcs.init();
/**/
cfw.validateformdata.init();
/**/
cfw.sweetalert.init(
//{
// title: "asdasdasdasdasd!",
// text: "Here's my error message!",
// type: "error",
// confirmButtonText: "Cool"
//}
);
/**/
//cfw.submitform.init();
cfw.analytics.init('UA-xxx-xx');
cfw.owlcarousel.init({
element: '.carrousel',
loop: true
});
//cfw.lightgallery.init({
// element: '#lightgallery',
// share: true
//});
cfw.lightgallery.init({
element: '#lightgallery',
share: true,
zoom: true,
autoplay: true
});
cfw.dotdotdot.init({
element: '.dotelement'
})
</script>
</body>
</html>
<!--cfw.form.init();
cfw.form.valida.init();
cfw.form.ajax.init();
cfw.form.placeholderfix.init();-->