41
| <![CDATA[<script>
var tam = 15;
function mudaFonte(tipo, elemento) {
if (tipo == "mais") {
if (tam < 24)
tam += 1;
} else {
if (tam > 10)
tam -= 1;
}
document.getElementById("Noticia").style.fontSize = tam + "px";
document.getElementById("Descricao").style.fontSize = tam + "px";
}
function printDiv(id, pg, url) {
var oPrint, oJan;
oPrint = window.document.getElementById(id).innerHTML;
oJan = window.open(pg);
oJan.document.write(oPrint);
oJan.document.write(url);
oJan.window.print();
oJan.document.close();
oJan.focus();
}
// Função contraste INICIO
(function() {
var Contrast = {
storage: 'contrastState',
cssClass: 'contrast',
currentState: null,
check: checkContrast,
getState: getContrastState,
setState: setContrastState,
toogle: toogleContrast,
updateView: updateViewContrast
};
window.toggleContrast = function() {
Contrast.toogle();
};
Contrast.check();
function checkContrast() {
this.updateView();
}
function getContrastState() {
return localStorage.getItem(this.storage) === 'true';
}
function setContrastState(state) {
localStorage.setItem(this.storage, '' + state);
this.currentState = state;
this.updateView();
}
function updateViewContrast() {
var body = document.body;
if (this.currentState === null)
this.currentState = this.getState();
if (this.currentState)
body.classList.add(this.cssClass);
else
body.classList.remove(this.cssClass);
}
function toogleContrast() {
this.setState(!this.currentState);
}
})();
// Função contraste FIM
</script>]]>
|
152
| <![CDATA[<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'pt',
autoDisplay: false,
includedLanguages: 'de,es,fr,en,it',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
},
'google_translate_element');
}
</script>]]>
|
362
| <![CDATA[<script>
$(document).ready(function() {
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$("#top-bar").fadeOut();
$("#logo-top-bar").fadeOut();
$('#scroll').fadeIn();
} else {
$("#top-bar").fadeIn();
$("#logo-top-bar").fadeIn();
$('#scroll').fadeOut();
}
});
$('#scroll').click(function() {
$("html, body").animate({
scrollTop: 0
}, 0);
return false;
});
$('#menu-acessiblidade').hide().contents().hide();
$('#btnperq').on('click', function(e) {
e.preventDefault();
$('#menu-acessiblidade').slideToggle('fast', function(e) {
if ($(this).is(':visible')) {
$(this).contents().fadeIn(1000);
} else {
$(this).contents().hide();
}
});
})
});
</script>]]>
|
504
| <![CDATA[<script>
shortcut.add("Alt+H", function() {
window.location.assign("index.php");
});
shortcut.add("Alt+Shift+1", function() {
window.location.assign("acessibilidade.php");
});
shortcut.add("Alt+9", function() {
window.scrollTo(0, 0);
});
shortcut.add("Alt+C", function() {
window.location.href = '#ancora';
});
</script>]]>
|
838
| <![CDATA[<script>
var cookies2 = document.cookie;
if (cookies2.indexOf("usuarioCookiesPm") == -1) {
document.getElementById('cookie-container').style.display = "flex";
}
function fechaDiv(){
document.cookie = 'usuarioCookiesPm=SIM; max-age=86400;path=/';
$.post("data_cookies.php", { usercookies : "YES" }, function(msg){ })
document.getElementById('cookie-container').style.display = "none";
}
</script>]]>
|
860
| <![CDATA[<script>
// $(document).ready(function () {
//$(document).on('submit', '#formpesquisar', pesquisaCredor;
function pesquisaCredor(val) {
var npagina = $("#pagina").val();
if (val === 0) {
$('#lista').empty(); //Limpando a tabela
npagina = 0;
$("#pesquisarmais").hide();
//$("#registros").empty();
}
var tr_str;
var datad;
var link;
$.ajax({
type: 'post', //Definimos o método HTTP usado
dataType: 'json', //Definimos o tipo de retorno
url: 'data_pesquisa.php', //Definindo o arquivo onde serão buscados os dados
data: {
busca: $("#busca").val(),
pagina: npagina
},
beforeSend: function() {
$('#loading').show();
},
complete: function() {
$('#loading').hide();
},
success: function(data) {
//console.log(data);
$("#registros").html("<h4 style='text-align: center;'> " + data.mensagem + " </h4>");
if (data.total_registros > 0) {
var len = data.data.length;
for (var i = 0; i < len; i++) {
if (data.data[i].datadesc === null) {
datad = '';
} else {
datad = "<i class='fa fa-calendar'></i> " + data.data[i].datadesc;
}
if (data.data[i].variavel == null) {
link = data.data[i].pagina;
linkVisivel = "<i style='padding-left: 10px;' class='fa fa-globe'></i> " + link;
} else {
link = data.data[i].pagina + "?" + data.data[i].variavel + "=" + data.data[i].id;
linkVisivel = "<i style='padding-left: 10px;' class='fa fa-globe'></i> " + data.data[i].pagina + "?" + data.data[i].variavel + "=" + data.data[i].id;
}
tr_str = "<div class='list-group' style='border-left:1px solid " + data.data[i].categoriacor + ";'>" +
"<a href='" + link + "' class='list-group-item'>" +
"<h4 class='list-group-item-heading'><div class='row'><div class='col-md-9'>" + data.data[i].titulo + "</div></div></h4>" +
"<div class='row'><div class='col-md-12' style='line-height: 1.500;'><i>" + data.data[i].detalhamento + "</i></div></div>" +
"<div class='row'><div class='col-md-9'><i>" + datad + "</i> " + linkVisivel + " </div><h4 class='list-group-item-heading' style='margin-top: 3px;'><div class='col-md-3' style='text-align: right;'><span class='label label-default' style='background-color:" + data.data[i].categoriacor + ";'>" + data.data[i].categoria + "</span></div></h4></div>" +
"</a>" +
"</div>";
/*
tr_str = "<div class='col-md-12' style=' margin-left: 20px;'>"
+ "<strong><span>"
+ datad
+ "</strong></span>"
+ "</div>"
+ "<div class='col-md-12 DataInforma'>"
+ "<a class='LinkInforma' style='font-size: 14px;' target='_blank' href='" + link + "' >" + data.data[i].descricao + "</a>"
+ "</div>"
+ "<div class='LinhaInforma'></div>";*/
$("#lista").append(tr_str);
}
var valor = parseInt(data.pagina) + 1;
$("#pagina").val(valor);
if (data.total_pages > valor) {
$("#pesquisarmais").show();
} else {
$("#pesquisarmais").hide();
}
}
}
});
};
// });
</script>]]>
|