295
| <![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>]]>
|
400
| <![CDATA[<script type="text/javascript">
$(document).ready(function () {
$(":input").inputmask();
if ($('input.telefone').length) {
$("input.telefone").each(function () {
if ($(this).inputmask('unmaskedvalue') !== null) {
if ($(this).inputmask('unmaskedvalue').length > 10) {
$(this).inputmask("(99) 99999-999[9]");
} else {
$(this).inputmask("(99) 9999-9999[9]");
}
}
});
}
if ($('input.cpf_cnpj').length) {
var cpf_cnpj = $("input.cpf_cnpj").inputmask('unmaskedvalue');
if (cpf_cnpj.length > 11) {
$("input.cpf_cnpj").inputmask("99.999.999/999[9]-[9][9]");
} else {
$("input.cpf_cnpj").inputmask("999.999.999-99[9][9][9]");
}
}
});
jQuery("input.telefone").inputmask("(99) 9999-9999[9]").keyup(function (event) {
var target, phone, element;
target = (event.currentTarget) ? event.currentTarget : event.srcElement;
phone = target.value.replace(/\D/g, '');
element = $(target);
element.inputmask('unmaskedvalue');
if (phone.length > 10) {
element.inputmask("(99) 99999-999[9]");
} else {
element.inputmask("(99) 9999-9999[9]");
}
});
jQuery("input.cpf_cnpj").inputmask("99.999.999/999[9]-[9][9]").keyup(function (event) {
var target, cpf_cnpj, element;
target = (event.currentTarget) ? event.currentTarget : event.srcElement;
cpf_cnpj = target.value.replace(/\D/g, '');
element = $(target);
element.inputmask('unmaskedvalue');
if (cpf_cnpj.length > 11) {
element.inputmask("99.999.999/999[9]-[9][9]");
} else {
element.inputmask("999.999.999-99[9][9][9]");
}
});
</script>]]>
|