428
| <![CDATA[<script type="text/javascript">
function mascaraProcesso(processo)
{
let textoAtual = processo.value;
let textoAjustado = textoAtual.replaceAll(".", "");
//console.log(textoAtual);
let splits = textoAjustado.split(/(^\d{5})(\d{2})(\d{2})(\d{4})(\d{4})|(^\d{5})(\d{2})(\d{2})(\d{3})(\d{1,4})|(^\d{5})(\d{2})(\d{2})(\d{1,4})|(^\d{5})(\d{2})(\d{1,2})|(^\d{5})(\d{1,2})|(^\d{1,5})/);
//console.log(splits);
var result = "";
for(var i = 0; i< splits.length; i++)
{
if ((typeof splits[i] !== 'undefined') && (splits[i] != ""))
{
result = result + splits[i] + '.';
//console.log(splits[i]);
}
//console.log(i);
}
//remove o ponto do final
result = result.slice(0,result.length-1);
//console.log(result);
processo.value = result;
}
//$("#processo").mask("99999.99.99.999.9999");
var tpj = jQuery;
tpj(document).ready(function () {
if (tpj.fn.cssOriginal != undefined)
tpj.fn.css = tpj.fn.cssOriginal;
tpj('.fullwidthbanner').revolution(
{
delay: 11000,
startwidth: 890,
startheight: 450,
onHoverStop: "off",
thumbWidth: 100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight: 50,
thumbAmount: 4,
hideThumbs: 0,
navigationType: "bullet", //bullet, thumb, none, both (No Shadow in Fullwidth Version !)
navigationArrows: "none", //nexttobullets, verticalcentered, none
navigationStyle: "round", //round,square,navbar
touchenabled: "off",
navOffsetHorizontal: 0,
navOffsetVertical: 20,
fullWidth: "off",
shadow: 0
});
});
</script>]]>
|