65
| <![CDATA[<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '470486017036059');
fbq('track', 'PageView');
fbq('track', 'ViewContent');
fbq('track', 'Search');
fbq('track', 'Lead');
</script>]]>
|
99
| <![CDATA[<script>
// teste();
// function teste(){
// $.post("/service/", "daoName=DAO/front/artigosDAO&serviceName=listarArtigosNoticiasBanner", function( result ){
// var obj = JSON.parse(result);
// if ( obj.success ){
// if( obj.elements.length > 0 ){
// for(var i = 0; i < obj.elements.length; i++){
// loading.obj.messages.push(obj.elements[i].titulo)
// }
// }
// }
// });
// }
</script>]]>
|
397
| <![CDATA[<script type="text/javascript">
$(window).on('resize', function(){
if (window.screen.width < 1024) {
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', parseInt( $(".listaMenuTop li").height() * 2.2 ) + 'px');
}else{
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', '');
}
});
$('.dropdown').on('shown.bs.dropdown', function () {
if (window.screen.width < 1024) {
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', parseInt( $(".listaMenuTop li").height() * 2.2 ) + 'px');
}else{
$('.dropdown-menu[aria-labelledby=menuSecretarias] .list-inline').css('height', '');
}
});
$(document).on('click', '.dropdown-menu[aria-labelledby=menuSecretarias]', function (e) {
e.stopPropagation();
});
$("form").on('submit', function(e){
e.preventDefault();
})
$(".controlMenuTop-left").on("click" ,function(){
var scrolled = $(".listaMenuTop").scrollLeft();
var scrollWidth = document.getElementsByClassName("listaMenuTop")[0].scrollWidth;
if (scrolled>0) {
scrolled = scrolled - parseInt($(".listaMenuTop").parent().width());
$(".listaMenuTop").animate({
scrollLeft: scrolled
});
}
});
$(".controlMenuTop-right").on("click" ,function(){
var scrolled = $(".listaMenuTop").scrollLeft();
var scrollWidth = document.getElementsByClassName("listaMenuTop")[0].scrollWidth;
if (scrolled < scrollWidth){
scrolled = scrolled + parseInt($(".listaMenuTop").parent().width());
$(".listaMenuTop").animate({
scrollLeft: scrolled
});
}
});
function pesquisarSite(){
var campoPesquisa = $("#campoPesquisaHome").val();
var pagina = 0;
var Artigo_tipo = 'noticia';
// if(campoPesquisa != ''){
window.location.href = "/pesquisa/?id=pesquisa-site&campoPesquisa=" + campoPesquisa + "&pagina=" + pagina + "&Artigo_tipo=" + Artigo_tipo;
//
}
</script>]]>
|
653
| <![CDATA[<script>
$("a[href='#containerTop']").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
</script>]]>
|
676
| <![CDATA[<script>
var pag = '';
var sessao = [];
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
$('#navTop').on('click', function () {
$('#sidebar').toggleClass('active');
});
var tempoSessao = '';
var id = 'guiaCaieiras';
if(id == 'guiaCaieiras' || id == 'login'){
pag = 1;
$('#navIptu .nav-link').each(function(){
if($(this).data("value") != undefined && $(this).data("value") != ''){
$(this).attr('href', '/hotsite/iptuGarantido/?pag=' + $(this).data("value"));
}
});
}
if(id == 'login'){
if(tempoSessao == 'expirado'){
toastr.warning("Tempo de sessão expirado! Efetue o login novamente para continuar.", "Oops!");
}
}else if(id == 'sistema'){
var pagina = '/hotsite/iptuGarantido/sistema/fragment/paginaInicial.frag.php';
link(pagina);
$(document).on('click', '#sidebar .link-menu', function(){
$('#sidebar a').each(function(){
$(this).parents('li').removeClass('active');
});
$(this).parents('li').addClass('active');
link($(this).data("url"));
});
}else if(id == 'guiaCaieiras'){
list_guia.init();
}else if(id == 'extrato'){
// $('.btn-login').parents('li').remove();
listExtrato();
}
});
$('#navIptu .nav-link').click(function(){
if(pag != 1){
scrollDown($(this).data("value"));
}
});
function scrollDown(e){
var $doc = $('html, body');
$doc.animate({
scrollTop: $( "#" + e ).offset().top
}, 1100);
return false;
}
function listarDuvidas(){
var dNone = '';
var active = 'active';
var htmlDuvidas = '';
var htmlConteudo = '';
for(var i = 0; i < jsonDuvidas.length; i++){
htmlDuvidas += '<a id="' + jsonDuvidas[i].codigo + '" class="link-duvida ' + active + '"> ' + jsonDuvidas[i].titulo + ' </a>';
htmlConteudo += '<div class="div-duvidas py-5 ' + jsonDuvidas[i].codigo + ' ' + dNone + '">';
htmlConteudo += ' <a class="btn-top"><i class="fa fa-angle-up"></i></a>';
htmlConteudo += ' <p class="font-weight-bold mb-1">' + jsonDuvidas[i].titulo + '</p>';
htmlConteudo += ' <p>' + jsonDuvidas[i].conteudo + '</p>';
htmlConteudo += '</div>';
dNone = 'd-none';
active = '';
}
$('#bodyDuvidas').html(htmlDuvidas);
$('#containerDuv').html(htmlConteudo);
}
function listarRegras(){
var active = 'active';
var htmlRegras = '';
var margin = '';
for(var i = 0; i < jsonRegras.length; i++){
if(jsonRegras[i].conteudo != ''){
margin = 'mb-0';
}else{
margin = 'mb-3';
}
htmlRegras += '<p id="' + jsonRegras[i].codigo + '" class="link-regras ' + margin + '"> ' + jsonRegras[i].titulo + ' </p>';
if(jsonRegras[i].conteudo != ''){
htmlRegras += '<div class="div-regras ' + jsonRegras[i].codigo + ' ">';
htmlRegras += ' <p>' + jsonRegras[i].conteudo + '</p>';
htmlRegras += '</div>';
}
active = '';
}
$('#bodyRegras').html(htmlRegras);
}
function clickDuvida(duvida){
$('#duv-' + duvida).click();
}
$(document).on('click', '.btn-top', function() {
scrollDown('duvidas');
});
$(document).on('click', '.link-duvida', function() {
$('#duvidas a').each(function(){
$(this).removeClass('active');
});
$(this).addClass('active');
$('#conteudoDuvidas .div-duvidas').each(function(){
$(this).addClass('d-none');
});
$('.' + this.id).removeClass('d-none');
scrollDown('conteudoDuvidas');
});
function listExtrato() {
loading.open();
// limitFilter = verMais + parseInt($('#limitFilter').val());
var limitFilter = 10;
$.post("service/listarExtrato/", '&limit='+ limitFilter, function(result){
if((result.search("gerenciador MySQL") > 0) || (result.search("erro na execução do Comando SQL") > 0 ) ){
loading.close();
swal("Ops... !", "Não foi possível estabelecer uma conexão com o Banco de Dados. Verifique sua conexão com a internet, e recarregue a página novamente. ", "warning");
}else{
var obj = JSON.parse(result);
if (obj.success){
// Handlebars.registerHelper('st', function(status) {
// var html;
// if (status == 'AP'){
// html = 'Aprovado';
// }else if (status == 'PE'){
// html = 'Pendente';
// }else if (status == 'RE'){
// html = 'Resgatado';
// }else if (status == 'CA'){
// html = 'Cancelado';
// }
// return new Handlebars.SafeString(html);
// });
// Handlebars.registerHelper('iptu', function(iptu) {
// var html;
// if (iptu == ''){
// html = '0000';
// }else{
// html = iptu;
// }
// return new Handlebars.SafeString(html);
// });
// Handlebars.registerHelper('index_of', function(context,ndx) {
// return context[ndx];
// });
if( obj.elements.length > 0 ){
html = '';
for(var i = 0; i < obj.elements.length; i++){
if (obj.elements[i].status == 'AP'){
status = 'Aprovado';
}else if (obj.elements[i].status == 'PE'){
status = 'Pendente';
}else if (obj.elements[i].status == 'RE'){
status = 'Resgatado';
}else if (obj.elements[i].status == 'CA'){
status = 'Cancelado';
}
var Empresa_nome = obj.elements[i].nomeFantasia;
if(obj.elements[i].nomeFantasia){
Empresa_nome = obj.elements[i].razaoSocial;
}
html +='<div class="row bloco-extrato justify-content-between align-items-center">';
html +=' <div class="col-12 col-extrato pb-4">';
html +=' <div class="iconEx ' + obj.elements[i].Categoria_nome + '">';
html +=' <img src="/internetfiles/categorias/' + obj.elements[i].icone + '">';
html +=' </div>';
html +=' <div class="d-flex justify-content-between">';
html +=' <h5 id="tipo">' + obj.elements[i].Categoria_nome + '</h5>';
html +=' <p class="data-ex">' + obj.elements[i].data + '</p>';
html +=' </div>';
html +=' <div class="row justify-content-between align-items-center">';
html +=' <div class="col-8 text-left"> ';
html +=' <p class="empresa">' + Empresa_nome + '</p>';
html +=' <p class="valorCompra">Valor de Compra: R$ ' + obj.elements[i].valorCompra.replace(".", ",") + '</p>';
html +=' <p class="valorBonus">Valor Bônus: ' + obj.elements[i].valorBeneficio.replace(".", ",") + '</p>';
html +=' </div>';
html +=' <div class="col-4 text-right">';
html +=' <p class="status ' + obj.elements[i].status + '">' + status + '</p>';
html +=' </div>';
html +=' </div>';
html +=' </div> ';
html +='</div>';
}
$("#bodyDados").html(html);
var totalAcumulado = obj.totalAcumulado.toString();
$("#totalAcumulado").html('R$ ' + totalAcumulado.replace(".", ","));
loading.close();
}
} else {
loading.close();
}
}
}).fail(function() {
loading.close();
swal("Ops... !", "Não foi possível estabelecer uma conexão com o Banco de Dados. Verifique sua conexão com a internet, e recarregue a página novamente. ", "warning");
});
};
</script>]]>
|