Initial Commit N° : 003 - V.4.3.5
This commit is contained in:
+14
-7
@@ -214,8 +214,7 @@ jQuery(document).ready(function ($) {
|
||||
$('body').find('.nasa-header-sticky').length &&
|
||||
$('.sticky-wrapper').length &&
|
||||
$('.nasa-header-sticky-wrap').length &&
|
||||
screen_h < content_height &&
|
||||
!$('body').hasClass('nasa-mobile-app')
|
||||
screen_h < content_height
|
||||
) {
|
||||
var fix_top = $('#wpadminbar').length ? $('#wpadminbar').height() : 0;
|
||||
var _heightFixed = $('.sticky-wrapper').outerHeight();
|
||||
@@ -223,7 +222,7 @@ jQuery(document).ready(function ($) {
|
||||
var fix_nasa_topbar_wrap = $('.nasa-topbar-wrap').length && !$('.nasa-topbar-wrap').hasClass('nasa-topbar-hide') ? $('.nasa-topbar-wrap').outerHeight() : 0;
|
||||
|
||||
if (scrollTop > lastScrollTop) {
|
||||
$('#header-content').css({top: (fix_top - ($('#header-content').outerHeight() + 50) )});
|
||||
$('#header-content').css({top: (fix_top - ($('#header-content .nasa-header-sticky').outerHeight() + 50) )});
|
||||
}
|
||||
|
||||
if (scrollTop > headerHeight) {
|
||||
@@ -727,6 +726,7 @@ jQuery(document).ready(function ($) {
|
||||
* Close by fog window
|
||||
*/
|
||||
$('body').on('click', '.black-window, .white-window, .transparent-desktop, .transparent-mobile, .transparent-window, .nasa-close-mini-compare, .nasa-sidebar-close a, .nasa-sidebar-return-shop, .login-register-close, .nasa-close-menu-mobile', function () {
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
|
||||
if ($('#nasa-age-verification-popup-wrap.nasa-active').length) {
|
||||
return;
|
||||
@@ -933,6 +933,13 @@ jQuery(document).ready(function ($) {
|
||||
$('.nasa-top-bar-3-content a.nasa-tab-filter-topbar').trigger('click');
|
||||
}
|
||||
|
||||
/**
|
||||
* Close vertical menu float
|
||||
*/
|
||||
if ($('#vertical-menu-float').length && $('#vertical-menu-float').hasClass('nasa-active')) {
|
||||
$('#vertical-menu-float .vertical_float_menu_title a').trigger('click');
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide compare product
|
||||
*/
|
||||
@@ -1265,7 +1272,7 @@ jQuery(document).ready(function ($) {
|
||||
/**
|
||||
* After Add To Cart
|
||||
*/
|
||||
$('body').on('added_to_cart', function (ev, fragments, cart_hash, _button) {
|
||||
$('body').on('added_to_cart', function (ev, fragments, cart_hash, _button) {
|
||||
/**
|
||||
* Close quick-view
|
||||
*/
|
||||
@@ -1806,10 +1813,10 @@ jQuery(document).ready(function ($) {
|
||||
|
||||
$('body').on('nasa_after_load_ajax', function (e) {
|
||||
/**
|
||||
* Refress Cart icon
|
||||
* Refress Cart icon when ajax complete - Header with different style svg cart icon
|
||||
*/
|
||||
if (typeof _nasa_cart['.cart-inner'] !== 'undefined') {
|
||||
$('.cart-inner').replaceWith(_nasa_cart['.cart-inner']);
|
||||
if (typeof _nasa_cart['.cart-inner'] !== 'undefined' && _nasa_cart['.cart-inner'].length) {
|
||||
$('.cart-inner').replaceWith(_nasa_cart['.cart-inner'].clone());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user