3
| <![CDATA[<script type="text/javascript">if(window.PrimeFaces){PrimeFaces.settings.locale='pt_BR';}</script>]]>
|
139
| <![CDATA[<script type="text/javascript">new RichFaces.ui.Status("j_idt10",{"onstart":function(event){if (document.getElementById('frmPrincipal:ativaA4JStatus').value==1) {RichFaces.component('statPane').show();}},"onstop":function(event){RichFaces.component('statPane').hide()}} )</script>]]>
|
143
| <![CDATA[<script type="text/javascript">if(window.PrimeFaces){PrimeFaces.settings.locale='pt_BR';}</script>]]>
|
170
| <![CDATA[<script type="text/javascript">new RichFaces.ui.Autocomplete("frmPrincipal:j_idt18:j_idt20",
"frmPrincipal:j_idt18:j_idt20Input", {"buttonId":"frmPrincipal:j_idt18:j_idt20Button","onchange":function(event){RichFaces.ajax(this,event,{"sourceId":this,"parameters":{"javax.faces.behavior.event":"change","org.richfaces.ajax.component":"frmPrincipal:j_idt18:j_idt20"} } )},"onselectitem":function(event){this.blur();},"minChars":3,"isCachedAjax":false}
);</script>]]>
|
250
| <![CDATA[<script>
$(".ufUnidade").multipleSelect({
width: '250',
filter: true,
single: false,
position: 'bottom',
selectAll: true,
multipleWidth:'200',
noMatchesFound: '',
selectAllText: 'Todos',
maxHeight: '100',
allSelected: 'Todos',
placeholder: 'Selecione'
});
</script>]]>
|
284
| <![CDATA[<script type="text/javascript">
$(function () {
$('#datetimepicker7').datetimepicker({
format: 'DD/MM/YYYY'
});
$('#datetimepicker8').datetimepicker({
useCurrent: false,
format: 'DD/MM/YYYY'
});
$("#datetimepicker7").on("change.datetimepicker", function (e) {
$('#datetimepicker8').datetimepicker('minDate', e.date);
});
$("#datetimepicker8").on("change.datetimepicker", function (e) {
$('#datetimepicker7').datetimepicker('maxDate', e.date);
});
});
</script>]]>
|
305
| <![CDATA[<script type="text/javascript">new RichFaces.ui.PopupPanel("statPane",{"autosized":true} );</script>]]>
|
388
| <![CDATA[<script>
$(document).ready( function () {
$('#table_id').DataTable({
responsive: true,
language: {
emptyTable: "Nenhum registro encontrado",
info: "Mostrando de _START_ até _END_ de _TOTAL_ registros",
infoEmpty: "Mostrando 0 até 0 de 0 registros",
infoFiltered: "(Filtrados de _MAX_ registros)",
infoPostFix: "",
infoThousands: ".",
lengthMenu: "_MENU_ resultados por página",
loadingRecords: "Carregando...",
processing: "Processando...",
zeroRecords: "Nenhum registro encontrado",
search: "Pesquisar",
paginate: {
next: "Próximo",
previous: "Anterior",
first: "Primeiro",
last: "Último"
},
aria: {
sortAscending: ": Ordenar colunas de forma ascendente",
sortDescending: ": Ordenar colunas de forma descendente"
}
}
});
} );
</script>]]>
|
418
| <![CDATA[<script>
$('.anchor-link').click(function(e){
e.preventDefault();
var target = $($(this).attr('href'));
if(target.length){
var scrollTo = target.offset().top;
$('body, html').animate({scrollTop: scrollTo+'px'}, 800);
}
});
</script>]]>
|
428
| <![CDATA[<script type="text/javascript">
function initTrataMsg(objTrataMsg, msgEscapeBean, tipo) {
//<![CDATA[
if (objTrataMsg !== null && objTrataMsg !== undefined){
if (msgEscapeBean !== null && msgEscapeBean !== undefined && msgEscapeBean != ""){
var split;
if( (String(msgEscapeBean)).indexOf("<br/>") == -1){
split = [msgEscapeBean,''];
}else{
split = (String(msgEscapeBean)).split("<br/>");
}
slen = split.length;
var i;
for (i=0;i<slen-1;i++) {
var div = document.createElement("DIV");
div.className = "p-2 alert alert-dismissible fade show mt-2 d-flex justify-content-between align-items-center";
if(tipo==='error'){
div.classList.add("alert-danger");
}else{
div.classList.add("alert-"+tipo);
}
var iconeTexto = document.createElement("div");
var icone = document.createElement("i");
icone.className = "fas fa-exclamation-circle mr-2";
iconeTexto.appendChild(icone);
var st = document.createElement("strong");
st.innerHTML = split[i];
iconeTexto.appendChild(st);
div.appendChild(iconeTexto);
var btn = document.createElement("BUTTON");
btn.className = "btn btn-link btn-sm";
var x = document.createElement("i");
x.className = "fas fa-times";
if(tipo==='error'){
x.classList.add("alert-danger");
}else{
x.classList.add("alert-"+tipo);
}
btn.appendChild(x);
btn.setAttribute("type", "button");
btn.addEventListener("click", function(){this.parentNode.remove(); });
div.appendChild(btn);
objTrataMsg.appendChild(div);
}
}
}
//]]>
}
</script>]]>
|