263
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function () {
jQuery(".galeriaFotos").nanogallery2({
thumbnailWidth: '280',
thumbnailAlignment: 'left',
thumbnailBorderVertical: 0,
thumbnailBorderHorizontal: 0,
thumbnailHoverEffect2: 'toolsAppear|imageScaleIn80',
thumbnailLabel: {
"titleMultiLine": true
},
thumbnailToolbarImage: {
topRight: '',
},
viewerToolbar: {
standard: 'fullscreenButton, closeButton, label',
},
viewerTools: {
topRight: 'zoomButton,closeButton',
},
});
});
var $elemento = $("body").find("*"); //encontra todos os elementos dentro do #content
var fonts = [];
var fonts_padrao = [];
function obterTamanhoFonte() {
for (var i = 0; i < $elemento.length; i++) {
fonts_padrao.push(parseFloat($elemento.eq(i).css('font-size')));
fonts.push(parseFloat($elemento.eq(i).css('font-size')));
}
}
obterTamanhoFonte();
$("#btnFontePadrao").click(function () {
for (var i = 0; i < $elemento.length; i++) {
fonts[i] = fonts_padrao[i];
$elemento.eq(i).css('font-size', fonts_padrao[i]);
}
});
$("#btnAumentar").click(function () {
for (var i = 0; i < $elemento.length; i++) {
++fonts[i];
$elemento.eq(i).css('font-size', fonts[i]);
}
});
$("#btnDiminuir").click(function () {
for (var i = 0; i < $elemento.length; i++) {
--fonts[i];
$elemento.eq(i).css('font-size', fonts[i]);
}
});
$('#contraste').click(function () {
if ($(this).hasClass('ativo')) {
$(this).removeClass('ativo');
$('#teste-contraste').html('');
$('#logo').attr('src', 'https://www.camaramateusleme.mg.gov.br/assets/img/logo.png');
}
else {
$(this).addClass('ativo');
$('#teste-contraste').html('<link href="https://www.camaramateusleme.mg.gov.br/assets/css/escuro.css" rel="stylesheet">');
$('#logo').attr('src', 'https://www.camaramateusleme.mg.gov.br/assets/img/logo_branca.png');
}
});
$(function () {
$('[data-toggle="popover"]').popover()
})
var win = null;
function NovaJanela(pagina, nome, w, h, scroll) {
LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable';
win = window.open(pagina, nome, settings);
}
</script>]]>
|