14
| <![CDATA[<script type="text/javascript">
var PageSizeShow = 10; //Quantidade de páginas que será exibida
var PageSize = 12; //Quantidade de registros por página
var jsFunction = "GetFaq"; //Nome da função javascript de exibição de dados.
var cdCategoria = -1;
var cdUnidade = -1;
function GetFaq(Page)
{
var exibeSecao = "True";
if (cdCategoria == -1 && exibeSecao == "False"){
cdCategoria = "";
}
cdUnidade = '-1';
var div = "pergunta_cont";
faq_lis.GetFaq(Page, cdCategoria, PageSize, cdUnidade,
function(res)
{
var divMain = document.createElement("div");
var cdFaqCategoria = 0;
divMain.setAttribute("id", div);
if(res.value != null)
{
SetPags(res.value.Rows[0].TOTALROWS, Page);
for(var y = 0; y < res.value.Rows.length; y++)
{
var pCategoria = null;
var pPergunta = document.createElement("p");
var pResposta = document.createElement("p");
var a = document.createElement("a");
pPergunta.setAttribute("class", "pergunta");
pPergunta.setAttribute("className", "pergunta");
a.appendChild(document.createTextNode(res.value.Rows[y].DSPERGUNTA));
a.setAttribute("id", "pergunta" + y);
a.setAttribute("href", "javascript:OpenQuest(" + y + ")");
pResposta.setAttribute("id", "resposta" + y);
pResposta.setAttribute("className", "resposta");
pResposta.setAttribute("class", "resposta");
pResposta.style.display = "none";
pResposta.innerHTML = res.value.Rows[y].DSRESPOSTA;
pPergunta.appendChild(a);
if (pCategoria != null) divMain.appendChild(pCategoria);
divMain.appendChild(pPergunta);
divMain.appendChild(pResposta);
}
}
document.getElementById(div).parentNode.replaceChild(divMain, document.getElementById(div));
}
);
}
function DisplayMenu(obj, value, object, title)
{
document.getElementById("listagem").style.display = "block";
cdCategoria = value;
GetFaq(0);
if(document.getElementById(obj))
{
if(document.getElementById(obj).style.display=='block')
{
object.className = "bt_mais";
document.getElementById(obj).style.display='none';
}
else
{
object.className = "bt_menos";
document.getElementById(obj).style.display='block';
}
}
}
function OpenQuest(num)
{
if(document.getElementById("resposta" + num).style.display == "block")
{
document.getElementById("pergunta" + num).style.fontWeight = "normal";
document.getElementById("resposta" + num).style.display = "none";
}
else
{
var index = 0;
for(i = 0; i < (document.getElementById("pergunta_cont").childNodes.length / 2); i++)
{
if (document.getElementById("pergunta_cont").childNodes[i].tagName == "P") {
document.getElementById("resposta" + index).style.display = "none";
document.getElementById("pergunta" + index).style.fontWeight = "normal";
index++;
}
}
document.getElementById("pergunta" + num).style.fontWeight = "bold";
document.getElementById("resposta" + num).style.display = "block";
}
}
</script>]]>
|
133
| <![CDATA[<script type="text/javascript">
AjaxPro.noUtcTime = true;
</script>]]>
|
142
| <![CDATA[<script type="text/javascript">
var siterel = "";
</script>]]>
|
147
| <![CDATA[<script type="text/javascript">
//<![CDATA[
if (sessionStorage.getItem('stylename') != null) {
document.getElementById('layoutsite').setAttribute('href', sessionStorage.getItem('stylename'));
}
else {
document.getElementById('layoutsite').setAttribute('href', 'css/geral.css');
}
//]]>
</script>]]>
|
182
| <![CDATA[<script type="text/javascript">
//<![CDATA[
var isEmpty = true;
function buscar() {
if (isEmpty)
document.location = '/bus_ava.aspx?search=';
else
document.location = '/bus_ava.aspx?search=' + document.getElementById('uc_painel_buscar').value;
}
$(function () {
document.getElementById("uc_painel_btn_buscar").onclick = buscar;
});
if (document.getElementById("uc_painel_buscar").addEventListener) {
document.getElementById("uc_painel_buscar").addEventListener('keyup', function () {
if (document.getElementById('uc_painel_buscar').value.trim() == "") isEmpty = true; else isEmpty = false;
});
} else {
document.getElementById("uc_painel_buscar").attachEvent('onkeyup', function () {
if (document.getElementById('uc_painel_buscar').value.trim() == "") isEmpty = true; else isEmpty = false;
});
}
//]]>
</script>]]>
|
250
| <![CDATA[<script>
//<![CDATA[
(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
//]]>
</script>]]>
|
312
| <![CDATA[<script type="text/javascript">
DisplayMenu('-1','-1', null, 'Todas as categorias');
</script>]]>
|
326
| <![CDATA[<script type="text/javascript">
//<![CDATA[
(function(){
var buscar = document.getElementById("uc_painel_buscar");
buscar.onfocus = function(){if(this.value=='palavra-chave')this.value='';};
buscar.onblur = function(){if(this.value=='')this.value='palavra-chave';};
})();
//]]>
</script>]]>
|
335
| <![CDATA[<script type="text/javascript">
//<![CDATA[
(function(){
var divMenu = document.getElementById("uc_menu_menu");
var nuNivelMax = 3;
var nmClassMenu = '';
for(var j= 1; j <= nuNivelMax; j++) {
nmClassMenu = 'mn_nivel_'+ (j < 10 ? '0' + j.toString() : j.toString()) + '_mais';
var menus = getElementsByClassName(nmClassMenu, 'li', divMenu);
for (var i= 0; i< menus.length; i++) {
if(menus[i].childNodes.length > 1 && menus[i].childNodes[0].tagName.toLowerCase() == 'a'){
menus[i].childNodes[0].onclick = function(){
var novaClasse = '';
if(this.parentNode.childNodes[1].style.display=='none'){
this.parentNode.childNodes[1].style.display='block';
novaClasse = this.parentNode.className.replace('mais','menos');
this.parentNode.className= novaClasse;
}else{
this.parentNode.childNodes[1].style.display='none';
novaClasse = this.parentNode.className.replace('menos','mais');
this.parentNode.className= novaClasse;
}
return false;
}
}
}
}
})();
//]]>
</script>]]>
|
366
| <![CDATA[<script type="text/javascript">
//<![CDATA[
(function(){
})();
//]]>
</script>]]>
|
379
| <![CDATA[<script type="text/javascript">
//<![CDATA[
(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-8187826-26', 'auto');
ga('create', 'UA-34477479-25', 'auto', {'name':'b'});
ga('send', 'pageview');
ga('b.send', 'pageview');
//]]>
</script>]]>
|