33
| <![CDATA[<script type="text/javascript">
function MM_jumpMenu(targ, selObj, restore) { //v3.0
eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
if (restore)
selObj.selectedIndex = 0;
}
</script>]]>
|
88
| <![CDATA[<script>
shortcut.add("Alt+H", function() {
window.open("index.php");
});
shortcut.add("Alt+Shift+1", function() {
window.open("acessibilidade.php");
});
shortcut.add("Alt+9", function() {
window.scrollTo(0, 0);
});
shortcut.add("Alt+C", function() {
window.location.href = '#ancora';
});
</script>]]>
|
106
| <![CDATA[<script type="text/javascript">
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>]]>
|
319
| <![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
}, 600);
return false;
});
$("#search-box").keyup(function() {
$.ajax({
type: "POST",
url: "consulta.php",
data: 'keyword=' + $(this).val(),
beforeSend: function() {
$(".fa-spinner").show();
},
success: function(data) {
$("#suggesstion-box").show();
$("#suggesstion-box").html(data);
$(".fa-spinner").hide();
}
});
});
$('#search-box').hide().contents().hide();
$('#btnperq').on('click', function(e) {
e.preventDefault();
$('#search-box').slideToggle('fast', function(e) {
if ($(this).is(':visible')) {
$(this).contents().fadeIn(2000);
} else {
$(this).contents().hide();
}
});
})
$('.gmaps').click(function() {
$('.gmaps iframe').css("pointer-events", "auto");
});
});
</script>]]>
|
989
| <![CDATA[<script>
var cookies2 = document.cookie;
if (cookies2.indexOf("usuarioCookiesCm") == -1) {
document.getElementById('cookie-container').style.display = "flex";
}
function fechaDiv(){
document.cookie = 'usuarioCookiesCm=SIM; max-age=86400;path=/';
$.post("data_cookies.php", { usercookies : "YES" }, function(msg){ })
document.getElementById('cookie-container').style.display = "none";
}
</script>]]>
|
1012
| <![CDATA[<script>
(function($) {
/* Custom buttons */
$('#font-setting').easyView({
container: 'body, center, strong, .section, .container, .row, .col-md-6, .col-md-9, .col-md-12, #footer, #bottom',
step: 10,
bootstrap: true,
increaseSelector: '.increase-me',
decreaseSelector: '.decrease-me',
normalSelector: '.reset-me',
contrastSelector: '.change-me'
});
})(jQuery);
</script>]]>
|
1033
| <![CDATA[<script type="text/javascript">
function fecha() {
$('#myModal').hide();
}
$(document).ready(function() {
var modal = document.getElementById('myModal');
modal.addEventListener('click', function(e) {
if (e.target == this)
fecha();
});
});
/*
$(document).ready(function () {
var jaFoiVistoNasUltimas24Horas = getCookie('myModal');
if (jaFoiVistoNasUltimas24Horas == null) {
//Código para MOSTRAR o pop up
mostrarOuNaoPopUp('mostrarSim');
} else {
//Código para NÃO MOSTRAR pop up
mostrarOuNaoPopUp('mostrarNao');
}
function mostrarOuNaoPopUp(condicao) {
if (condicao == 'mostrarSim') {
$("#myModal").css({display: '-webkit-box'});
definirNovaDataExpiracao();
} else if (condicao == 'mostrarNao') {
$('#myModal').css({display: 'none'});
}
}
function definirNovaDataExpiracao() {
var data = new Date();
var numeroDeDiasParaExpiracao = 10;//1 dia
data.setTime(data.getTime() + (numeroDeDiasParaExpiracao * 60 * 1000));
var expires = "expires=" + data.toUTCString();
var cookie = 'myModal="Ainda não espirou";' + expires;
document.cookie = cookie;
}
function getCookie(nomeCookie) {
var ca = document.cookie.split(';');
var name = nomeCookie + '=';
for (var i = 0; i < ca.length; i++) {
var c = ca[i].trim();
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return null;
}
});
*/
</script>]]>
|