-
Notifications
You must be signed in to change notification settings - Fork 0
/
formulario_template.php
82 lines (49 loc) · 1.63 KB
/
formulario_template.php
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
<?php
/*
Template Name: Contact Form
*/
?>
<?php get_header(); ?>
<section class="container formulario-template">
<div class="text-contato text-center">
<h2><?php the_title(); ?></h2>
</div>
<div class="row">
<?php
if (have_posts( )):
while(have_posts()):the_post();
?>
<div class="col-sm-12 col-md-12 col-lg-12 my-5">
<div class="card border-0">
<div class="card-body text-justifyr formulario">
<?php the_content( ); ?>
</div>
</div>
</div>
<?php endwhile; else: ?>
<p>There is nothing yet to be displayed...</p>
<?php endif; ?>
</div>
</section>
</div> <!--Fim da div wraper-->
<?php get_footer(); ?>
<script language=javascript type="text/javascript">
$(document).ready(function(){
$(".data").mask("99/99/9999" );
$(".maskcelular").mask("(99) 99999-9999" );
$(".maskcpf").mask("999.999.999.99" );
$(".maskcnpj").mask("99.999.999/9999-99" );
$('.dinheiro').mask('#.##0,00', {reverse: true});
$('.cep').mask("99999-999");
});
</script>
<script language=javascript type="text/javascript">
var options = {
onKeyPress: function (cpf, ev, el, op) {
var masks = ['000.000.000-000', '00.000.000/0000-00'],
mask = (cpf.length > 14) ? masks[1] : masks[0];
el.mask(mask, op);
}
}
$('.cpfOuCnpj').mask('000.000.000-000', options);
</script>