24
| <![CDATA[<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44422926-1', 'auto');
ga('send', 'pageview');
</script>]]>
|
74
| <![CDATA[<script type="text/javascript">
var is_mouse_out = true;
var transitions_menu = false;
var panel1_topanel2 = "";
var contents_items = "";
function HiddingMenusDrop()
{
if(is_mouse_out == true && transitions_menu == false)
{
document.getElementById('show_bg_main_menu_cidadao').style.display = "none";
document.getElementById('show_bg_main_menu_empresa').style.display = "none";
document.getElementById('show_bg_main_menu_turista').style.display = "none";
document.getElementById('show_bg_main_menu_servidor').style.display = "none";
}
}
function MouseOnMenuDrop()
{
is_mouse_out = false;
}
function MouseOutMenuDrop()
{
is_mouse_out = true;
}
function HideMenusDrop()
{
setTimeout(HiddingMenusDrop,50);
}
function OpenMenuDrop(menudrop)
{
if(window.innerWidth >= 960)
{
transitions_menu = true;
if(menudrop != "")
{
if(menudrop != "show_bg_main_menu_cidadao"){ document.getElementById('show_bg_main_menu_cidadao').style.display = "none"; }
if(menudrop != "show_bg_main_menu_empresa"){ document.getElementById('show_bg_main_menu_empresa').style.display = "none"; }
if(menudrop != "show_bg_main_menu_turista"){ document.getElementById('show_bg_main_menu_turista').style.display = "none"; }
if(menudrop != "show_bg_main_menu_servidor"){ document.getElementById('show_bg_main_menu_servidor').style.display = "none"; }
if(document.getElementById(menudrop).style.display == "block")
{
document.getElementById(menudrop).style.display = "none";
}
else
{
document.getElementById(menudrop).style.display = "block";
}
}
setTimeout(function(){ transitions_menu = false; },55);
}
}
// Função para exibição dos subitens dos serviços
function ShowSubitemsId(id_panel1)
{
var split_transform_panel2 = panel1_topanel2.split(',');
for(var i=0; i<split_transform_panel2.length-1; i++){
/*$('#'+split_transform_panel2[i]).hide('fast');*/
document.getElementById('hpan' + split_transform_panel2[i]).style.display = 'none';
document.getElementById('item' + split_transform_panel2[i]).className = '';
}
/* $('#'+id_panel1).show('fast');*/
document.getElementById('hpan' + id_panel1).style.display = 'block';
document.getElementById('item' + id_panel1).className = 'active';
/*Permalinks*/
url = new URLSearchParams(window.location.search.slice(1));
var servico = url.get('servico');
console.log('');
console.log('Permalink - Inicio');
console.log('Serviço: ' + url.get('servico'));
console.log('Categoria: ' + id_panel1);
console.log('Permalink - Fim');
window.history.pushState('', '', 'service.php?servico=' + servico + '&categoria=' + id_panel1);
}
function ShowContentItem(id_content)
{
var split_transform_content = contents_items.split(',');
for(var i=0; i<split_transform_content.length-1; i++){
$('#'+'content' + split_transform_content[i]).hide(200);
document.getElementById('subitem' + split_transform_content[i]).className = '';
}
$('#'+'content' + id_content).show(200);
document.getElementById('subitem' + id_content).className = 'active_itens';
/*Permalinks*/
url = new URLSearchParams(window.location.search.slice(1));
var servico = url.get('servico');
var categoria = url.get('categoria');
console.log('');
console.log('Permalink - Inicio');
console.log('Serviço: ' + url.get('servico'));
console.log('Categoria: ' + url.get('categoria'));
console.log('Item: ' + id_content);
console.log('Permalink - Fim');
window.history.pushState('', '', 'service.php?servico=' + servico + '&categoria=' + categoria + '&item=' + id_content);
}
function SetItemsPanel2(str_items,str_contents)
{
panel1_topanel2 = str_items;
contents_items = str_contents;
}
function LoadContentSubItemSingle(id_subitem, id_content)
{
var split_transform_content = contents_items.split(',');
for(var i=0; i<split_transform_content.length-1; i++){
$('#'+'content' + split_transform_content[i]).hide(200);
document.getElementById('subitem' + split_transform_content[i]).className = '';
}
var dataString = 'id_content=' + id_content;
$.ajax(
{
type: "GET",
url: "includes/get_content_service.php",
data: dataString,
beforeSend: function()
{
$("#content_page_service").html('<div style="position:relative;top:30px;">Carregando conteúdo...</div>');
},
success: function(result)
{
$("#content_page_service").html(result);
document.getElementById('subitem' + id_subitem).className = 'active';
RefreshSizePanels();
}
});
/*Permalinks*/
url = new URLSearchParams(window.location.search.slice(1));
var servico = url.get('servico');
var categoria = url.get('categoria');
console.log('');
console.log('Permalink - Inicio');
console.log('Serviço: ' + url.get('servico'));
console.log('Categoria: ' + url.get('categoria'));
console.log('Item: ' + id_subitem);
console.log('Permalink - Fim');
window.history.pushState('', '', 'service.php?servico=' + servico + '&categoria=' + categoria + '&item=' + id_subitem);
}
function LoadContentService(id_content)
{
var dataString = 'id_content=' + id_content;
$.ajax(
{
type: "GET",
url: "includes/get_content_service.php",
data: dataString,
beforeSend: function()
{
$("#content_page_service").html('<div style="position:relative;top:30px;">Carregando conteúdo...</div>');
},
success: function(result)
{
$("#content_page_service").html(result);
RefreshSizePanels();
}
});
/*Permalinks*/
url = new URLSearchParams(window.location.search.slice(1));
var servico = url.get('servico');
var categoria = url.get('categoria');
var item = url.get('item');
console.log('');
console.log('Permalink - Inicio');
console.log('Serviço: ' + url.get('servico'));
console.log('Categoria: ' + url.get('categoria'));
console.log('Item: ' + url.get('item'));
console.log('Conteúdo: ' + id_content);
console.log('Permalink - Fim');
window.history.pushState('', '', 'service.php?servico=' + servico + '&categoria=' + categoria + '&item=' + item + '&conteudo=' + id_content);
}
function SetServiceMenuMobileItem()
{
$("#subitens_sel_cc").html
('<div id="select_menu_service"><select onChange="" class="menu_service"><option value="" selected="selected" disabled="disabled">-</option></select></div>');
var x = document.getElementById("select_1").selectedIndex;
var y = document.getElementById("select_1").options;
// alert("Index: " + y[x].index + " is " + y[x].value);
var dataString =
'mode=item' +
'&id=' + y[x].value;
$.ajax(
{
type: "GET",
url: "includes/get_ccvalues_servicos.php",
data: dataString,/*
beforeSend: function()
{
$("#content_page_service").html('<div style="position:relative;top:30px;">Carregando conteúdo...</div>');
},*/
success: function(result)
{
$("#itens_sel_cc").html(result);
}
});
}
function SetServiceMenuMobileSubItem()
{
var x = document.getElementById("select_2").selectedIndex;
var y = document.getElementById("select_2").options;
// alert("Index: " + y[x].index + " is " + y[x].value);
var dataString =
'mode=subitem' +
'&id=' + y[x].value;
$.ajax(
{
type: "GET",
url: "includes/get_ccvalues_servicos.php",
data: dataString,/*
beforeSend: function()
{
$("#content_page_service").html('<div style="position:relative;top:30px;">Carregando conteúdo...</div>');
},*/
success: function(result)
{
$("#subitens_sel_cc").html(result);
}
});
}
function SetServiceMenuMobileContent()
{
var x = document.getElementById("select_3").selectedIndex;
var y = document.getElementById("select_3").options;
var dataString = 'id_content=' + y[x].value;
$.ajax(
{
type: "GET",
url: "includes/get_content_service.php",
data: dataString,
beforeSend: function()
{
$("#content_page_service").html('<div style="position:relative;top:30px;">Carregando conteúdo...</div>');
},
success: function(result)
{
$("#content_page_service").html(result);
}
});
}
</script>]]>
|