footer-378d2b26-1476934915.min.js
16.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
(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);
/* admin ajax form submit */
;
var sharing_js_options;if(sharing_js_options&&sharing_js_options.counts){var WPCOMSharing={done_urls:[],get_counts:function(){var url,requests,id,service,service_request;if('undefined'===typeof WPCOM_sharing_counts){return}
for(url in WPCOM_sharing_counts){id=WPCOM_sharing_counts[url];if('undefined'!==typeof WPCOMSharing.done_urls[id]){continue}
requests={linkedin:['https://www.linkedin.com/countserv/count/share?format=jsonp&callback=updateLinkedInCount&url='+encodeURIComponent(url)],pinterest:[window.location.protocol+'//api.pinterest.com/v1/urls/count.json?callback=WPCOMSharing.update_pinterest_count&url='+encodeURIComponent(url)],facebook:[window.location.protocol+'//graph.facebook.com/?callback=WPCOMSharing.update_facebook_count&ids='+encodeURIComponent(url)]};for(service in requests){if(!jQuery('a[data-shared=sharing-'+service+'-'+id+']').length){continue}
while((service_request=requests[service].pop())){jQuery.getScript(service_request)}
WPCOMSharing.bump_sharing_count_stat(service);}
WPCOMSharing.done_urls[id]=!0}},get_permalink:function(url){if('https:'===window.location.protocol){url=url.replace(/^http:\/\//i,'https://')}else{url=url.replace(/^https:\/\//i,'http://')}
return url},update_facebook_count:function(data){var url,permalink;if(!data){return}
for(url in data){if(!data.hasOwnProperty(url)||!data[url].shares){continue}
permalink=WPCOMSharing.get_permalink(url);if(!(permalink in WPCOM_sharing_counts)){continue}
WPCOMSharing.inject_share_count('sharing-facebook-'+WPCOM_sharing_counts[permalink],data[url].shares)}},update_linkedin_count:function(data){if('undefined'!==typeof data.count&&(data.count*1)>0){WPCOMSharing.inject_share_count('sharing-linkedin-'+WPCOM_sharing_counts[data.url],data.count)}},update_pinterest_count:function(data){if('undefined'!==typeof data.count&&(data.count*1)>0){WPCOMSharing.inject_share_count('sharing-pinterest-'+WPCOM_sharing_counts[data.url],data.count)}},inject_share_count:function(id,count){var $share=jQuery('a[data-shared='+id+'] > span');$share.find('.share-count').remove();$share.append('<span class="share-count">'+WPCOMSharing.format_count(count)+'</span>')},format_count:function(count){if(count<1000){return count}
if(count>=1000&&count<10000){return String(count).substring(0,1)+'K+'}
return '10K+'},bump_sharing_count_stat:function(service){new Image().src=document.location.protocol+'//pixel.wp.com/g.gif?v=wpcom-no-pv&x_sharing-count-request='+service+'&r='+Math.random()}}}
var updateLinkedInCount=function(data){WPCOMSharing.update_linkedin_count(data)};(function($){var $body,$sharing_email;$.fn.extend({share_is_email:function(){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(this.val())}});$body=$(document.body).on('post-load',WPCOMSharing_do);$(document).on('ready',function(){$sharing_email=$('#sharing_email');$body.append($sharing_email);WPCOMSharing_do()});function WPCOMSharing_do(){var $more_sharing_buttons;if('undefined'!==typeof WPCOMSharing){WPCOMSharing.get_counts()}
$more_sharing_buttons=$('.sharedaddy a.sharing-anchor');$more_sharing_buttons.click(function(){return !1});$('.sharedaddy a').each(function(){if($(this).attr('href')&&$(this).attr('href').indexOf('share=')!==-1){$(this).attr('href',$(this).attr('href')+'&nb=1')}});$more_sharing_buttons.on('click',function(){var $more_sharing_button=$(this),$more_sharing_pane=$more_sharing_button.parents('div:first').find('.inner');if($more_sharing_pane.is(':animated')){return}
if(!0===$more_sharing_pane.data('justSlid')){return}
$sharing_email.slideUp(200);$more_sharing_pane.css({left:$more_sharing_button.position().left+'px',top:$more_sharing_button.position().top+$more_sharing_button.height()+3+'px'}).slideToggle(200)});if(document.ontouchstart===undefined){$more_sharing_buttons.hover(function(){var $more_sharing_button=$(this),$more_sharing_pane=$more_sharing_button.parents('div:first').find('.inner'),timer;if(!$more_sharing_pane.is(':animated')){timer=setTimeout(function(){var handler_item_leave,handler_item_enter,handler_original_leave,handler_original_enter,close_it;$sharing_email.slideUp(200);$more_sharing_pane.data('justSlid',!0);$more_sharing_pane.css({left:$more_sharing_button.position().left+'px',top:$more_sharing_button.position().top+$more_sharing_button.height()+3+'px'}).slideDown(200,function(){$more_sharing_button.data('hasoriginal',!0).data('hasitem',!1);setTimeout(function(){$more_sharing_pane.data('justSlid',!1)},300);if($more_sharing_pane.find('.share-google-plus-1').length){return}
$more_sharing_pane.mouseleave(handler_item_leave).mouseenter(handler_item_enter);$more_sharing_button.mouseleave(handler_original_leave).mouseenter(handler_original_enter)});handler_item_leave=function(){$more_sharing_button.data('hasitem',!1);if($more_sharing_button.data('hasoriginal')===!1){var timer=setTimeout(close_it,800);$more_sharing_button.data('timer2',timer)}};handler_item_enter=function(){$more_sharing_button.data('hasitem',!0);clearTimeout($more_sharing_button.data('timer2'))};handler_original_leave=function(){$more_sharing_button.data('hasoriginal',!1);if($more_sharing_button.data('hasitem')===!1){var timer=setTimeout(close_it,800);$more_sharing_button.data('timer2',timer)}};handler_original_enter=function(){$more_sharing_button.data('hasoriginal',!0);clearTimeout($more_sharing_button.data('timer2'))};close_it=function(){$more_sharing_pane.data('justSlid',!0);$more_sharing_pane.slideUp(200,function(){setTimeout(function(){$more_sharing_pane.data('justSlid',!1)},300)});$more_sharing_button.unbind('mouseleave',handler_original_leave).unbind('mouseenter',handler_original_enter);$more_sharing_pane.unbind('mouseleave',handler_item_leave).unbind('mouseenter',handler_item_leave);return !1}},200);$more_sharing_button.data('timer',timer)}},function(){$more_sharing_buttons.each(function(){clearTimeout($(this).data('timer'))});$more_sharing_buttons.data('timer',!1)})}
$(document).click(function(){$more_sharing_buttons.each(function(){clearTimeout($(this).data('timer'))});$more_sharing_buttons.data('timer',!1);$('.sharedaddy .inner').slideUp()});$('.sharedaddy ul').each(function(){if('yep'===$(this).data('has-click-events')){return}
$(this).data('has-click-events','yep');var printUrl=function(uniqueId,urlToPrint){$('body:first').append('<iframe style="position:fixed;top:100;left:100;height:1px;width:1px;border:none;" id="printFrame-'+uniqueId+'" name="printFrame-'+uniqueId+'" src="'+urlToPrint+'" onload="frames[\'printFrame-'+uniqueId+'\'].focus();frames[\'printFrame-'+uniqueId+'\'].print();"></iframe>')};$(this).find('a.share-print').click(function(){var ref=$(this).attr('href'),do_print=function(){if(ref.indexOf('#print')===-1){var uid=new Date().getTime();printUrl(uid,ref)}else{print()}};if($(this).parents('.sharing-hidden').length>0){$(this).parents('.inner').slideUp(0,function(){do_print()})}else{do_print()}
return !1});$(this).find('a.share-press-this').click(function(){var s='';if(window.getSelection){s=window.getSelection()}else if(document.getSelection){s=document.getSelection()}else if(document.selection){s=document.selection.createRange().text}
if(s){$(this).attr('href',$(this).attr('href')+'&sel='+encodeURI(s))}
if(!window.open($(this).attr('href'),'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570')){document.location.href=$(this).attr('href')}
return !1});$('a.share-email',this).on('tap',function(){var url=$(this).attr('href');if($sharing_email.is(':visible')){$sharing_email.slideUp(200)}else{$('.sharedaddy .inner').slideUp();$('#sharing_email .response').remove();$('#sharing_email form').show();$('#sharing_email form input[type=submit]').removeAttr('disabled');$('#sharing_email form a.sharing_cancel').show();if('object'===typeof grecaptcha&&'function'===typeof grecaptcha.reset){grecaptcha.reset()}
$sharing_email.css({left:$(this).offset().left+'px',top:$(this).offset().top+$(this).height()+'px'}).slideDown(200);$('#sharing_email a.sharing_cancel').unbind('click').click(function(){$('#sharing_email .errors').hide();$sharing_email.slideUp(200);$('#sharing_background').fadeOut();return !1});$('#sharing_email input[type=submit]').unbind('click').click(function(){var form=$(this).parents('form');$(this).prop('disabled',!0);form.find('a.sharing_cancel').hide();form.find('img.loading').show();$('#sharing_email .errors').hide();$('#sharing_email .error').removeClass('error');if(!$('#sharing_email input[name=source_email]').share_is_email()){$('#sharing_email input[name=source_email]').addClass('error')}
if(!$('#sharing_email input[name=target_email]').share_is_email()){$('#sharing_email input[name=target_email]').addClass('error')}
if($('#sharing_email .error').length===0){$.ajax({url:url,type:'POST',data:form.serialize(),success:function(response){form.find('img.loading').hide();if(response==='1'||response==='2'||response==='3'){$('#sharing_email .errors-'+response).show();form.find('input[type=submit]').removeAttr('disabled');form.find('a.sharing_cancel').show();if('object'===typeof grecaptcha&&'function'===typeof grecaptcha.reset){grecaptcha.reset()}}
else{$('#sharing_email form').hide();$sharing_email.append(response);$('#sharing_email a.sharing_cancel').click(function(){$sharing_email.slideUp(200);$('#sharing_background').fadeOut();return !1})}}});return !1}
form.find('img.loading').hide();form.find('input[type=submit]').removeAttr('disabled');form.find('a.sharing_cancel').show();$('#sharing_email .errors-1').show();return !1})}
return !1})});$('li.share-email, li.share-custom a.sharing-anchor').addClass('share-service-visible')}})(jQuery);