Initial Commit N° : 003 - V.4.3.5
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -21,6 +21,7 @@ table th,
|
||||
.nasa-product-title,
|
||||
.nasa-tab-primary-color .nasa-classic-style a,
|
||||
.nasa-megamenu > .nav-dropdown > ul > .menu-item > a,
|
||||
.vertical-menu-float-wrapper >.menu-item .menu-item-has-children >a,
|
||||
.nav-wrapper .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.nasa-vertical-header .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.service-block .service-title,
|
||||
|
||||
@@ -21,6 +21,7 @@ table th,
|
||||
.nasa-product-title,
|
||||
.nasa-tab-primary-color .nasa-classic-style a,
|
||||
.nasa-megamenu > .nav-dropdown > ul > .menu-item > a,
|
||||
.vertical-menu-float-wrapper >.menu-item .menu-item-has-children >a,
|
||||
.nav-wrapper .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.nasa-vertical-header .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.service-block .service-title,
|
||||
|
||||
@@ -19,6 +19,7 @@ table th,
|
||||
.nasa-product-title,
|
||||
.nasa-tab-primary-color .nasa-classic-style a,
|
||||
.nasa-megamenu > .nav-dropdown > ul > .menu-item > a,
|
||||
.vertical-menu-float-wrapper >.menu-item .menu-item-has-children >a,
|
||||
.nav-wrapper .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.nasa-vertical-header .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.service-block .service-title,
|
||||
|
||||
@@ -17,6 +17,7 @@ table th,
|
||||
.nasa-product-title,
|
||||
.nasa-tab-primary-color .nasa-classic-style a,
|
||||
.nasa-megamenu > .nav-dropdown > ul > .menu-item > a,
|
||||
.vertical-menu-float-wrapper >.menu-item .menu-item-has-children >a,
|
||||
.nav-wrapper .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.nasa-vertical-header .nasa-megamenu > .nav-dropdown > ul > .menu-item .sub-menu .menu-item.nasa-main > a,
|
||||
.service-block .service-title,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,388 @@
|
||||
@keyframes qv-crazy-loading {
|
||||
0% {
|
||||
transform: skewX(-45deg) translateX(-80%);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: skewX(-45deg) translateX(80%);
|
||||
}
|
||||
}
|
||||
@keyframes qv-crazy-loading-dark {
|
||||
0% {
|
||||
transform: skewX(-45deg) translateX(-80%);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: skewX(-45deg) translateX(80%);
|
||||
}
|
||||
}
|
||||
#nasa-loader-product-infinite {
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.nasa-modern-10 .add-to-cart-grid {
|
||||
position: absolute;
|
||||
bottom: -35px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
top: auto;
|
||||
padding: 0;
|
||||
height: 42px;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
border: none;
|
||||
-webkit-transform: translateY(-10px);
|
||||
-moz-transform: translateY(-10px);
|
||||
-o-transform: translateY(-10px);
|
||||
-ms-transform: translateY(-10px);
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
.nasa-modern-10 .add-to-cart-grid .add_to_cart_text {
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
font-size: 15px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nasa-modern-10 .add-to-cart-grid .cart-icon {
|
||||
display: none;
|
||||
}
|
||||
.nasa-modern-10 .add-to-cart-grid.loading {
|
||||
color: transparent;
|
||||
}
|
||||
.nasa-modern-10 .add-to-cart-grid.loading .add_to_cart_text {
|
||||
color: transparent !important;
|
||||
}
|
||||
.nasa-modern-10 .add-to-cart-grid.loading:before {
|
||||
right: auto;
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.nasa-modern-10 .product-item:after {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
content: "";
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
background-color: #fff;
|
||||
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
|
||||
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
|
||||
-webkit-transition: all 250ms ease;
|
||||
-moz-transition: all 250ms ease;
|
||||
-o-transition: all 250ms ease;
|
||||
transition: all 250ms ease;
|
||||
}
|
||||
.nasa-modern-10 .product-item:hover:after {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
top: -15px;
|
||||
bottom: -5px;
|
||||
left: -15px;
|
||||
right: -15px;
|
||||
}
|
||||
|
||||
.nasa-dark .nasa-modern-10 .product-item:after {
|
||||
background-color: #111;
|
||||
-webkit-box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
|
||||
-moz-box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
|
||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 768px) {
|
||||
.nasa-modern-10 .product-item {
|
||||
z-index: 1;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info > * {
|
||||
max-width: 100%;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating {
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
-webkit-border-radius: 50px;
|
||||
-moz-border-radius: 50px;
|
||||
border-radius: 50px;
|
||||
overflow: visible;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
width: auto;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating::before {
|
||||
position: relative;
|
||||
width: 80px;
|
||||
height: 17px;
|
||||
display: block;
|
||||
z-index: 1;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating::after {
|
||||
content: '';
|
||||
background-color: #fff;
|
||||
-webkit-border-radius: 50px;
|
||||
-moz-border-radius: 50px;
|
||||
border-radius: 50px;
|
||||
position: absolute;
|
||||
width: calc(100% + 20px);
|
||||
height: calc(100% + 10px);
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating span:not(.rating) {
|
||||
padding: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating span:not(.rating)::before {
|
||||
width: 80px;
|
||||
height: 17px;
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating .rating {
|
||||
z-index: 1;
|
||||
display: block;
|
||||
width: auto;
|
||||
font-size: 80%;
|
||||
line-height: 17px;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .star-rating .rating::before {
|
||||
display: none;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .name {
|
||||
order: -1;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info .price {
|
||||
margin-top: 5px;
|
||||
}
|
||||
.nasa-modern-10 .product-item.has-add:hover {
|
||||
z-index: 2;
|
||||
}
|
||||
.nasa-modern-10 .product-item.has-add:hover:after {
|
||||
bottom: -55px;
|
||||
}
|
||||
.nasa-modern-10 .product-item.has-add:hover .add-to-cart-grid {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
.nasa-modern-10 .product-item .nasa-light-fog {
|
||||
height: calc(100% + 35px);
|
||||
}
|
||||
.nasa-modern-10.nasa-slick-slider .product-item:after, .nasa-modern-10.nasa-slick-slider .product-item:hover:after {
|
||||
-webkit-box-shadow: none;
|
||||
-moz-box-shadow: none;
|
||||
box-shadow: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.nasa-modern-10.nasa-slick-slider.slick-initialized > .slick-list {
|
||||
padding-bottom: 20px;
|
||||
margin-bottom: -20px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid {
|
||||
padding-top: 0;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid .btn-link {
|
||||
background-color: #fff;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid .btn-link .nasa-icon {
|
||||
color: #333;
|
||||
font-size: 20px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid .btn-wishlist {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
left: -46px;
|
||||
text-align: center;
|
||||
background-color: transparent;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid .btn-wishlist .nasa-icon {
|
||||
line-height: 36px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid .btn-wishlist.nasa-added .nasa-icon {
|
||||
color: #00a32a;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-grid .btn-wishlist svg {
|
||||
height: 36px;
|
||||
}
|
||||
.nasa-modern-10 .product-item:hover .nasa-product-grid .btn-wishlist {
|
||||
background-color: #fff;
|
||||
}
|
||||
.nasa-modern-10 .product-item:hover .nasa-product-grid .btn-link {
|
||||
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
||||
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.nasa-modern-10 .product-item:hover .nasa-product-grid .btn-link:hover {
|
||||
background-color: #333;
|
||||
}
|
||||
.nasa-modern-10 .product-item:hover .nasa-product-grid .btn-link:hover .nasa-icon {
|
||||
color: #fff !important;
|
||||
}
|
||||
.nasa-modern-10 .product-item .info {
|
||||
text-align: center;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-color-image-wrap {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
position: static;
|
||||
margin-top: 7px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-color-image-wrap .nasa-product-content-child {
|
||||
float: none;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-color-image-wrap .nasa-attr-ux-nasa_color {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-select-wrap,
|
||||
.nasa-modern-10 .nasa-product-content-variable-warp .nasa-product-content-nasa_label-wrap {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-nasa_label-wrap {
|
||||
position: static;
|
||||
margin-top: 8px;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
-webkit-transform: translateY(0);
|
||||
-moz-transform: translateY(0);
|
||||
-o-transform: translateY(0);
|
||||
-ms-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-nasa_label-wrap .nasa-product-content-child {
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-nasa_label-wrap .nasa-product-content-child:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-nasa_label-wrap .nasa-attr-ux-item {
|
||||
border: 1px solid #cccccc;
|
||||
color: #999;
|
||||
font-size: 11px;
|
||||
text-decoration: none;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.nasa-modern-10 .nasa-product-content-nasa_label-wrap .nasa-attr-ux-item:hover, .nasa-modern-10 .nasa-product-content-nasa_label-wrap .nasa-attr-ux-item.nasa-active {
|
||||
border-color: #555;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
.nasa-modern-10 .nasa-toggle-variants .nasa-product-content-select-wrap {
|
||||
-webkit-transform: translate(0, 0) !important;
|
||||
-moz-transform: translate(0, 0) !important;
|
||||
-o-transform: translate(0, 0) !important;
|
||||
-ms-transform: translate(0, 0) !important;
|
||||
transform: translate(0, 0) !important;
|
||||
}
|
||||
.nasa-modern-10 .nasa-fog-variants {
|
||||
bottom: 10px;
|
||||
}
|
||||
|
||||
.nasa-products-special-deal-simple .nasa-modern-10.nasa-slick-slider > .slick-list {
|
||||
padding-bottom: 55px;
|
||||
}
|
||||
.nasa-products-special-deal-simple .nasa-modern-10 .product-item.has-add:after {
|
||||
z-index: -1;
|
||||
}
|
||||
.nasa-products-special-deal-simple .nasa-modern-10 .product-item .add-to-cart-grid {
|
||||
bottom: -55px;
|
||||
}
|
||||
|
||||
.nasa-products-special-deal-for_time .nasa-modern-10.nasa-slick-slider > .slick-list {
|
||||
padding-bottom: 30px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.nasa-products-special-deal-for_time-2 .nasa-modern-10.nasa-slick-slider > .slick-list {
|
||||
padding-bottom: 50px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.nasa-products-special-deal-for_time-2 .nasa-modern-10 .product-item.has-add:after {
|
||||
z-index: -1;
|
||||
}
|
||||
.nasa-products-special-deal-for_time-2 .nasa-modern-10 .product-item .add-to-cart-grid {
|
||||
bottom: -55px;
|
||||
}
|
||||
|
||||
.html-ready .nasa-modern-10 .nasa-product-grid .btn-link .nasa-icon {
|
||||
-webkit-transition: all 250ms ease;
|
||||
-moz-transition: all 250ms ease;
|
||||
-o-transition: all 250ms ease;
|
||||
transition: all 250ms ease;
|
||||
}
|
||||
|
||||
.crazy-loading .nasa-modern-10 .product-item .info .add-to-cart-grid {
|
||||
display: none;
|
||||
}
|
||||
.crazy-loading .nasa-modern-10 .products.list .product-item .info .nasa-sc-pdeal-countdown {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.nasa-rtl .nasa-modern-10 .product-item .nasa-product-grid .btn-wishlist {
|
||||
left: 46px;
|
||||
}
|
||||
body.nasa-rtl .nasa-modern-10 .nasa-product-content-color-image-wrap .nasa-product-content-child {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.nasa-dark .nasa-modern-10 .product-item .info .star-rating::after {
|
||||
background-color: #000;
|
||||
}
|
||||
}
|
||||
@@ -188,6 +188,7 @@
|
||||
-moz-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
margin-top: 0;
|
||||
}
|
||||
.nasa-modern-9 .product-item .product-img-wrap .nasa-sc-pdeal-countdown {
|
||||
bottom: 20px;
|
||||
@@ -205,7 +206,7 @@
|
||||
font-size: 135%;
|
||||
}
|
||||
.nasa-modern-9 .product-item .info .name {
|
||||
font-size: 100%;
|
||||
padding: 5px 0;
|
||||
}
|
||||
.nasa-modern-9 .product-item .info .nasa-badges-wrap .badge {
|
||||
font-size: 60%;
|
||||
@@ -383,6 +384,9 @@
|
||||
.nasa-modern-9 .products.list .product-item .add-to-cart-grid .add_to_cart_text {
|
||||
max-width: 100%;
|
||||
}
|
||||
.nasa-modern-9 .products.list .product-item .info {
|
||||
z-index: 1;
|
||||
}
|
||||
.nasa-modern-9.nasa-accessories-wrap .product-item {
|
||||
border: none;
|
||||
-webkit-border-radius: 0;
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-4269
File diff suppressed because one or more lines are too long
+106
-14
@@ -4,7 +4,7 @@ if (typeof _cookie_live === 'undefined') {
|
||||
var originalTitle = document.title;
|
||||
var notificationInterval;
|
||||
var currentMessageIndex = 0;
|
||||
var timeout_popup_static;
|
||||
var timeout_popup_static,timeout_box_shadow ;
|
||||
/* Document ready */
|
||||
jQuery(document).ready(function ($) {
|
||||
"use strict";
|
||||
@@ -284,7 +284,7 @@ jQuery(document).ready(function ($) {
|
||||
/**
|
||||
* For Checkout Page
|
||||
*/
|
||||
if ($('body').hasClass('woocommerce-checkout') || $('form.woocommerce-checkout').length) {
|
||||
if ($('body').hasClass('woocommerce-checkout') || $('form.woocommerce-checkout').length || $('#cart-sidebar').length <= 0) {
|
||||
var _href = $(this).attr('href');
|
||||
window.location.href = _href;
|
||||
|
||||
@@ -305,7 +305,7 @@ jQuery(document).ready(function ($) {
|
||||
$('body').trigger('nasa_cross_sell_columns_setting', [$('#cart-sidebar .cross-sells').find('.nasa-slick-slider')]);
|
||||
}
|
||||
|
||||
if ($('#cart-sidebar').length && !$('#cart-sidebar').hasClass('nasa-active')) {
|
||||
if (!$('#cart-sidebar').hasClass('nasa-active')) {
|
||||
|
||||
$('#cart-sidebar').addClass('nasa-active');
|
||||
|
||||
@@ -324,7 +324,7 @@ jQuery(document).ready(function ($) {
|
||||
}
|
||||
|
||||
$('body').trigger('nasa_opened_cart_sidebar');
|
||||
$('body').trigger('init_carousel_pro_empty_sidebar',[$('#cart-sidebar')]);
|
||||
$('body').trigger('init_carousel_pro_empty_sidebar', [$('#cart-sidebar')]);
|
||||
|
||||
if ($('.nasa-close-notice').length) {
|
||||
$('.nasa-close-notice').trigger('click');
|
||||
@@ -1091,7 +1091,7 @@ jQuery(document).ready(function ($) {
|
||||
|
||||
var url = window.location.origin + window.location.pathname;
|
||||
$(_wrap).html(data.content);
|
||||
var _current = $(_wrap).find('a[href="' + url + '"]:not(.logo)');
|
||||
var _current = $(_wrap).find('a[href="' + url + '"]:not(.logo)');
|
||||
var _svg = '<svg width="32" height="32" viewBox="0 0 22 32"><path d="M11.001 0.006c-5.889 0-10.663 4.775-10.663 10.663 0 1.945 0.523 3.762 1.432 5.332l9.23 15.994 9.23-15.994c0.909-1.57 1.432-3.387 1.432-5.332 0-5.888-4.774-10.663-10.662-10.663zM11.001 13.334c-1.472 0-2.666-1.193-2.666-2.665 0-1.471 1.194-2.665 2.666-2.665s2.665 1.194 2.665 2.665c0 1.472-1.193 2.665-2.665 2.665z" fill="currentColor"/></svg>';
|
||||
|
||||
if ($(_current).length) {
|
||||
@@ -1130,7 +1130,7 @@ jQuery(document).ready(function ($) {
|
||||
distance = 60;
|
||||
|
||||
// swipe horizontal to close
|
||||
$('body').on('touchstart', '#cart-sidebar, #nasa-wishlist-sidebar, #nasa-viewed-sidebar, #nasa-quickview-sidebar, #nasa-menu-sidebar-content, .nasa-top-cat-filter-wrap-mobile, .nasa-top-sidebar, .account-nav-wrap.vertical-tabs, .ns-sticky-scroll-sidebar', function (e) {
|
||||
$('body').on('touchstart', '#cart-sidebar, #nasa-wishlist-sidebar, #nasa-viewed-sidebar, #nasa-quickview-sidebar, #nasa-menu-sidebar-content, .nasa-top-cat-filter-wrap-mobile, .nasa-top-sidebar, .account-nav-wrap.vertical-tabs, .ns-sticky-scroll-sidebar, #vertical-menu-float.nasa-active', function (e) {
|
||||
touchstart = 0;
|
||||
if (!$(e.target).hasClass('slick-active') && !$(e.target).parents('.nasa-slick-slider').length) {
|
||||
touchstart = e.touches[0].clientX;
|
||||
@@ -1153,7 +1153,7 @@ jQuery(document).ready(function ($) {
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('touchmove', '#nasa-menu-sidebar-content, .nasa-top-cat-filter-wrap-mobile, .nasa-top-sidebar, .account-nav-wrap.vertical-tabs', function (e) {
|
||||
$('body').on('touchmove', '#nasa-menu-sidebar-content, .nasa-top-cat-filter-wrap-mobile, .nasa-top-sidebar, .account-nav-wrap.vertical-tabs, #vertical-menu-float.nasa-active', function (e) {
|
||||
touchend = e.changedTouches[0].clientX;
|
||||
|
||||
if (touchstart != touchend && touchstart != 0 && Math.abs(touchstart - touchend) > distance) {
|
||||
@@ -2338,15 +2338,16 @@ jQuery(document).ready(function ($) {
|
||||
* Login / Register Popup
|
||||
*/
|
||||
$('body').on('click', '.nasa-login-register-ajax', function () {
|
||||
if ($('#nasa-login-register-form').length <= 0) {
|
||||
var _content = $('#tmpl-nasa-register-form').html();
|
||||
$('.nasa-login-register-warper').html(_content);
|
||||
$('#tmpl-nasa-register-form').remove();
|
||||
if (!$('body').hasClass('logged-in')) {
|
||||
if ($('#nasa-login-register-form').length <= 0) {
|
||||
var _content = $('#tmpl-nasa-register-form').html();
|
||||
$('.nasa-login-register-warper').html(_content);
|
||||
$('#tmpl-nasa-register-form').remove();
|
||||
|
||||
$('body').trigger('nasa_login_register_ajax_inited');
|
||||
}
|
||||
$('body').trigger('nasa_login_register_ajax_inited');
|
||||
}
|
||||
|
||||
if ($(this).attr('data-enable') === '1' && $('#customer_login').length <= 0) {
|
||||
if ($(this).attr('data-enable') === '1' && $('#customer_login').length <= 0) {
|
||||
$('#nasa-menu-sidebar-content').removeClass('nasa-active');
|
||||
$('#mobile-navigation').attr('data-show', '0');
|
||||
|
||||
@@ -2420,6 +2421,9 @@ jQuery(document).ready(function ($) {
|
||||
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
window.location.href = $(this).attr('href');
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
@@ -2676,4 +2680,92 @@ jQuery(document).ready(function ($) {
|
||||
$(_nav).find('.nasa-nav-arrow.slick-next ').attr('class',$(_slider).find('.nasa-nav-arrow.slick-next ').attr('class'));
|
||||
|
||||
});
|
||||
|
||||
$('body').on('click','#vertical-menu-float .vertical_float_menu_title a, .nasa-vertical-menu-float-mobile-toggle, .vertical_float_menu_toggle .nasa-title-vertical-menu', function() {
|
||||
var _wrap = $('#vertical-menu-float');
|
||||
if ($(_wrap).hasClass('nasa-active')) {
|
||||
$('.black-window').fadeOut(200).removeClass('desk-window');
|
||||
|
||||
timeout_box_shadow = setTimeout(function() {
|
||||
$('.black-window').removeClass('vertical-menu-float-bg');
|
||||
$(_wrap).removeClass('nav-dropdown-delay-0');
|
||||
}, 300);
|
||||
|
||||
$(_wrap).removeClass('nasa-active');
|
||||
$('body').removeClass('m-ovhd');
|
||||
} else {
|
||||
if (typeof timeout_box_shadow !== 'undefined') {
|
||||
clearTimeout(timeout_box_shadow);
|
||||
}
|
||||
$(_wrap).addClass('nasa-active');
|
||||
$('.black-window').fadeIn(200).addClass('desk-window vertical-menu-float-bg');
|
||||
$('body').addClass('m-ovhd');
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('mouseleave', '#vertical-menu-float', function () {
|
||||
var _this = $(this);
|
||||
|
||||
if (!_mobileView && !$('body').hasClass('nasa-in-mobile') && !$('body').hasClass('nasa-mobile-app')) {
|
||||
if ($(_this).hasClass('nasa-active')) {
|
||||
$(_this).find('.vertical_float_menu_title a').trigger('click');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('mousemove', '#vertical-menu-float', function (e) {
|
||||
var _this = $(this);
|
||||
var width = $(_this).width();
|
||||
if (_mobileView || $('body').hasClass('nasa-in-mobile') || $('body').hasClass('nasa-mobile-app')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$(_this).hasClass('nasa-active')) {
|
||||
$(_this).find('.vertical_float_menu_title a').trigger('click');
|
||||
|
||||
} else if (!$(_this).hasClass('nav-dropdown-delay-0') && width >= 280) {
|
||||
$(_this).addClass('nav-dropdown-delay-0');
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('click', '#vertical-menu-float .vertical-menu-float-wrapper >li.menu-item-has-children >.nasa-title-menu',function(event) {
|
||||
if (_mobileView || $('body').hasClass('nasa-in-mobile') || $('body').hasClass('nasa-mobile-app')) {
|
||||
|
||||
event.preventDefault();
|
||||
var _this = $(this);
|
||||
var _parent = $(_this).parents('.menu-item-has-children');
|
||||
var _dropdown = $(_parent).find('>.nav-dropdown');
|
||||
var _itemactive = $('#vertical-menu-float .vertical-menu-float-wrapper >li.menu-item-has-children.nasa-active');
|
||||
|
||||
if ($(_parent).hasClass('nasa-active')) {
|
||||
$(_parent).removeClass('nasa-active');
|
||||
$(_dropdown).slideUp(300);
|
||||
} else {
|
||||
$(_parent).addClass('nasa-active');
|
||||
$(_dropdown).slideDown(300);
|
||||
$(_itemactive).removeClass('nasa-active');
|
||||
$(_itemactive).find('>.nav-dropdown').slideUp(300);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('body').on('nasa_media_all_pause',function() {
|
||||
$('video, audio').each(function() {
|
||||
if (!this.paused) {
|
||||
this.pause();
|
||||
}
|
||||
});
|
||||
|
||||
$('iframe').each(function() {
|
||||
var iframe = this;
|
||||
var src = $(iframe).attr('src');
|
||||
|
||||
if (src && src.includes('youtube.com/embed') && iframe.contentWindow) {
|
||||
iframe.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
|
||||
} else {
|
||||
$(iframe).attr('src',src);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
+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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+3
-3
File diff suppressed because one or more lines are too long
@@ -345,7 +345,7 @@ jQuery(document).ready(function ($) {
|
||||
}
|
||||
|
||||
if ($('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').length && !$('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').hasClass('nasa-nav-radius')) {
|
||||
$('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').addClass('nasa-nav-radius')
|
||||
$('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').addClass('nasa-nav-radius');
|
||||
}
|
||||
|
||||
var groupLightBox = $('.product-lightbox').find('.woocommerce-grouped-product-list-item');
|
||||
@@ -460,7 +460,7 @@ jQuery(document).ready(function ($) {
|
||||
}
|
||||
|
||||
if ($('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').length && !$('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').hasClass('nasa-nav-radius')) {
|
||||
$('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').addClass('nasa-nav-radius')
|
||||
$('.product-lightbox').find('.nasa-product-gallery-lightbox .main-image-slider').addClass('nasa-nav-radius');
|
||||
}
|
||||
|
||||
var groupLightBox = $('.product-lightbox').find('.woocommerce-grouped-product-list-item');
|
||||
|
||||
+18
-25
@@ -340,6 +340,8 @@ $('body').on('click', "a.product-video-popup", function(e) {
|
||||
closeOnVerticalDrag:false
|
||||
};
|
||||
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
|
||||
if (productVideo) {
|
||||
var embedUrl = nasa_ember_link(productVideo);
|
||||
items.push({
|
||||
@@ -388,11 +390,7 @@ $('body').on('nasa_after_single_product_slick_inited', function(ev, _thumbs, _nu
|
||||
var _this = $(this);
|
||||
$('body').trigger('nasa_check_slick_disabled', [_this]);
|
||||
|
||||
$('.nasa-single-product-slide .nasa-single-product-main-image video').each(function() {
|
||||
if (!this.paused) {
|
||||
this.pause();
|
||||
}
|
||||
});
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
});
|
||||
|
||||
if (_thumbs) {
|
||||
@@ -1501,19 +1499,12 @@ $('body').on('click','.main_min_img, .woocommerce-product-gallery__wrapper .main
|
||||
});
|
||||
|
||||
gallery.listen('beforeChange', function() {
|
||||
$('video').each(function() {
|
||||
if (!this.paused) {
|
||||
this.pause();
|
||||
}
|
||||
});
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
});
|
||||
|
||||
gallery.listen('close', function (index, item) {
|
||||
$('video').each(function() {
|
||||
if (!this.paused) {
|
||||
this.pause();
|
||||
}
|
||||
});
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
$(pswpElement).remove();
|
||||
});
|
||||
|
||||
gallery.init();
|
||||
@@ -1595,6 +1586,9 @@ $('body').on('click','.commentlist .nasa-wrap-review-thumb .nasa-item-review-thu
|
||||
})
|
||||
|
||||
$('body').addClass('ovhd');
|
||||
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
|
||||
$('body').trigger('nasa_reload_slick_slider_private', $('.nasa-slide-popup-review'));
|
||||
$('.nasa-slide-popup-review').addClass('nasa-active');
|
||||
|
||||
@@ -1605,10 +1599,13 @@ $('body').on('click','.commentlist .nasa-wrap-review-thumb .nasa-item-review-thu
|
||||
// }
|
||||
|
||||
$('.nasa-slide-popup-review >.nasa-slick-slider').on('beforeChange', function(event, slick, currentSlide) {
|
||||
var _videos = $('.nasa-slide-popup-review').find('.ns-video-review');
|
||||
_videos.each(function() {
|
||||
this.pause();
|
||||
});
|
||||
// var _videos = $('.nasa-slide-popup-review').find('.ns-video-review');
|
||||
// _videos.each(function() {
|
||||
// this.pause();
|
||||
// });
|
||||
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
|
||||
// if ($(_lm_btn).length) {
|
||||
// if (currentSlide >= slick.slideCount-2) {
|
||||
// nasa_get_ajax_load_review_slide($,$('.nasa-slide-popup-review >.nasa-slick-slider'))
|
||||
@@ -1621,12 +1618,8 @@ $('body').on('click','.nasa-slide-popup-review .close-review-slide-popup,.nasa-s
|
||||
e.preventDefault();
|
||||
var _this = $(this);
|
||||
var _pa = $(_this).parents('.nasa-slide-popup-review');
|
||||
var _videos = $(_pa).find('.ns-video-review');
|
||||
|
||||
_videos.each(function() {
|
||||
this.pause();
|
||||
});
|
||||
|
||||
$('body').trigger('nasa_media_all_pause');
|
||||
$('body').removeClass('ovhd');
|
||||
$(_pa).fadeOut(300);
|
||||
setTimeout(function() {
|
||||
@@ -2221,7 +2214,7 @@ function nasa_ember_link(link) {
|
||||
startTime = link.substring(startIndex + 2);
|
||||
}
|
||||
|
||||
var embedUrl = 'https://www.youtube.com/embed/' + videoId + '?autoplay=1';
|
||||
var embedUrl = 'https://www.youtube.com/embed/' + videoId + '?autoplay=1&enablejsapi=1';
|
||||
if (startTime) {
|
||||
embedUrl += '&start=' + startTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user