jQuery(document).ready(function(){
'use strict';
var howl;
jQuery("a[class^=audioplay-]").each(function(){
jQuery(this).click(function(){
if(howl){
howl.stop();
}
var filename=jQuery(this).attr('class').replace('audioplay-', '').replace(/_/g, '/');
howl=new Howl({src: ['/wp-content/uploads/' + filename + '.mp3']});
howl.play();
});
});
});
if(window.location.search.indexOf('onboarding=1')!==-1){
document.querySelectorAll('.onboarding-link').forEach(function(el){
if(el.href){
el.href=el.href + '?onboarding=1';
}
var anchor=el.querySelector('a');
if(anchor){
anchor.href=anchor.href + '?onboarding=1';
}});
}else{
jQuery('.onboarding-show').hide();
};
jQuery(document).ready(function(){
'use strict';
function onlyShowDetectedOs(){
var detectedOs='win';
if(navigator.platform.indexOf('Win')!==-1){
detectedOs='win';
}
if(navigator.platform.indexOf('Mac')!==-1){
detectedOs='mac';
}
if(navigator.platform.indexOf('X11')!==-1){
detectedOs='lin';
}
if(navigator.platform.indexOf('Linux')!==-1){
detectedOs='lin';
}
var os=window.os||detectedOs;
jQuery('.is-'+os).css('display', 'inline');
if(os!=='mac'){
jQuery('.is-pc').css('display', 'inline-block');
}}
onlyShowDetectedOs();
});
var _rollbarConfig={
checkIgnore: function(isUncaught, args, payload){
var ua=navigator.userAgent;
if(/Trident|MSIE/.test(ua)){
return true;
}
return false;
},
};
jQuery(document).ready(function($){function get_cookie(name){if(typeof Cookies!="undefined"){return Cookies.get(name)}if(typeof $.cookie!="undefined"){return $.cookie(name)}return null}function remove_cookie(name,cookie_path){if(typeof Cookies!="undefined"){return Cookies.remove(name,{path:cookie_path})}if(typeof $.cookie!="undefined"){return $.removeCookie(name,{path:cookie_path})}return false}try{var supports_html5_storage="sessionStorage"in window&&window["sessionStorage"]!==null;if(supports_html5_storage&&get_cookie("aelia_user_logged_in")){var fragment_name="wc_fragments";if(typeof wc_cart_fragments_params!=="undefined"&&wc_cart_fragments_params&&wc_cart_fragments_params.fragment_name){fragment_name=wc_cart_fragments_params.fragment_name}console.log("User logged in, refreshing cart fragments");sessionStorage.removeItem(fragment_name,"");var cookie_path=get_cookie("aelia_user_logged_in");remove_cookie("aelia_user_logged_in",cookie_path)}}catch(exception){var error_msg="Aelia - Exception occurred while accessing window.sessionStorage. "+"This could be caused by the browser disabling cookies. "+"COOKIES MUST BE ENABLED for the site to work correctly. "+"Exception details below.";console.log(error_msg);console.log(exception)}});