517
| <![CDATA[<script>
function menu() { var toUrl = $('#menu-link').val(); window.location.href = toUrl; }
function menuSecretarias() { var toUrl = $('#secretaria-link').val(); window.location.href = toUrl; }
function idioma() { var toUrl = $('#idioma-link').val(); window.location.href = toUrl; }
jQuery(document).ready(function($) {
$('#banner-fade').bjqs({
height : 262,
width : 450,
responsive : true,
showmarkers : false,
nexttext : '<img src="https://www.blumenau.sc.gov.br/view/images/icons/proximo.png" class="proximo" />',
prevtext : '<img src="https://www.blumenau.sc.gov.br/view/images/icons/anterior.png" class="anterior" />'
});
$('a').smoothScroll({
speed: 1000,
easing: 'easeInOutCubic'
});
$('.showOlderChanges').on('click', function(e){
$('.changelog .old').slideDown('slow');
$(this).fadeOut();
e.preventDefault();
})
$('#resultadoBusca').on('mouseleave', function(e){
$('#buscaLinks').fadeOut(100);
})
$('#resultadoBusca').on('mouseenter', function(e){
$('#buscaLinks').fadeIn(100);
})
$('#busca-form').on('mouseenter', function(e){
$('#buscaLinks').fadeIn(100);
})
$('#busca-form').on('blur', function(e){
$('#buscaLinks').fadeIn(100);
})
$('#busca-form').on('mouseup', function(e){
$('#buscaLinks').fadeIn(100);
})
var ele = $('#scroler');
var scroll = 100;
$('#up').click(function() { up(); });
$('#down').click(function() { down(); });
$('#up').on('mouseenter', function(e){
intervalo = setInterval(up, 200);
});
$('#down').on('mouseenter', function(e){
intervalo = setInterval(down, 200);
});
$('#down').on('mouseleave', function(e){ clearInterval(intervalo); });
$('#up').on('mouseleave', function(e){ clearInterval(intervalo); });
function down(){ ele.scrollTop(ele.scrollTop() + scroll); }
function up(){ ele.scrollTop(ele.scrollTop() - scroll); }
});
function proximaPagina(pagina) {
var paginator = '#pagina' + pagina;
$(paginator).load('https://www.blumenau.sc.gov.br/controller/pagina-busca.php?pagina=' + pagina);
}
function newsletter() {
var nome = $('#nome').val();
var email = $('#email').val();
$('#news-resposta').html('<p class="sucesso" style="color: #000;">Aguarde...</p>');
$('#news-resposta').load('https://www.blumenau.sc.gov.br/controller/newsletter.php?nome=' + nome + '&email=' + email);
}
function buscaSessao(){
var busca = $('#busca-form').val();
$('#resultadoBusca').load('https://www.blumenau.sc.gov.br/controller/buscarapida.php?busca=' + busca);
$('#buscaLinks').fadeIn(100);
}
$( '.votar-concurso' ).click( function ( e ){
e.preventDefault();
var foto = $( this ).attr("id");
$('.votar-concurso').fadeOut();
$( this ).parent().load('https://www.blumenau.sc.gov.br/controller/votar-concurso.php?opcao=' + foto);
});
</script>]]>
|