44
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JPZ4RCMGJ4');
</script>]]>
|
1720
| <![CDATA[<script>
setTimeout(() => {
var idDivBusca = 'searchGoogleContentLg';
if($(window).width() < 768){
idDivBusca = 'searchGoogleContent';
}
var myCallback = function() {
if (document.readyState == 'complete') {
google.search.cse.element.render(
{
div: idDivBusca,
tag: 'search'
});
} else {
google.setOnLoadCallback(function() {
google.search.cse.element.render(
{
div: idDivBusca,
tag: 'search'
});
}, true);
}
};
window.__gcse = {
parsetags: 'explicit',
callback: myCallback
};
(function() {
var cx = '011042267039235339792:rzw987n38rk';
var gcse = document.createElement('script'); gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
}, 2000)
function fixDiv() {
var cabMenu = $('.nav_cab2');
var cabCima = $('.nav_cab');
var tamanhoCabCima = $('.nav_cab').height();
var tamanho = cabMenu.height();
if ($(window).scrollTop() > tamanhoCabCima){
cabCima.css('margin-top',tamanho+'px');
cabMenu.addClass('menu_fixado');
}
else{
cabMenu.removeClass('menu_fixado');
cabCima.css('margin-top','0');
}
}
$(document).ready(function() {
const goToSearchBar = document.querySelector('.ir-pesquisa')
goToSearchBar.addEventListener('click', () => document.querySelector('#gsc-i-id1').focus())
fixDiv();
new WOW().init();
if($('[data-toggle="tooltip"]').length > 0){
$('[data-toggle="tooltip"]').tooltip()
}
$('.gallery').magnificPopup({
delegate: 'a',
type: 'image',
removalDelay: 300,
mainClass: 'mfp-fade',
gallery: {
enabled: true
}
});
$('.gallery2').magnificPopup({
delegate: 'a',
type: 'image',
removalDelay: 300,
mainClass: 'mfp-fade',
gallery: {
enabled: true
}
});
$('.gallery3').magnificPopup({
delegate: 'a',
type: 'image',
removalDelay: 300,
mainClass: 'mfp-fade',
gallery: {
enabled: true
}
});
$('.gallery_single').magnificPopup({
delegate: 'a',
type: 'image',
removalDelay: 300,
mainClass: 'mfp-fade',
gallery: {
enabled: false
}
});
});
$(window).scroll(function(e) {
fixDiv();
});;
</script>]]>
|
1829
| <![CDATA[<script>
function mudaFonte(padrao){
if(padrao == '+'){
$(".txtacess").each(function() {
tam = parseInt($(this).css('font-size').substr(0,2));
if(tam <= 20){
tam = tam + 2;
$(this).css('font-size',tam+'px');
}
$('.item_portal.txtacess').css("width", "32%");
$('.item_portal.txtacess').css("min-height", "250px");
if($( window ).width()< 768){
$('.item_portal.txtacess').css("width", "100%");
$('.item_portal.txtacess').css("min-height", "250px");
}
});
$(".txtacess p").each(function() {
tam = parseInt($(this).css('font-size').substr(0,2));
if(tam <= 21){
tam = tam + 2;
$(this).css('font-size',tam+'px');
}
});
$(".txtacess a").each(function() {
tam = parseInt($(this).css('font-size').substr(0,2));
if(tam <= 21){
tam = tam + 2;
$(this).css('font-size',tam+'px');
}
});
}
else if(padrao == '-'){
$(".txtacess").each(function() {
tam = parseInt($(this).css('font-size').substr(0,2));
if(tam >= 12){
tam = tam - 2;
$(this).css('font-size',tam+'px');
}
});
$(".txtacess p").each(function() {
tam = parseInt($(this).css('font-size').substr(0,2));
if(tam >= 12){
tam = tam - 2;
$(this).css('font-size',tam+'px');
}
});
$(".txtacess a").each(function() {
tam = parseInt($(this).css('font-size').substr(0,2));
if(tam >= 12){
tam = tam - 2;
$(this).css('font-size',tam+'px');
}
});
}
else if(padrao == '+-'){
$(".txtacess").each(function() {
$(this).css("font-size", "");
});
$(".txtacess p").each(function() {
$(this).css("font-size", "");
});
$(".txtacess a").each(function() {
$(this).css("font-size", "");
});
if($( window ).width()> 1299){
$('.obras_albuns_index .box1').css("min-height", "320px");
$('.obras_albuns_index .box2').css("min-height", "320px");
}
if($( window ).width()> 992){
$('.m-r-divs div').css("float", "left");
}
$('.item_portal.txtacess').css("width", "");
$('.item_portal.txtacess').css("min-height", "");
$('.mapa_site_cab').css("width", "auto");
}
}
$(window).load(function() {
$('.gsc-input').attr('placeholder', 'Buscar no site');
});
</script>]]>
|