function func_ancora(aid){ var aTag = $("a[name='"+ aid +"']"); $('html,body').animate({scrollTop: aTag.offset().top-60},'slow'); } $(document).ready(function(){ AOS.init({ easing: 'ease-in-out-sine' }); }); $(document).ready(function(){ $(".conteudo_text").fitVids(); }); $(document).ready(function(){ $(".conteudo_not").fitVids(); }); $(document).ready(function(){ $(".conteudo_txt").fitVids(); }); $(document).ready(function(){ $('.lazy').lazy({ combined: true, delay: 5000, afterLoad: function(element) { element.css('background-image', 'url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)'); } }); }); $(document).ready(function(){ $('.lazydiv').lazy({ combined: true, delay: 5000 }); }); $(document).ready(function(){ $('.slider-banner').slick({ slidesToShow:1, autoplay:true, autoplaySpeed:5000, waitForAnimate:false, adaptiveHeight: true, dots:true, slidesToScroll:1, swipeToSlide:true });}); $(document).ready(function(){ $('.slider-links').slick({ slidesToShow:3, autoplay:true, autoplaySpeed:4000, dots:false, slidesToScroll:1, swipeToSlide:true, responsive: [{ breakpoint: 1000,settings: { slidesToShow:3 }}, { breakpoint: 800, settings: { slidesToShow: 2 }},{ breakpoint: 480, settings: { slidesToShow: 1 }}]});}); $(document).ready(function(){ $('.slider-produtos').slick({ slidesToShow:5, autoplay:true, autoplaySpeed:4500, dots:false, waitForAnimate:false, adaptiveHeight: true, slidesToScroll:1, swipeToSlide:true, responsive: [{ breakpoint: 1100,settings: { slidesToShow: 4 }},{ breakpoint: 900, settings: { slidesToShow: 3 }},{ breakpoint: 650, settings: { slidesToShow: 2 }},{ breakpoint: 480, settings: { arrows: false, slidesToShow: 1 }}]});}); $(document).ready(function(){ $('.slider-marcas').slick({ slidesToShow:5, autoplay:true, autoplaySpeed:4500, arrows:false, dots:false, waitForAnimate:false, adaptiveHeight: true, slidesToScroll:1, swipeToSlide:true, responsive: [{ breakpoint: 1100,settings: { slidesToShow: 4 }},{ breakpoint: 900, settings: { slidesToShow: 3 }},{ breakpoint: 650, settings: { slidesToShow: 2 }},{ breakpoint: 480, settings: { arrows: false, slidesToShow: 2 }}]});}); $(document).ready(function(){ $('#carregando').fadeOut(600); $('#carregando').fadeOut(610); $('#layout').css("opacity","1"); $(this).scrollTop(0); }); window.onbeforeunload=function(){ window.scrollTo(0,0); }; $('a.compartilha').click(function(e){ e.preventDefault(); var $link = $(this); var href = $link.attr('href'); var network = $link.attr('data-redesocial'); var networks = { facebook : { width : 600, height : 300 }, twitter : { width : 600, height : 254 }, google : { width : 515, height : 490 }, pinterest : { width : 750, height : 400 }, linkedin : { width : 600, height : 473 }}; var popup = function(network){ var options = 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,fullscreen=no,top=50,left=50,'; window.open(href, '_blank', options+'height='+networks[network].height+',width='+networks[network].width); }; popup(network); }); $(document).ready(function(){ $('.owl-carousel').owlCarousel({ loop:true, margin:5, responsiveClass:true, nav:true, autoWidth:true, navText : ["",""] }) }); $("[data-fancybox]").fancybox({ protect: true, hash: false, buttons : ['zoom', 'share', 'fullScreen', 'thumbs', 'close'], loop: true, thumbs : { autoStart : false }, lang: "br", i18n: { br: { CLOSE: "Fechar", NEXT: "Próximo", PREV: "Anterior", ERROR: "The requested content cannot be loaded.
Please try again later.", PLAY_START: "Iniciar Slideshow", PLAY_STOP: "Parar Slideshow", FULL_SCREEN: "Tela Cheia", THUMBS: "Miniaturas", DOWNLOAD: "Download", SHARE: "Compartilhar", ZOOM: "Zoom" }}}); $(document).ready(function(){ $('.prod_s_marca').selectpicker(); $('.prod_s_ordem').selectpicker(); $('select.prod_s_marca').on('change', function(){ alert($(this).val()); }); $('select.prod_s_ordem').on('change', function(){ alert($(this).val()); }); }); $(document).ready(function(){ $('div.navbar-header button').on('click', function(){ $(window).scrollTop($('nav').offset().top); }); });