495
| <![CDATA[<script>
$(document).ready(function() {
// validation
$("#form").validationEngine('attach', {
onValidationComplete: function(form, status) {
if (status) {
$('body').append('<div id="body_mask">Aguarde...enviando dados...<br><i class="fa fa-refresh fa-spin"></i></div>');
form.validationEngine('detach');
form.submit();
} else {
$('#body_mask').remove();
}
},
autoHidePrompt: true,
promptPosition: "topLeft"
});
var SPMaskBehavior = function(val) {
return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009';
},
spOptions = {
onKeyPress: function(val, e, field, options) {
field.mask(SPMaskBehavior.apply({}, arguments), options);
}
};
$('.tel').mask(SPMaskBehavior, spOptions);
var SPMaskBehaviorCPF = function(val) {
return val.replace(/\D/g, '').length <= 11 ? '000.000.000-00999' : '00.000.000/0000-00';
},
spOptionsCPF = {
onKeyPress: function(val, e, field, options) {
field.mask(SPMaskBehaviorCPF.apply({}, arguments), options);
}
};
$('.cpf').mask(SPMaskBehaviorCPF, spOptionsCPF);
});
</script>]]>
|
536
| <![CDATA[<script type="text/javascript">
// bootstrap-datepicker ---------------------
if ($('.bootstrap_datepicker').length) {
$('.bootstrap_datepicker').datepicker({
format: 'dd/mm/yyyy'
});
}
$('#imprimir').click(function() {
window.print();
});
</script>]]>
|
556
| <![CDATA[<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-78100420-1', 'auto');
ga('send', 'pageview');
</script>]]>
|