$slide_menu_container.css({
right: '-' + slide_container_width + 'px'
if (is_boxed_layout && et_is_fixed_nav) {
right: page_container_margin + 'px'
left: page_container_margin + 'px'
} // hide the menu after animation completed
$slide_menu_container.css({
$slide_menu_container.css({
}); // add some delay to make sure css animation applied correctly
$slide_menu_container.css({
right: '-' + (slide_container_width - page_container_margin) + 'px'
$slide_menu_container.css({
left: '-' + (slide_container_width - page_container_margin) + 'px'
if (is_boxed_layout && et_is_fixed_nav) {
var left_position = 0 > slide_container_width - page_container_margin * 2 ? Math.abs(slide_container_width - page_container_margin * 2) : '-' + (slide_container_width - page_container_margin * 2);
if (left_position < slide_container_width) {
right: left_position + 'px'
left: left_position + 'px'
$('body').toggleClass('et_pb_slide_menu_active');
$slide_menu_container.toggleClass('et_pb_slide_menu_opened');
} // Scrolling to the correct place on page if Fixed Nav enabled
function et_adjust_woocommerce_checkout_scroll() {
var window_width = parseInt($et_window.width());
if (980 >= window_width) {
var headerHeight = parseInt($('#main-header').innerHeight()); // scroll to the top of checkout form taking into account fixed header height
$('html, body').animate({
scrollTop: $('form.checkout').offset().top - 100 - headerHeight
$('#main-header').on('click', '.et_toggle_slide_menu', function () {
if (et_is_touch_device) {
// open slide menu on swipe left
$et_window.on('swipeleft', function (event) {
var window_width = parseInt($et_window.width()),
swipe_start = parseInt(event.swipestart.coords[0]); // horizontal coordinates of the swipe start
// if swipe started from the right edge of screen then open slide menu
if (30 >= window_width - swipe_start) {
et_toggle_slide_menu('open');
}); // close slide menu on swipe right
$et_window.on('swiperight', function (event) {
if ($('body').hasClass('et_pb_slide_menu_active')) {
et_toggle_slide_menu('close');
$('#page-container').on('click', '.et_toggle_fullscreen_menu', function () {
et_pb_toggle_fullscreen_menu();
function et_pb_toggle_fullscreen_menu() {
var $menu_container = $('.et_header_style_fullscreen .et_slide_in_menu_container'),
top_bar_height = $menu_container.find('.et_slide_menu_top').innerHeight();
$menu_container.toggleClass('et_pb_fullscreen_menu_opened');
$('body').toggleClass('et_pb_fullscreen_menu_active');
et_pb_resize_fullscreen_menu();
if ($menu_container.hasClass('et_pb_fullscreen_menu_opened')) {
$menu_container.addClass('et_pb_fullscreen_menu_animated'); // adjust the padding in fullscreen menu
'padding-top': top_bar_height + 20
$menu_container.removeClass('et_pb_fullscreen_menu_animated');
function et_pb_resize_fullscreen_menu(e) {
if (builder_scripts_utils_utils__WEBPACK_IMPORTED_MODULE_0__["isBuilder"]) {
var $menu = jQuery('.et_header_style_fullscreen .et_slide_in_menu_container.et_pb_fullscreen_menu_opened');
var height = jQuery(top_window).height(); // Account for padding
height -= parseInt($menu.css('padding-top'), 10); // and AdminBar
if ($menu.closest('.admin-bar').length > 0) {
$menu.find('.et_pb_fullscreen_nav_container').css('max-height', height);
$(window).unload(function () {
* Fix the issue with Fullscreen menu, that remains open,
* when back button is clicked in Firefox
if ($('body').hasClass('et_pb_fullscreen_menu_active')) {
$('.et_toggle_fullscreen_menu').trigger('click');
$('.et_pb_fullscreen_nav_container').on('click', 'li.menu-item-has-children > a', function () {
var $this_parent = $(this).closest('li'),
$this_arrow = $this_parent.find('>a .et_mobile_menu_arrow'),
$closest_submenu = $this_parent.find('>ul'),
is_opened_submenu = $this_arrow.hasClass('et_pb_submenu_opened'),
$this_arrow.toggleClass('et_pb_submenu_opened');
$closest_submenu.removeClass('et_pb_slide_dropdown_opened');
$closest_submenu.slideToggle(700, 'easeInOutCubic');
$closest_submenu.slideToggle(700, 'easeInOutCubic');
$closest_submenu.addClass('et_pb_slide_dropdown_opened');
}); // define initial padding-top for fullscreen menu container
if ($('body').hasClass('et_header_style_fullscreen')) {
var $menu_container = $('.et_header_style_fullscreen .et_slide_in_menu_container');
if ($menu_container.length) {
var top_bar_height = $menu_container.find('.et_slide_menu_top').innerHeight();
'padding-top': top_bar_height + 20
} // adjust the scrolling position on Woocommerce checkout page in case of error
$(document.body).on('checkout_error', function () {
et_adjust_woocommerce_checkout_scroll();
$(document.body).on('updated_checkout', function (data) {
if ('failure' !== data.result) {
et_adjust_woocommerce_checkout_scroll();
}); // Override row selector in VB
$et_window.on('et_fb_init', function () {
if (wp && wp.hooks && wp.hooks.addFilter) {
var replacement = window.DIVI.row_selector;
wp.hooks.addFilter('et.pb.row.css.selector', 'divi.et.pb.row.css.selector', function (selector) {
return selector.replace('%%row_selector%%', replacement);
/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
// This works in non-strict mode
// This works if eval is allowed (see CSP)
g = g || new Function("return this")();
// This works if the window reference is available
if (typeof window === "object") g = window;
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
/***/ "./node_modules/webpack/buildin/module.js":
/*!***********************************!*\
!*** (webpack)/buildin/module.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function(module) {
if (!module.webpackPolyfill) {
module.deprecate = function() {};
// module.parent = undefined by default
if (!module.children) module.children = [];
Object.defineProperty(module, "loaded", {
Object.defineProperty(module, "id", {
module.webpackPolyfill = 1;
/*!*************************!*\
!*** external "jQuery" ***!
\*************************/
/*! no static exports found */
/***/ (function(module, exports) {
//# sourceMappingURL=custom.js.map
//# sourceMappingURL=custom.js.map