423
| <![CDATA[<script type="text/javascript">
$("#featured").mouseover(function(event) {
/* Act on the event */
$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 0, true);
});
$("#featured").mouseleave(function(event) {
/* Act on the event */
$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 2000, true);
});
$( "#select-busca" ).change(function() {
if($('#select-busca').val() == 'noticias') {
$('#desc-noticias').show();
$('#desc-legislacao').hide();
$('#desc-licitacoes').hide();
} else if($('#select-busca').val() == 'legislacao'){
$('#desc-noticias').hide();
$('#desc-legislacao').show();
$('#desc-licitacoes').hide();
} else if($('#select-busca').val() == 'licitacoes'){
$('#desc-noticias').hide();
$('#desc-legislacao').hide();
$('#desc-licitacoes').show();
}
});
$(document).ready(function(){
var base_url = "https://www.camarariversul.sp.gov.br/";
$("#btn_pesquisa_pauta").click(function(){
var modalidade;
modalidade = $('#pauta-categoria').val();
var ano_pautas;
ano_pautas = $('#ano_pautas').val();
var url = base_url + "pautas";
var form = document.getElementById('form_data');
form.action = url + "/" + modalidade + "/" + ano_pautas;
this.form.submit();
});
$("#licitacao-categoria").change(function(){
var modalidade = document.getElementById('modalidade');
modalidade.value = $(this).val();
var url = base_url + "licitacoes-editais";
var form = document.getElementById('form_data');
form.action = url + "/" + $(this).val();
this.form.submit();
});
$("#legislacao-categoria").change(function(){
var modalidade = document.getElementById('modalidade');
modalidade.value = $(this).val();
var url = "https://www.camarariversul.sp.gov.br/licitacoes-editais";
var form = document.getElementById('form_data');
form.action = url + "/" + $(this).val();
});
$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 2000, true);
$('#select-ano').on('change', function() {
$.ajax({
type : 'GET',
url : 'https://www.camarariversul.sp.gov.br/sessoes-anteriores/busca-sessao'+ '/' + $('#select-ano').val() ,
success:function (data) {
console.log(data);
$("#select-embed").empty().append(data);
troca_video();
}
});
});
});
function troca_video() {
document.getElementById('area-video').src = 'https://www.youtube.com/embed/' + document.getElementById('select-embed').value;
}
</script>]]>
|