2735
| <![CDATA[<script>
var bl;
// window.onresize = function() {
// clearTimeout(bl);
// var wy = $(window).width();
// if (wy > 800) {
// bl = setTimeout(recarregarPagina, 100);
// }
// };
// function recarregarPagina() {
// // Sem redimencionamento à 100ms!
// location.reload();
// }
$(document).ready(function() {
document.getElementById('modal_start').style.display="none";
var options = {
listPosition: 'left',
autoSlide: true,
}
var w = $(window).width();
if (w < 768) {
options = {
displayList: false,
autoSlide: true,
}
}
$('.pgwSlider').pgwSlider(options);
});
lightbox.option({
'resizeDuration': 200,
'wrapAround': true,
'albumLabel': "Imagem %1 de %2"
})
// GERA BANNER BASEADO EM UM NUMERO RANDOMICO
$(document).ready(function() {
var rand = 0
rand = Math.floor(Math.random() * 4);
if (rand == 0) {
$("#chamativa_site").attr('href', '../assets/img/content/popup_entulho.jpg');
$("#chamativa_site").on("click", function() {
$(".lb-nav").css("cursor", "pointer");
$(".lb-nav").click(function() {
window.open('https://araras.sp.gov.br/cronograma_entulho/', '_blank');
//window.open('#');
//window.location.href = "/coronavirus";
});
});
} else if ((rand > 0) && (rand <= 2)){
$("#chamativa_site").attr('href', '../assets/img/content/comunicado_fazenda.jpg');
$("#chamativa_site").on("click", function() {
$(".lb-nav").css("cursor", "pointer");
$(".lb-nav").click(function() {
//window.open('https://araras.sp.gov.br/noticias/26250', '_blank');
//window.open('#');
//window.location.href = "/coronavirus";
});
});
}
else {
$("#chamativa_site").attr('href', '../assets/img/content/comunicado_fazenda.jpg');
$("#chamativa_site").on("click", function() {
$(".lb-nav").css("cursor", "pointer");
$(".lb-nav").click(function() {
//window.open('https://araras.sp.gov.br/cronograma_entulho/', '_blank');
//window.open('#');
//window.location.href = "/coronavirus";
});
});
}
// SIMULAR EFEITO CLICK PARA O POPUP INICIAL
$("#chamativa_site").trigger("click"); // ABRIR POP-UP
//$("#modal_start").trigger("click");
});
$(".services-hover").hover(function() {
var img = $(this).attr('src');
img = img.substr(0, img.length - 4);
img = img + '-hover' + '.png';
$(this).attr('src', img);
}, function() {
var img = $(this).attr('src').replace('-hover', '');
$(this).attr('src', img);
});
jQuery(document).ready(function($) {
$(".video1").youmax({
apiKey: "AIzaSyDz24Wm2bkF1H0cLRnVTsjKXdrSTJXq6Tw",
channelLink: "https://www.youtube.com/channel/UCL5pbjWTAwwGdunuzYQLTv",
defaultTab: "Últimos vídeos", //Uploads|Playlists|Featured
videoDisplayMode: "popup", //popup|link|inline
maxResults: "3",
autoPlay: true,
displayFirstVideoOnLoad: true, //for inline video display mode only
responsiveBreakpoints: [600, 900, 1000, 2500],
loadMoreText: "<i class=\"fa fa-plus\"></i> ; ;Mostrar mais vídeos...",
previousButtonText: "<i class=\"fa fa-angle-left\"></i> ; ;Anterior",
nextButtonText: "Next ; ;<i class=\"fa fa-angle-right\"></i>",
loadingText: "carregando...",
allDoneText: "<i class=\"fa fa-times\"></i> ; ;Todos já mostrados...",
hideHeader: true,
hideTabs: true,
hideLoadingMechanism: true,
minResults: "0"
});
});
</script>]]>
|
2869
| <![CDATA[<script>
var options = {
url: function(phrase) {
return "buscaServico.php";
},
getValue: function(element) {
return element.nome;
},
ajaxSettings: {
dataType: "json",
method: "POST",
data: {
dataType: "json"
}
},
list: {
match: {
enabled: true
},
maxNumberOfElements: 8,
onChooseEvent: function() {
var value = $("#search-service").getSelectedItemData();
console.log(value);
window.open(value.link, "_blank")
}
},
preparePostData: function(data) {
data.phrase = $("#search-service").val();
return data;
},
requestDelay: 400
};
$("#search-service").easyAutocomplete(options);
</script>]]>
|