// Depois da página carregada
jQuery(document).ready(function() {
// -------------------------------------------------------------------------
// Abre-abre
jQuery(".abre-abre").click(function () {
// check the visibility of the next element in the DOM
if (jQuery(this).next().is(":hidden")) {
jQuery(this).next().slideDown("fast");
jQuery(this).children('span.abre').html('–');
return false; // slide it down
} else {
jQuery(this).next().slideUp("fast");
jQuery(this).children('span.abre').html('+');
return false;
}
});
// -------------------------------------------------------------------------
// Abre-abre Menu Principal
jQuery(".abre-menu-principal").click(function () {
// check the visibility of the next element in the DOM
if (jQuery('#seletor-menu-principal ul').is(":hidden")) {
jQuery('#seletor-menu-principal ul').slideDown("fast");
return false; // slide it down
} else {
jQuery('#seletor-menu-principal ul').slideUp("fast");
return false;
}
});
// -------------------------------------------------------------------------
// Abre-abre Menu Mobile
jQuery(".abre-menu-mobile").click(function () {
// check the visibility of the next element in the DOM
if (jQuery('#seletor-menu-mobile').is(":hidden")) {
jQuery('#seletor-menu-mobile').slideDown("fast");
return false; // slide it down
} else {
jQuery('#seletor-menu-mobile').slideUp("fast");
return false;
}
});
// -------------------------------------------------------------------------
// Abre busca
jQuery(".menu-busca, .menu-busca-2, #menu-principal-personalizado-busca").click(function () {
if (jQuery('#barra-busca').is(":hidden")) {
jQuery('#barra-busca').slideDown("fast");
return false; // slide it down
} else {
jQuery('#barra-busca').slideUp("fast");
return false;
}
});
// Erros no wpcf7
jQuery(".wpcf7-text.campo").click(function () {
jQuery(this).next().fadeOut('fast');
jQuery(this).removeClass('wpcf7-not-valid');
});
// Barras Menu de Páginas
// Institucional
/*jQuery(".menu-XXXXXXXXXXXXX, .menu-XXXXXXXXXXXXX-2").click(function () {
jQuery('.menu-de-paginas').slideUp("fast");
if (jQuery('#barra-menu-de-paginas').is(":hidden")) {
jQuery('#barra-menu-de-paginas').slideDown("fast");
return false; // slide it down
} else {
jQuery('#barra-menu-de-paginas').slideUp("fast");
return false;
}
});*/
// Exemplo de prevent default
/*
jQuery(".scroll").on('click', function (event) {
event.preventDefault();
jQuery("html,body").animate({
scrollTop: jQuery(this.hash).offset().top
}, 1000);
});*/
// -------------------------------------------------------------------------
// a a, a mouse
jQuery('.slide-mais').on('click mouseenter', function() {
jQuery('.slide-legenda').toggleClass('dentro');
}).on('click mouseleave', function() {
jQuery('.slide-legenda').toggleClass('dentro');
});
// -------------------------------------------------------------------------
// Bloqueando buscas vazias
(function( $ ) {
$.fn.preventEmptySubmit = function( options ) {
var settings = {
inputselector: "#s",
msg : "Don’t waste your time with an empty search!"
};
if ( options ) {
$.extend( settings, options );
};
this.submit( function() {
var s = $( this ).find( settings.inputselector );
if ( ! s.val() ) {
//alert( settings.msg );
//s.focus();
$('.busca-vazia').fadeIn('Fast');
return false;
}
return true;
});
return this;
};
})( jQuery );
jQuery( "#form-de-busca" ).preventEmptySubmit();
// Esconde o aviso de busca vazia
jQuery('.busca-vazia').hover(function() {
jQuery(this).fadeOut("fast");
});
// -------------------------------------------------------------------------
// Smooth Scroll
// -------------------------------------------------------------------------
// Colorbox
jQuery("a.colorbox, a.zoom").colorbox({
//rel: 'galeria',
current: '{current} de {total}',
previous: 'Anterior',
next: 'Próximo',
close: 'Fechar',
xhrError: 'Este conteúdo apresentou uma falha em seu carregamento!',
imgError: 'Esta imagem apresentou um erro!',
maxWidth: '95%',
maxHeight: '95%',
returnFocus: false
});
// Redimensionador
var resizeTimer;
function resizeColorBox()
{
if (resizeTimer) clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
if (jQuery('#cboxOverlay').is(':visible')) {
jQuery.colorbox.load(true);
}
}, 300);
}
// Redimensiona quando muda a orientação
jQuery(window).resize(resizeColorBox);
window.addEventListener("orientationchange", resizeColorBox, false);
// -------------------------------------------------------------------------
// Rolagem Suave
jQuery(window).scroll(function(){
if (jQuery(this).scrollTop() > 100) {
jQuery('.rolagem-suave').fadeIn();
} else {
jQuery('.rolagem-suave').fadeOut();
}
});
jQuery('.rolagem-suave').click(function(){
jQuery("html, body").animate({ scrollTop: 0 }, 300);
return false;
});
// -------------------------------------------------------------------------
// Select2
// -------------------------------------------------------------------------
// Tooltipster
// -------------------------------------------------------------------------
// PWSTabs
// -------------------------------------------------------------------------
// Remodal
// -------------------------------------------------------------------------
// Owl Carousel
jQuery(window).load(function(){
// Slide único
jQuery('.owl-slider').owlCarousel({
items:1,
autoplayTimeout:5000,
autoplayHoverPause:true,
navText:[' ', ' '], nav:'1',
loop:1,
dots:'1',
margin:0,
autoHeight:true, //<-------OPTION
//<------OPTION
});
// Slide único
jQuery('.owl-animado').owlCarousel({
items:1,
autoplayTimeout:5000,
autoplayHoverPause:true,
navText:[' ', ' '], nav:'1',
loop:1,
dots:'1',
margin:0,
autoHeight:true, //<-------OPTION
animateOut:'zoomOut', //<-------OPTION
animateIn:'zoomIn', //<-------OPTION
items:1,
margin:0,
stagePadding:0,
smartSpeed:450
});
// Básico/Responsivo/Nav/Loop
jQuery('.owl-basico').owlCarousel({
autoplayTimeout:5000,
autoplayHoverPause:true,
nav:'1',
navText:[' ', ' '], center:'0',
loop:1,
dots:'1',
margin:10,
autoHeight:true,
responsiveClass:true,
responsive:{
0:{
items:1,
nav:'1'
},
767:{
items:3,
nav:'1'
},
980:{
items:3,
nav:'1',
loop:1 },
1279:{
items:5,
nav:'1',
loop:1 }
}
});
});
// -------------------------------------------------------------------------
// Masonry
// Carrega o script
// -------------------------------------------------------------------------
// Supersized
// Carrega e inicia o script
// -------------------------------------------------------------------------
// Menu principal do site fixo
// Para cabecalhos quando não houver faixa decorativa ativada (t-banners)
if (jQuery('.cabecalho-fixo').length) {
jQuery(window).scroll(function() {
var currentScroll = jQuery(window).scrollTop();
if (currentScroll >= 1) {
jQuery('.cabecalho-fixo').css({
'box-shadow': '0 10px 10px rgba(0,0,0,0.15)'
});
jQuery('.cabecalho-fixo img').css({
'transform': 'scale(0.8, 0.8)',
'transition-property': 'transform',
'transform-origin': 'top left',
'transition-duration': '0.2s',
'transition-timing-function': 'ease-in-out',
});
jQuery('#cabecalho .logo').css({
'margin': '5px 0 5px 0',
'height': '43px'
});
jQuery('#menu-principal').css({
'margin': '8px 0 0 0',
});
jQuery('.abre-menu-mobile').css({
'margin-top': '6px',
'margin-bottom': '0'
});
jQuery('#seletor-menu-principal').css({
'margin-top': '2px',
'padding-bottom': '10px',
});
} else {
jQuery('#seletor-menu-principal, .cabecalho-fixo, .cabecalho-fixo img, #cabecalho .logo, #menu-principal, .abre-menu-mobile').removeAttr('style');
}
});
}
}); // Fim do document.ready
// -------------------------------------------------------------------------
// Scroll Reveal
// -------------------------------------------------------------------------
// Masonry
// Trabalha fora do document.ready de propósito para redimensionamento de janelas
Previsão do TempoSão Sepé/RS
Categorias de Notícias
Patrocínios
Onde Comprar?
Você encontra os produtos da Arrozeira Sepeense diretamente com nossos representantes credenciados, em diversos estados do Brasil.
Representantes
Atendimento ao Consumidor
Dúvidas, sugestões ou reclamações sobre nossos produtos? Deixe uma mensagem ou ligue para gente!
ar o SAC
Av. Afonso Gonçalves de Faria, 49
São Sepé, Rio Grande do Sul
97340-000
© Arrozeira Sepeense — Todos os direitos reservados.