119
| <![CDATA[<script language="JavaScript">
var cpfMascara = function(val) {
return val.replace(/\D/g, '').length > 11 ? '00.000.000/0000-00'
: '000.000.000-009';
}, cpfOptions = {
onKeyPress : function(val, e, field, options) {
field.mask(cpfMascara.apply({}, arguments), options);
}
};
$('.mascara-cpfcnpj').mask(cpfMascara, cpfOptions);
function removerMascara() {
$("#nrDocumento").unmask();
}
$(document)
.ready(
function() {
$("button")
.click(
function() {
$("#bloqueioPagina").show();
var pb = document
.getElementById("carregando");
pb.innerHTML = '<img src="/GAE/estatico/imagens/loader.gif" />';
pb.style.display = '';
});
});
$(window).load(function() {
$("#bloqueioPagina").hide();
});
</script>]]>
|
226
| <![CDATA[<script lang="JavaScript">
document.getElementById("curYear").innerHTML = new Date().getFullYear();
</script>]]>
|
254
| <![CDATA[<script type="text/javascript">
$(document).ready(function () {
$("#selOrgao").on("change", function () {
const idLotacao = $(this).val();
alterarLotacao(idLotacao);
});
});
function alterarLotacao(idLotacao) {
$.ajax({
url: '/GAE/util/lotacao.do?method=alterarLotacao',
type: 'post',
data: { 'idLotacao' : idLotacao },
dataType: 'json',
timeout: 60000,
beforeSend: function() {
HoldOn.open({ theme:"sk-circle", message:'Aguarde...' });
},
success: function (resposta) {
HoldOn.close();
if (resposta.status === "sucesso") {
location.reload();
} else {
window.location="/GAE/mnt/index.do"
}
},
error: function (resposta) {
HoldOn.close();
window.location="/GAE/mnt/index.do";
}
});
}
</script>]]>
|