30 Days of Yoga Archives

by Author


30 Days of Yoga Archives | Yoga With Adriene scrollval ) { if ( jQuery(window).width() >= 1121 && !jQuery(selector).hasClass(“oxy-sticky-header-active”)) { if (jQuery(selector).css(‘position’)!=’absolute’) { jQuery(“body”).css(“margin-top”, jQuery(selector).outerHeight()); } jQuery(selector) .addClass(“oxy-sticky-header-active”) } } else { jQuery(selector) .removeClass(“oxy-sticky-header-fade-in”) .removeClass(“oxy-sticky-header-active”); if (jQuery(selector).css(‘position’)!=’absolute’) { jQuery(“body”).css(“margin-top”, “”); } } scrollTopOld = jQuery(this).scrollTop(); } }) } }); ]]]]]]]]>]]]]]]>]]]]>]]> Yoga With Adriene Logo closearrow-circle-o-downbars .menu-item”, menu).width(); jQuery(“.oxy-pro-menu-open-container > div:first-child, .oxy-pro-menu-off-canvas-container > div:first-child”, menu).width(menuItemWidth); } function oxygen_pro_menu_unset_static_width(menu) { jQuery(“.oxy-pro-menu-container > div:first-child”, menu).width(“”); } // close icon click jQuery(‘body’).on(‘click’, ‘.oxy-pro-menu-mobile-close-icon’, function(e) { var menu = jQuery(this).parents(‘.oxy-pro-menu’); menu.removeClass(‘oxy-pro-menu-open’); jQuery(this).parents(‘.oxy-pro-menu-container’).removeClass(‘oxy-pro-menu-open-container’); jQuery(‘.oxy-nav-menu-prevent-overflow’).removeClass(‘oxy-nav-menu-prevent-overflow’); if (jQuery(this).parent(‘.oxy-pro-menu-container’).hasClass(‘oxy-pro-menu-off-canvas-container’)) { oxygen_offcanvas_menu_run(menu); } oxygen_pro_menu_unset_static_width(menu); }); // dropdown toggle icon click jQuery(‘body’).on( ‘touchstart click’, ‘.oxy-pro-menu-dropdown-links-toggle.oxy-pro-menu-off-canvas-container .menu-item-has-children > a > .oxy-pro-menu-dropdown-icon-click-area,’+ ‘.oxy-pro-menu-dropdown-links-toggle.oxy-pro-menu-open-container .menu-item-has-children > a > .oxy-pro-menu-dropdown-icon-click-area’, function(e) { e.preventDefault(); // fix for iOS false triggering submenu clicks jQuery(‘.sub-menu’).css(‘pointer-events’, ‘none’); setTimeout( function() { jQuery(‘.sub-menu’).css(‘pointer-events’, ‘initial’); }, 500); // workaround to stop click event from triggering after touchstart if (window.oxygenProMenuIconTouched === true) { window.oxygenProMenuIconTouched = false; return; } if (e.type===’touchstart’) { window.oxygenProMenuIconTouched = true; } oxygen_pro_menu_toggle_dropdown(this); } ); function oxygen_pro_menu_toggle_dropdown(trigger) { var duration = jQuery(trigger).parents(‘.oxy-pro-menu-container’).data(‘oxy-pro-menu-dropdown-animation-duration’); jQuery(trigger).closest(‘.menu-item-has-children’).children(‘.sub-menu’).slideToggle({ start: function () { jQuery(this).css({ display: “flex” }) }, duration: duration*1000 }); } // fullscreen menu link click var selector = ‘.oxy-pro-menu-open .menu-item a’; jQuery(‘body’).on(‘click’, selector, function(event){ if (jQuery(event.target).closest(‘.oxy-pro-menu-dropdown-icon-click-area’).length > 0) { // toggle icon clicked, no need to hide the menu return; } else if ((jQuery(this).attr(“href”) === “#” || jQuery(this).closest(“.oxy-pro-menu-container”).data(“entire-parent-toggles-dropdown”)) && jQuery(this).parent().hasClass(‘menu-item-has-children’)) { // empty href don’t lead anywhere, treat it as toggle trigger oxygen_pro_menu_toggle_dropdown(event.target); // keep anchor links behavior as is, and prevent regular links from page reload if (jQuery(this).attr(“href”).indexOf(“#”)!==0) { return false; } } // hide the menu and follow the anchor if (jQuery(this).attr(“href”).indexOf(“#”)===0) { jQuery(‘.oxy-pro-menu-open’).removeClass(‘oxy-pro-menu-open’); jQuery(‘.oxy-pro-menu-open-container’).removeClass(‘oxy-pro-menu-open-container’); jQuery(‘.oxy-nav-menu-prevent-overflow’).removeClass(‘oxy-nav-menu-prevent-overflow’); } }); // off-canvas menu link click var selector = ‘.oxy-pro-menu-off-canvas .menu-item a’; jQuery(‘body’).on(‘click’, selector, function(event){ if (jQuery(event.target).closest(‘.oxy-pro-menu-dropdown-icon-click-area’).length > 0) { // toggle icon clicked, no need to trigger it return; } else if ((jQuery(this).attr(“href”) === “#” || jQuery(this).closest(“.oxy-pro-menu-container”).data(“entire-parent-toggles-dropdown”)) && jQuery(this).parent().hasClass(‘menu-item-has-children’)) { // empty href don’t lead anywhere, treat it as toggle trigger oxygen_pro_menu_toggle_dropdown(event.target); // keep anchor links behavior as is, and prevent regular links from page reload if (jQuery(this).attr(“href”).indexOf(“#”)!==0) { return false; } } }); // off canvas function oxygen_offcanvas_menu_init(menu) { // only init off-canvas animation if trigger icon is visible i.e. mobile menu in action var offCanvasActive = jQuery(menu).siblings(‘.oxy-pro-menu-off-canvas-trigger’).css(‘display’); if (offCanvasActive!==’none’) { var animation = menu.data(‘oxy-pro-menu-off-canvas-animation’); setTimeout(function() {menu.attr(‘data-aos’, animation);}, 10); } else { // remove AOS menu.attr(‘data-aos’, ”); }; } function oxygen_offcanvas_menu_run(menu) { var container = menu.find(“.oxy-pro-menu-container”); if (!container.attr(‘data-aos’)) { // initialize animation setTimeout(function() {oxygen_offcanvas_menu_toggle(menu, container)}, 0); } else { oxygen_offcanvas_menu_toggle(menu, container); } } var oxygen_offcanvas_menu_toggle_in_progress = false; function oxygen_offcanvas_menu_toggle(menu, container) { if (oxygen_offcanvas_menu_toggle_in_progress) { return; } container.toggleClass(‘aos-animate’); if (container.hasClass(‘oxy-pro-menu-off-canvas-container’)) { oxygen_offcanvas_menu_toggle_in_progress = true; var animation = container.data(‘oxy-pro-menu-off-canvas-animation’), timeout = container.data(‘aos-duration’); if (!animation){ timeout = 0; } setTimeout(function() { container.removeClass(‘oxy-pro-menu-off-canvas-container’) menu.removeClass(‘oxy-pro-menu-off-canvas’); oxygen_offcanvas_menu_toggle_in_progress = false; }, timeout); } else { container.addClass(‘oxy-pro-menu-off-canvas-container’); menu.addClass(‘oxy-pro-menu-off-canvas’); oxygen_pro_menu_set_static_width(menu); } } ]]]]]]]]>]]]]]]>]]]]>]]> linkedin facebook pinterest youtube twitter instagram facebook-blank linkedin-blank pinterest youtube twitter instagram “}; /* ]]]]]]]]]]> */ ]]]]]]]]>]]]]]]>]]]]>]]> “}; /* ]]]]]]]]]]> */ ]]]]]]]]>]]]]]]>]]]]>]]>

You may also like