var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /* Bones Scripts File Author: Eddie Machado This file should contain any js scripts you want to add to the site. Instead of calling it in the header or throwing it inside wp_head() this file will be called automatically in the footer so as not to slow the page load. */ // IE8 ployfill for GetComputed Style (for Responsive Script below) if (!window.getComputedStyle) { window.getComputedStyle = function(el, pseudo) { this.el = el; this.getPropertyValue = function(prop) { var re = /(\-([a-z]){1})/g; if (prop == 'float') prop = 'styleFloat'; if (re.test(prop)) { prop = prop.replace(re, function () { return arguments[2].toUpperCase(); }); } return el.currentStyle[prop] ? el.currentStyle[prop] : null; } return this; } } // as the page loads, call these scripts jQuery(document).ready(function($) { /* Responsive jQuery is a tricky thing. There's a bunch of different ways to handle it, so be sure to research and find the one that works for you best. */ /* getting viewport width */ var responsive_viewport = $(window).width(); /* if is below 481px */ if (responsive_viewport < 481) { } /* end smallest screen */ /* if is larger than 481px */ if (responsive_viewport > 481) { } /* end larger than 481px */ /* if is above or equal to 768px */ if (responsive_viewport >= 768) { /* load gravatars */ $('.comment img[data-gravatar]').each(function(){ $(this).attr('src',$(this).attr('data-gravatar')); }); } /* off the bat large screen actions */ if (responsive_viewport > 1030) { } // add all your scripts here }); /* end of as page load scripts */ /*! A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto. MIT License. */ (function(w){ // This fix addresses an iOS bug, so return early if the UA claims it's something else. if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1 ) ){ return; } var doc = w.document; if( !doc.querySelector ){ return; } var meta = doc.querySelector( "meta[name=viewport]" ), initialContent = meta && meta.getAttribute( "content" ), disabledZoom = initialContent + ",maximum-scale=1", enabledZoom = initialContent + ",maximum-scale=10", enabled = true, x, y, z, aig; if( !meta ){ return; } function restoreZoom(){ meta.setAttribute( "content", enabledZoom ); enabled = true; } function disableZoom(){ meta.setAttribute( "content", disabledZoom ); enabled = false; } function checkTilt( e ){ aig = e.accelerationIncludingGravity; x = Math.abs( aig.x ); y = Math.abs( aig.y ); z = Math.abs( aig.z ); // If portrait orientation and in one of the danger zones if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){ if( enabled ){ disableZoom(); } } else if( !enabled ){ restoreZoom(); } } w.addEventListener( "orientationchange", restoreZoom, false ); w.addEventListener( "devicemotion", checkTilt, false ); })( this ); /* AHDESIGNSTUDIO */ //jQuery.noConflict(); jQuery(document).ready(function() { setupSlideShow(); setupNavigation(); setupProdutos(); jQuery('body').restive({ breakpoints: ['10000'], classes: ['nb'], turbo_classes: 'is_mobile=mobi,is_phone=phone,is_tablet=tablet,is_landscape=landscape' }); $('body').scrollspy({ target: '.second_nav', offset:$(".second_nav").height() }) }); function setupNavigation(){ function scrollToTop(){jQuery('html,body').animate({scrollTop:0},'slow')} function scrollToAnchor(aid){ var aTag = jQuery("a"+aid); jQuery('html,body').animate({scrollTop: aTag.offset().top},'slow'); } //menu click slide to anchor jQuery('header a').click(function(e){ e.preventDefault(); dest = jQuery(this).attr('href'); (dest.indexOf('http://')>-1) ? scrollToTop() : scrollToAnchor(dest); }); function showHideFixedNav(){ $sn=jQuery('.second_nav'); if(jQuery(window).scrollTop()>200) { $sn.fadeIn(); } else { $sn.stop(true).fadeOut(); } } showHideFixedNav(); //if scrolling, show fixed menu var timeout; jQuery(window).scroll(function(){ clearTimeout(timeout); var timeout=setTimeout(showHideFixedNav,300); }); } function setupSlideShow(){ jQuery('#introduction').css('position','fixed'); jQuery("#sections").css('position','absolute'); jQuery("#sections").css({'width':'100%'}) jQuery( window ).resize(resizeSlideShowImages); resizeSlideShowImages(); jQuery('#home_slide_container .slide').imagesLoaded( function() { setTimeout(_scaleCropAndCenter, 200); }); jQuery('.flexslider').flexslider({ animation: "slide" }); } function resizeSlideShowImages() { setTimeout(function(){ jQuery("#sections").css('top',jQuery('#introduction').height()); },100); jQuery("#sections").css('top',jQuery('#introduction').height()); var w=jQuery(window).width(); var h=jQuery(window).height(); var windowRatio=w/h; jQuery('#home_slide_container').width(w); jQuery('#home_slide_container').height(h); jQuery('#home_slide_container .slide').height(h); $('body').scrollspy("refresh") _scaleCropAndCenter(); } function _scaleCropAndCenter(){ //scale and center image in cropcontainer var w=jQuery(window).width(); var h=jQuery(window).height(); var windowRatio=w/h; $slides=jQuery('#home_slide_container .slide'); $slideimgs=jQuery('#home_slide_container .slide img'); if($slideimgs.height()>0) { var imgRatio=$slideimgs.width()/$slideimgs.height(); if(imgRatio > windowRatio) { $slideimgs.css('height',h); $slideimgs.css('width',h*imgRatio); }else{ $slideimgs.css('width',w); $slideimgs.css('height',w/imgRatio); } $slideimgs.css('margin-top',($slideimgs.height()-h)/-2); $slideimgs.css('margin-left',($slideimgs.width()-w)/-2); } } function setupProdutos(){ //hackfix: old mac firefox was showing opened detail pane on reload setTimeout(function(){ jQuery(".single-product .detail").slideUp(1); },200); //on click show extra content jQuery('.produto_saiba_mais').click(function(){ jQuery(this).closest(".single-product").find('.detail').slideToggle(400); setTimeout(function(){$('body').scrollspy("refresh")},450); }) //paint inner links in parent bordercolor color $(".single-product").each(function(){ var $t=jQuery(this) $t.find("a").css("color",$t.data("mycolor")) }) } } /* FILE ARCHIVED ON 14:26:29 Jan 16, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 20:02:54 Sep 20, 2023. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 269.047 exclusion.robots: 0.075 exclusion.robots.policy: 0.063 cdx.remote: 0.064 esindex: 0.012 LoadShardBlock: 238.051 (3) PetaboxLoader3.resolve: 274.992 (4) PetaboxLoader3.datanode: 50.295 (4) load_resource: 107.501 */