42
| <![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>]]>
|
370
| <![CDATA[<script>
$(document).ready(function() {
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$("#logo-top-bar").css({
"margin-top": "-25.5Vh",
"transition": ".4s",
"z-index": "-2"
});
$("#logo-top-bar").fadeOut("800");
$('#scroll').fadeIn();
} else {
$("#logo-top-bar").fadeIn("800");
$("#logo-top-bar").css({
"margin-top": "0px"
});
$('#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>]]>
|
525
| <![CDATA[<script type="text/javascript">
let map;
let styles = [];
function initMap() {
const locations = [
["<strong>Escola Municipal de Ensino Infantil e Fundamental Ezequiel Vicente da Costa</strong><br />Av. Maria Acácio de Matos, N.s/n - São Pedro<br />De Segunda a Sexta - das 7h00 às 11h00 e 13h00 ás 17h00",
-3.4124453, -39.0303961, 1 ]
];
let longitude = locations[0][1];
let latitude = locations[0][2];
map = new google.maps.Map(document.getElementById('mapaunidade'), {
zoom: 12,
center: new google.maps.LatLng(longitude, latitude),
styles: styles
});
let image = {
1: {
url: 'imagens/maps/educacao.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
2: {
url: 'imagens/maps/saude.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
3: {
url: 'imagens/maps/assistencia.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
4: {
url: 'imagens/maps/secretaria.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
}
};
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
title: locations[i][0],
map: map,
icon: image[locations[i][3]]
});
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
infowindow.setContent(locations[i][0]);
infowindow.open(map, marker);
}
})(marker, i));
}
filterMarkers = function(category) {
let markers = gmarkers[i];
for (var i = 0; i < gmarkers.length; i++) {
// If is same category or category not picked
if (gmarkers[i].category == category || category.length === 0) {
console.log("category is " + gmarkers[i].category);
gmarkers[i].setVisible(true);
}
// Categories don't match
else {
gmarkers[i].setVisible(false);
}
}
}
}
</script>]]>
|
611
| <![CDATA[<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB_8RlEsKfEA53nf381HD7J6wtkaHpPr7Q&callback=initMap">
</script>]]>
|
616
| <![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>]]>
|
988
| <![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>]]>
|
1017
| <![CDATA[<script>
$(document).ready(function() {
$(".anteriores").toggle();
(function($) {
$('#filter').keyup(function() {
var rex = new RegExp($(this).val(), 'i');
$('.linha').hide();
$('.linha').filter(function() {
return rex.test($(this).text());
}).show();
})
}(jQuery));
});
</script>]]>
|
1042
| <![CDATA[<script>
$(function() {
/* Custom buttons */
$('#font-setting-buttons').easyView({
container: 'body, #rels, #tablink .row',
increaseSelector: '.increase-me',
decreaseSelector: '.decrease-me',
normalSelector: '.reset-me',
contrastSelector: '.change-me'
});
});
</script>]]>
|