footer-bd1521a8-1470810984.min.js 6.58 KB
(function(){var container,button,menu;container=document.getElementById('site-navigation');if(!container){return}
button=container.getElementsByTagName('button')[0];if('undefined'===typeof button){return}
menu=container.getElementsByTagName('ul')[0];if('undefined'===typeof menu){button.style.display='none';return}
menu.setAttribute('aria-expanded','false');if(-1===menu.className.indexOf('nav-menu')){menu.className+=' nav-menu'}
button.onclick=function(){if(-1!==container.className.indexOf('toggled')){container.className=container.className.replace(' toggled','');button.setAttribute('aria-expanded','false');menu.setAttribute('aria-expanded','false')}else{container.className+=' toggled';button.setAttribute('aria-expanded','true');menu.setAttribute('aria-expanded','true')}};jQuery('.main-navigation, .secondary-navigation').find('a').on('focus.storefront blur.storefront',function(){jQuery(this).parents().toggleClass('focus')});jQuery(window).load(function(){jQuery('.site-header-cart').find('a').on('focus.storefront blur.storefront',function(){jQuery(this).parents().toggleClass('focus')})})})();

(function(){var is_webkit=navigator.userAgent.toLowerCase().indexOf('webkit')>-1,is_opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1,is_ie=navigator.userAgent.toLowerCase().indexOf('msie')>-1;if((is_webkit||is_opera||is_ie)&&document.getElementById&&window.addEventListener){window.addEventListener('hashchange',function(){var element=document.getElementById(location.hash.substring(1));if(element){if(!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)){element.tabIndex=-1}
element.focus()}},!1)}})();

jQuery(function($){if(typeof wc_add_to_cart_params==='undefined')
return !1;$(document).on('click','.variations_form .single_add_to_cart_button',function(e){e.preventDefault();$variation_form=$(this).closest('.variations_form');var var_id=$variation_form.find('input[name=variation_id]').val();var product_id=$variation_form.find('input[name=product_id]').val();var quantity=$variation_form.find('input[name=quantity]').val();$('.ajaxerrors').remove();var item={},check=!0;variations=$variation_form.find('select[name^=attribute]');if(!variations.length){variations=$variation_form.find('[name^=attribute]:checked')}
if(!variations.length){variations=$variation_form.find('input[name^=attribute]')}
variations.each(function(){var $this=$(this),attributeName=$this.attr('name'),attributevalue=$this.val(),index,attributeTaxName;$this.removeClass('error');if(attributevalue.length===0){index=attributeName.lastIndexOf('_');attributeTaxName=attributeName.substring(index+1);$this.addClass('required error').before('<div class="ajaxerrors"><p>Please select '+attributeTaxName+'</p></div>')
check=!1}else{item[attributeName]=attributevalue}});if(!check){return !1}
var $thisbutton=$(this);if($thisbutton.is('.variations_form .single_add_to_cart_button')){$thisbutton.removeClass('added');$thisbutton.addClass('loading');var data={action:'woocommerce_add_to_cart_variable_rc',product_id:product_id,quantity:quantity,variation_id:var_id,variation:item};$('body').trigger('adding_to_cart',[$thisbutton,data]);$.post(wc_add_to_cart_params.ajax_url,data,function(response){if(!response)
return;var this_page=window.location.toString();this_page=this_page.replace('add-to-cart','added-to-cart');if(response.error&&response.product_url){window.location=response.product_url;return}
if(wc_add_to_cart_params.cart_redirect_after_add==='yes'){window.location=wc_add_to_cart_params.cart_url;return}else{$thisbutton.removeClass('loading');var fragments=response.fragments;var cart_hash=response.cart_hash;if(fragments){$.each(fragments,function(key){$(key).addClass('updating')})}
$('.shop_table.cart, .updating, .cart_totals').fadeTo('400','0.6').block({message:null,overlayCSS:{opacity:0.6}});$thisbutton.addClass('added');if(!wc_add_to_cart_params.is_cart&&$thisbutton.parent().find('.added_to_cart').size()===0){$thisbutton.after(' <a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+'</a>')}
if(fragments){$.each(fragments,function(key,value){$(key).replaceWith(value)})}
$('.widget_shopping_cart, .updating').stop(!0).css('opacity','1').unblock();$('.shop_table.cart').load(this_page+' .shop_table.cart:eq(0) > *',function(){$('.shop_table.cart').stop(!0).css('opacity','1').unblock();$(document.body).trigger('cart_page_refreshed')});$('.cart_totals').load(this_page+' .cart_totals:eq(0) > *',function(){$('.cart_totals').stop(!0).css('opacity','1').unblock()});$(document.body).trigger('added_to_cart',[fragments,cart_hash,$thisbutton])}});return !1}else{return !0}})});

(function(window,document){'use strict';var supportedBrowser=!1,loaded=!1;if(document.querySelector){if(window.addEventListener){supportedBrowser=!0}}
window.wp=window.wp||{};if(!!window.wp.receiveEmbedMessage){return}
window.wp.receiveEmbedMessage=function(e){var data=e.data;if(!(data.secret||data.message||data.value)){return}
if(/[^a-zA-Z0-9]/.test(data.secret)){return}
var iframes=document.querySelectorAll('iframe[data-secret="'+data.secret+'"]'),blockquotes=document.querySelectorAll('blockquote[data-secret="'+data.secret+'"]'),i,source,height,sourceURL,targetURL;for(i=0;i<blockquotes.length;i++){blockquotes[i].style.display='none'}
for(i=0;i<iframes.length;i++){source=iframes[i];if(e.source!==source.contentWindow){continue}
source.removeAttribute('style');if('height'===data.message){height=parseInt(data.value,10);if(height>1000){height=1000}else if(~~height<200){height=200}
source.height=height}
if('link'===data.message){sourceURL=document.createElement('a');targetURL=document.createElement('a');sourceURL.href=source.getAttribute('src');targetURL.href=data.value;if(targetURL.host===sourceURL.host){if(document.activeElement===source){window.top.location.href=data.value}}}}};function onLoad(){if(loaded){return}
loaded=!0;var isIE10=-1!==navigator.appVersion.indexOf('MSIE 10'),isIE11=!!navigator.userAgent.match(/Trident.*rv:11\./ ),iframes=document.querySelectorAll('iframe.wp-embedded-content'),iframeClone,i,source,secret;for(i=0;i<iframes.length;i++){source=iframes[i];if(source.getAttribute('data-secret')){continue}
secret=Math.random().toString(36).substr(2,10);source.src+='#?secret='+secret;source.setAttribute('data-secret',secret);if((isIE10||isIE11)){iframeClone=source.cloneNode(!0);iframeClone.removeAttribute('security');source.parentNode.replaceChild(iframeClone,source)}}}
if(supportedBrowser){window.addEventListener('message',window.wp.receiveEmbedMessage,!1);document.addEventListener('DOMContentLoaded',onLoad,!1);window.addEventListener('load',onLoad,!1)}})(window,document);