12
| <![CDATA[<script>
var path = '/';
var path_to_theme = '/sites/all/themes/tca';
var canal_atual = '';
</script>]]>
|
67
| <![CDATA[<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "dhtmlMenu": { "slide": "slide", "siblings": "siblings", "relativity": "relativity", "doubleclick": "doubleclick", "children": 0, "clone": 0 } });
//--><!]]>
</script>]]>
|
78
| <![CDATA[<script>
$(document).ready(function(){
enterBusca($("#search_top"), $('#btn_search_top'));
enterBusca($("#search_bottom"), $('#btn_search_bottom'));
$( "#data" ).datepicker({
showOn: "button",
buttonImage: "/sites/all/themes/tca/images/iconCalendario.gif",
buttonImageOnly: true
});
$("#data").setMask({
mask:'39/19/9999'
});
$('#form_programacao_geral #data').blur(function(){
if($(this).val().length < 10){
$(this).val('');
}
});
$('#form_programacao_geral').submit(function(){
var $input_data = $(this).find('#data');
var campo_data = $input_data.val();
var data = '';
var $busca_selects = $(this).find("select[name='projetos[]'], select[name='espacos[]'], select[name='espetaculos']");
if(campo_data != ''){
dia = campo_data.split('/')[0];
mes = campo_data.split('/')[1];
ano = campo_data.split('/')[2];
if(dia > 31 || mes > 12 || ano == 0000){
alert('A data informada não é valida');
return false;
}
}
if(campo_data == '' && $(this).find("select[name='projetos[]'] option:selected").val() == '' && $(this).find("select[name='espacos[]'] option:selected").val() == '' && $(this).find("select[name='espetaculos'] option:selected").val() == ''){
$busca_selects.each(function(){
$(this).removeAttr('name');
});
$input_data.removeAttr('name');
$("#data_inicio").removeAttr('name');
}else{
if(campo_data != ''){
data = campo_data.split('/');
data = data[2] + '-' + data[1] + '-' + data[0];
$input_data.val(data);
}
$busca_selects.each(function(){
if($(this).find('option:selected').val() == ''){
$(this).removeAttr('name');
}
});
}
$("#data_inicio").val(data);
return true;
});
$("#edit-submitted-telefone").setMask({
mask:'(99) 9999-9999'
});
$("#slider").easySlider({
//continuous: true,
//controlsShow: true,
numeric: false,
prevText: '<img src="'+path_to_theme+'/images/slider_oteatro_prev.png" />',
nextText: '<img src="'+path_to_theme+'/images/slider_oteatro_next.png" />'
});
$("#menuCanais a img").hover(
function handlerIn(){
var canal = $(this).attr("name");
if(canal != ""){
var caminho = "/sites/all/themes/tca/images/btn_"+canal.toLowerCase()+"_hover.jpg";
$(this).css("height", 35);
$(this).css("margin-top", -10);
$(this).attr("src", caminho);
}
},
function handlerOut(){
var canal = $(this).attr("name");
if(canal != ""){
var caminho = "/sites/all/themes/tca/images/bt_canal"+canal+".gif";
$(this).css("height", 25);
$(this).css("margin-top", 0);
$(this).attr("src", caminho);
}
}
);
fsp_showTweets(1, 'https://twitter.com/TCA_BA', '/sites/all/themes/tca/images/iconeTwitter.gif');
});
function fechaDhtml() {
var div = document.getElementById("BannerCamaleao");
div.style.display='none';
}
</script>]]>
|
712
| <![CDATA[<script>
$(document).ready(function(){
$("img[id^='info_img']").click(function(){
var caminho = "/sites/all/themes/tca/images/";
$("img[src*='_over']").each(function(){
$(this).attr("src", caminho + $(this).attr("name") + ".png");
});
$(this).attr("src", caminho + $(this).attr("name") + "_over.png");
$("div[id^='oteatro_content_info_']").css("display", "block").css("display","none");
$("#oteatro_content_info_" + $(this).attr("id").split("_")[2]).css("display", "block");
});
});
</script>]]>
|
900
| <![CDATA[<script>
//############### CAROUSEL DE MARCA ##############
$('#marcascarousel').jcarousel({
scroll: 1
});
//############# FIM DO CAROUSEL DE MARCA ##########
</script>]]>
|
908
| <![CDATA[<script>
//###### CONSTRUCAO DO CALENDARIO CULTURAL ######
var calendario = $('#date');
var server_name = "www.tca.ba.gov.br";
var ajax_calendario = null;
var data_atual = '2023-09-20';
var css_data_atual = 'data_atual_tca';
calendario.DatePicker({
flat: true,
dateView: true,
date: [''],
current: data_atual,
format: 'Y-m-d',
calendars: 1,
mode: 'multiple',
onRender: function(d) {
return {
disabled: true,
className: false
}
},
onChangeMonth: function(){
ajaxListaDataEvento();
}/*,
onComplete: function(){
ajaxListaDataEvento();
}*/
});
//###### FIM DA CONSTRUCAO DO CALENDARIO######
//############## MARQUEE ##############
$("#marquee").marquee('pointer').mouseover(function () {
$(this).css('cursor', 'pointer', 'font', 'Arial Narrow');
$(this).trigger('stop');
}).mouseout(function () {
$(this).trigger('start');
}).mousemove(function (event) {
if ($(this).data('drag') == true) {
this.scrollLeft = $j(this).data('scrollX') + ($j(this).data('x') - event.clientX);
}
}).mousedown(function (event) {
$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
}).mouseup(function () {
$(this).data('drag', false);
});
//############## FIM MARQUEE ###############
</script>]]>
|