<@ var skuLevel= false @><@ var produtsLevel= false @> <@ if( typeof skuMerchAssoInfo !== 'undefined' && skuMerchAssoInfo.length > 0 && skuMerchAssoInfo != null && typeof CurrencySymbol !== 'undefined' && CurrencySymbol != null && typeof product !== 'undefined' && product != null && typeof SliderUserType != undefined && SliderUserType != null && typeof CurrencySymbol != undefined && CurrencySymbol != null && typeof suppEmpty != undefined && suppEmpty != null ) { @>
Empfohlene Produkte
<@ skuMerchAssoInfo.forEach(function(skuMerchAssoInfo_details,key) { @><@ if(skuMerchAssoInfo_details.skuMerchProductId == product.catentry_id ){ @><@ produtsLevel= false @> <@ var merchandising= skuMerchAssoInfo_details.skuMerchandising @><@ var skuRelatedProductPriceslist = skuMerchAssoInfo_details.skuRelatedProductPrices @><@ var merchandisingEnrichment= skuMerchAssoInfo_details.skuMerchandisingEnrichment @><@ var skuProductImagelist= skuMerchAssoInfo_details.skuRelatedProductImage @><@ merchandising.forEach(function(merchanDising_details,key) { @> <@ if(merchanDising_details.associationType == 'CARTPOPUP'){ @><@ produtsLevel= true @><@ var SKUlist = merchanDising_details.sKUs @><@ var dragType; @><@ if(merchanDising_details.catalogEntryTypeCode == 'ItemBean'){ @> <@ dragType = "item" @><@ } else if(merchanDising_details.catalogEntryTypeCode == 'PackageBean') {@> <@ dragType = "package" @><@ } else if(merchanDising_details.catalogEntryTypeCode == 'ProductBean') {@> <@ dragType = "product" @><@ } else if(merchanDising_details.catalogEntryTypeCode == 'BundleBean') {@> <@ dragType = "bundle" @><@ } @> <@ merchandisingEnrichment.forEach(function(merchandisingEnrichmentProductUrl) { @>
<@ var SkuproductUrl = '' @><@ skuProductImagelist.forEach(function(skuProductImagelistsUrl){ @><@ if(skuProductImagelistsUrl.skuMerchAssocProductId == merchanDising_details.uniqueID ) { @> <@ SkuproductUrl = skuProductImagelistsUrl.skuMerchAssocProdURL @><@ } @><@ }); @>
<@ var preLoginGasItemAdd2CartEnable = false @><@ preLoginGasItemAdd2CartEnable = true @><@ var hasRentalEquipment = false @> <@ if( !merchandisingEnrichmentProductUrl.isGas && merchandisingEnrichmentProductUrl.isRentable) { @><@ hasRentalEquipment = true @> <@ } @><@ var productListingRestrictionTooltip = "" @><@ if(!merchandisingEnrichmentProductUrl.preLogin && merchandisingEnrichmentProductUrl.isRentable && !merchandisingEnrichmentProductUrl.hasRentalAgreement ){ @> <@ productListingRestrictionTooltip= "POST_LOGIN_RENTABLE_ALERT" @><@} else if(merchandisingEnrichmentProductUrl.isToxic){ @><@ productListingRestrictionTooltip= "TOXIC_ALERT" @><@} else if(merchandisingEnrichmentProductUrl.isMedical){ @><@ productListingRestrictionTooltip= "MEDICAL_ALERT" @><@} else if(merchandisingEnrichmentProductUrl.isSpecialGas){ @> <@ productListingRestrictionTooltip= "SPECIAL_GAS_ALERT" @><@} else if(merchandisingEnrichmentProductUrl.preLogin && merchandisingEnrichmentProductUrl.isRentable ){ @> <@ productListingRestrictionTooltip= "RENTABLE_ALERT" @><@} else { @> <@ productListingRestrictionTooltip= "" @><@} @><@ if(merchandisingEnrichmentProductUrl.isDiscontinued) { @><@ var restrictionTooltipToken = "RENTABLE_ALERT" @><@ } else { @><@ var restrictionTooltipToken = productListingRestrictionTooltip @><@ } @><@ var isAddToCartButtonEnabled = false @> <@ var isPunchOut = @> <@ var isAssociation = @> <@ var noListPrices = '' @><@ if(merchandisingEnrichmentProductUrl.noListPrice == "false" ){ @><@ noListPrices = true @><@ } else { @><@ noListPrices = true @><@ } @><@ if(SliderUserType == 'G' && preLoginGasItemAdd2CartEnable && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePreLogin && !merchandisingEnrichmentProductUrl.isRentable && ( noListPrices || !merchandisingEnrichmentProductUrl.noListPrice ) ){ @><@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'G' && preLoginGasItemAdd2CartEnable && merchandisingEnrichmentProductUrl.isGas == true && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'G' && preLoginGasItemAdd2CartEnable && merchandisingEnrichmentProductUrl.isGas == true && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'G' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePreLogin && !merchandisingEnrichmentProductUrl.isRentable && ( noListPrices || !merchandisingEnrichmentProductUrl.noListPrice ) && merchandisingEnrichmentProductUrl.isGas == true ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'R' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePostLogin ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'R' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && !merchandisingEnrichmentProductUrl.isBuyablePostLogin && merchandisingEnrichmentProductUrl.hasRentalAgreement ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'A' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePostLogin ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'A' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && !merchandisingEnrichmentProductUrl.isBuyablePostLogin && merchandisingEnrichmentProductUrl.hasRentalAgreement ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else { @><@ isAddToCartButtonEnabled = false @> <@ } @> <@ if(isAddToCartButtonEnabled) { @> <@ if (dragType == 'item' || dragType == 'package' ) { @>
In den Warenkorb
<@ } else if (dragType == 'BundleBean' || dragType == 'bundle') { @>
In den Warenkorb
<@ } else if (isPunchOut && suppEmpty != null && suppEmpty) { @>
In den Warenkorb
<@ } else if (isPunchOut && suppEmpty != null && suppEmpty=='false') { @>
In den Warenkorb
<@ } else { @>
In den Warenkorb
<@ } @><@ } else { @><@ if (restrictionTooltipToken != null && restrictionTooltipToken !== '' ) { @>
In den Warenkorb
<@ } else if ( merchanDising_details.buyable != "true" || !merchanDising_details.buyable) { @>
In den Warenkorb
<@ } else { @>
In den Warenkorb
<@ } @><@ } @>
<@ }); @><@ } @><@ } ); @><@ } else { @><@ if( produtsLevel == true){ @><@ skuLevel= false @><@} else {@><@ skuLevel= true @><@ } @><@ } @><@ } ); @>
<@ } else { @><@ if( produtsLevel == true){ @><@ skuLevel= false @><@} else {@><@ skuLevel= true @><@ } @><@ } @><@ if( typeof merchandising !== 'undefined' && merchandising != null && typeof SliderUserType != undefined && SliderUserType != null && typeof merchandisingproductURLs != undefined && merchandisingproductURLs != null && typeof merchandisingEnrichment != undefined && merchandisingEnrichment != null && skuLevel == true && typeof CurrencySymbol != undefined && CurrencySymbol != null && typeof suppEmpty != undefined && suppEmpty != null ) { @>
Empfohlene Produkte
<@ merchandising.forEach(function(merchanDising_details,key) { @><@ if(merchanDising_details.associationType == 'CARTPOPUP'){ @><@ var SKUlist = merchanDising_details.sKUs @><@ var dragType; @><@ if(merchanDising_details.catalogEntryTypeCode == 'ItemBean'){ @> <@ dragType = "item" @><@ } else if(merchanDising_details.catalogEntryTypeCode == 'PackageBean') {@> <@ dragType = "package" @><@ } else if(merchanDising_details.catalogEntryTypeCode == 'ProductBean') {@> <@ dragType = "product" @><@ } else if(merchanDising_details.catalogEntryTypeCode == 'BundleBean') {@> <@ dragType = "bundle" @><@ } @> <@ merchandisingproductURLs.forEach(function(merchandisingproductURL) { @><@ merchandisingEnrichment.forEach(function(merchandisingEnrichmentProductUrl) { @><@ if(merchandisingproductURL.productUniqueId == merchanDising_details.uniqueID && merchandisingEnrichmentProductUrl.merchProductUniqueId == merchanDising_details.uniqueID && merchandisingproductURL.productAssociationType == 'CARTPOPUP'){ @>
<@ var preLoginGasItemAdd2CartEnable = false @><@ preLoginGasItemAdd2CartEnable = true @><@ var hasRentalEquipment = false @> <@ if( !merchandisingEnrichmentProductUrl.isGas && merchandisingEnrichmentProductUrl.isRentable) { @><@ hasRentalEquipment = true @> <@ } @><@ var productListingRestrictionTooltip = "" @><@ if(!merchandisingEnrichmentProductUrl.preLogin && merchandisingEnrichmentProductUrl.isRentable && !merchandisingEnrichmentProductUrl.hasRentalAgreement ){ @> <@ productListingRestrictionTooltip= "POST_LOGIN_RENTABLE_ALERT" @> <@} else if(merchandisingEnrichmentProductUrl.isToxic){ @><@ productListingRestrictionTooltip= "TOXIC_ALERT" @> <@} else if(merchandisingEnrichmentProductUrl.isMedical){ @><@ productListingRestrictionTooltip= "MEDICAL_ALERT" @><@} else if(merchandisingEnrichmentProductUrl.isSpecialGas){ @> <@ productListingRestrictionTooltip= "SPECIAL_GAS_ALERT" @><@} else if(merchandisingEnrichmentProductUrl.preLogin && merchandisingEnrichmentProductUrl.isRentable ){ @> <@ productListingRestrictionTooltip= "RENTABLE_ALERT" @> <@} else { @> <@ productListingRestrictionTooltip= "" @> <@} @><@ if(merchandisingEnrichmentProductUrl.isDiscontinued) { @><@ var restrictionTooltipToken = "RENTABLE_ALERT" @> <@ } else { @> <@ var restrictionTooltipToken = productListingRestrictionTooltip @> <@ } @><@ var isAddToCartButtonEnabled = false @> <@ var isPunchOut = @> <@ var isAssociation = @> <@ var noListPrices = '' @><@ if(merchandisingEnrichmentProductUrl.noListPrice == "false" ){ @><@ noListPrices = true @><@ } else { @><@ noListPrices = true @><@ } @><@ if(SliderUserType == 'G' && preLoginGasItemAdd2CartEnable && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePreLogin && !merchandisingEnrichmentProductUrl.isRentable && ( noListPrices || !merchandisingEnrichmentProductUrl.noListPrice ) ){ @><@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'G' && preLoginGasItemAdd2CartEnable && merchandisingEnrichmentProductUrl.isGas == true && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'G' && preLoginGasItemAdd2CartEnable && merchandisingEnrichmentProductUrl.isGas == true && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'G' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePreLogin && !merchandisingEnrichmentProductUrl.isRentable && ( noListPrices || !merchandisingEnrichmentProductUrl.noListPrice ) && merchandisingEnrichmentProductUrl.isGas == true ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'R' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePostLogin ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'R' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && !merchandisingEnrichmentProductUrl.isBuyablePostLogin && merchandisingEnrichmentProductUrl.hasRentalAgreement ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'A' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && merchandisingEnrichmentProductUrl.isBuyablePostLogin ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else if( SliderUserType == 'A' && ( merchanDising_details.buyable == "true" || !merchanDising_details.buyable ) && !merchandisingEnrichmentProductUrl.isBuyablePostLogin && merchandisingEnrichmentProductUrl.hasRentalAgreement ) { @> <@ isAddToCartButtonEnabled = true @> <@ } else { @><@ isAddToCartButtonEnabled = false @> <@ } @> <@ if(isAddToCartButtonEnabled) { @> <@ if (dragType == 'item' || dragType == 'package' ) { @>
In den Warenkorb
<@ } else if (dragType == 'BundleBean' || dragType == 'bundle') { @>
In den Warenkorb
<@ } else if (isPunchOut && suppEmpty != null && suppEmpty) { @>
In den Warenkorb
<@ } else if (isPunchOut && suppEmpty != null && suppEmpty=='false') { @>
In den Warenkorb
<@ } else { @>
In den Warenkorb
<@ } @><@ } else { @><@ if (restrictionTooltipToken != null && restrictionTooltipToken !== '' ) { @>
In den Warenkorb
<@ } else if ( merchanDising_details.buyable != "true" || !merchanDising_details.buyable ) { @>
In den Warenkorb
<@ } else { @>
In den Warenkorb
<@ } @><@ } @>
<@} @><@ }); @><@ }); @><@ } @><@ } ); @>
<@ } @>
') $(evt.currentTarget).closest('#heirachyStaticvalues').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues1').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues2').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues3').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues4').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') }else{ $(evt.currentTarget).closest('#data-hasmenu').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues1').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues2').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues3').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') $(evt.currentTarget).closest('#heirachyStaticvalues4').find('.product-sub-parentName').find('.product-sub-child').append('
' + $(evt.currentTarget).closest('li').find('.linkmenu_arrow').html() + '
') } $(evt.currentTarget).next('ul').addClass('count_Ten'); var divcount = $('.product-sub-parentName').find('.submenu-title').length if (divcount && divcount==2) { $('.product-sub-parentName >span').hide() $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').addClass('no_point-events') $('.product-sub-parentName').find('.submenu-title:nth-child(1) > svg').show() $('.product-sub-parentName').find('.submenu-title:nth-child(1)').addClass("Breadcrumb-text") $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(2) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(2) > svg').hide() } else if (divcount && divcount==3){ $('.product-sub-parentName').find('.submenu-title:nth-child(1)').hide() $('.product-sub-parentName').find('.submenu-title:nth-child(2) > a').addClass('no_point-events') $('.product-sub-parentName').find('.submenu-title:nth-child(2) > svg').show() $('.product-sub-parentName').find('.submenu-title:nth-child(2)').addClass("Breadcrumb-text") $('.product-sub-parentName').find('.submenu-title:nth-child(2) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(3) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(3) > svg').hide() } else if (divcount && divcount==4){ $('.product-sub-parentName').find('.submenu-title:nth-child(2)').hide() $('.product-sub-parentName').find('.submenu-title:nth-child(3) > a').addClass('no_point-events') $('.product-sub-parentName').find('.submenu-title:nth-child(3) > svg').show() $('.product-sub-parentName').find('.submenu-title:nth-child(3) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(3)').addClass("Breadcrumb-text") $('.product-sub-parentName').find('.submenu-title:nth-child(4) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(4) > svg').hide() } else if (divcount && divcount==5){ $('.product-sub-parentName').find('.submenu-title:nth-child(3)').hide() $('.product-sub-parentName').find('.submenu-title:nth-child(4) > a').addClass('no_point-events') $('.product-sub-parentName').find('.submenu-title:nth-child(4) > svg').show() $('.product-sub-parentName').find('.submenu-title:nth-child(4) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(4)').addClass("Breadcrumb-text") $('.product-sub-parentName').find('.submenu-title:nth-child(5) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(5) > svg').hide() } $('.product-sub-parentName').find('.maintileSubparentName').find('svg').addClass("animtions_slidebackwards"); $('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').find('svg').addClass("animtions_slidebackwards"); var FirstlevelArrowAdd = $('.product-sub-parentName').find('.product-sub-child').children().length; if(FirstlevelArrowAdd == 1){ $('.maintileSubparentName').find('svg').removeClass('hidden'); $('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').eq(0).find('svg').hide(); $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.maintileSubparentName').addClass("Breadcrumb-text") if($("#isEnableUnifyDesign").length > 0){ $('.product-sub-parentName').find('.maintileSubparentName a svg').removeClass("hidden") } $(document).on('click','.maintileSubparentName a,.staticlinkTitle a',function(evt){ evt.preventDefault(); $('.product-nav__subnav').find('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').remove(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('div.linkmenu_arrow:first').show(); $('.product-nav__subnav').find('.count-1').find('li').show(); $('.product-nav__subnav').find('ul').removeClass('count_Ten'); $('.product-nav__subnav').find('.count-1').addClass('count_Ten'); $('.product-sub-parentName >span').show() if($(window).width() > 992){ $('.product-nav__subnav').find('ul').find('li').removeClass('animtions_dismiss').addClass('animtions_selected').show(); } $('.product-nav__subnav').find('li').css('border-bottom','1px solid rgba(255, 255, 255 ,0.1)'); $(evt.currentTarget).find('svg').addClass('hidden'); $('.product-sub-parentName').find('.maintileSubparentName').removeClass("Breadcrumb-text"); }) } }) $(document).on('click', '.submenu-title', function(evt) { var divcount = $('.product-sub-parentName').find('.submenu-title').length var clickedLevel; if (divcount&&divcount==1) { clickedLevel = $(evt.currentTarget).text().trim(); } else { clickedLevel = $(evt.currentTarget).next().text().trim(); } _.each($(".product-sub-parentName .submenu-title"),function(value, index){ var levelNumber = 0 if ($(value).text().trim() === clickedLevel) levelNumber = ++index; $('.count-' + levelNumber).find('li').show() }); $(evt.currentTarget).closest('.product-nav__subnav').find('li[data-name="' + clickedLevel + '"]').css('border-bottom','1px solid rgba(255, 255, 255 ,0.1)'); $(evt.currentTarget).closest('.product-nav__subnav').find('li[data-name="' + clickedLevel + '"]').find('div.linkmenu_arrow').show().next().hide(); // $(evt.currentTarget).closest('.product-nav__subnav').find('li[data-name="' + clickedLevel + '"]').addClass('animtions_dismiss'); $(evt.currentTarget).closest('.product-nav__subnav').find('li[data-name="' + clickedLevel + '"]').find('ul').hide(); $('.product-sub-parentName').find('.maintileSubparentName').find('svg').removeClass("animtions_slidebackwards"); $('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').find('svg').removeClass("animtions_slidebackwards"); $(evt.currentTarget).next().remove(); $(evt.currentTarget).find('a').removeClass('no_point-events') $(evt.currentTarget).removeClass('no_point-events') $(evt.currentTarget).closest('.product-nav__subnav').find('li').removeClass('animtions_selected').addClass('animtions_dismiss'); $(evt.currentTarget).prev().show(); $(evt.currentTarget).closest('.product-nav__subnav').find('li[data-name="' + clickedLevel + '"]').find('ul').removeClass('count_Ten'); if (divcount && divcount==2){ $('.product-sub-parentName').find('.submenu-title:nth-child(2) > svg').hide() $('.product-sub-parentName >span').show() $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(1)').removeClass("Breadcrumb-text") }else if (divcount && divcount>2){ $(evt.currentTarget).find('svg').hide(); if(divcount == 3){ $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(2) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(2)').removeClass("Breadcrumb-text") }else if(divcount == 4){ $('.product-sub-parentName').find('.submenu-title:nth-child(2) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(3) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(3)').removeClass("Breadcrumb-text") }else if(divcount == 5){ $('.product-sub-parentName').find('.submenu-title:nth-child(3) > a').css('font-size','initial') $('.product-sub-parentName').find('.submenu-title:nth-child(4) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(4)').removeClass("Breadcrumb-text") } }else if (divcount&&divcount==1) { $('.product-sub-parentName').find('.submenu-title > svg').hide() $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').css('font-size',' 2.1rem') $('.product-sub-parentName').find('.submenu-title:nth-child(1)').removeClass("Breadcrumb-text") $(evt.currentTarget).remove(); } var FirstlevelArrowAdd = $('.product-sub-parentName').find('.product-sub-child').children().length; if(FirstlevelArrowAdd == 1){ $('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').eq(0).find('svg').hide(); $('.product-sub-parentName').find('.submenu-title:nth-child(1) > a').css('font-size',' 2.1rem') $(document).on('click','.maintileSubparentName a,.staticlinkTitle a',function(evt){ evt.preventDefault(); $('.product-nav__subnav').find('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').remove(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('div.linkmenu_arrow:first').show(); $('.product-nav__subnav').find('.count-1').find('li').show(); $('.product-nav__subnav').find('ul').removeClass('count_Ten'); $('.product-nav__subnav').find('.count-1').addClass('count_Ten'); $('.product-sub-parentName >span').show() if($(window).width() > 992){ $('.product-nav__subnav').find('ul').find('li').removeClass('animtions_dismiss').addClass('animtions_selected').show(); } $('.product-nav__subnav').find('li').css('border-bottom','1px solid rgba(255, 255, 255 ,0.1)'); $('.maintileSubparentName,.staticlinkTitle').find('svg').addClass('hidden'); }) } }); $(document).ready(function(){ if($('#navClickForBlueBrand').length>0){ console.log("blueBrand"); $(document).on('click', function(e) { if (!$(e.target).closest('.product-nav .product-nav__item').length) { e.stopPropagation(); $('.product-nav__subnav').find('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').remove(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('div.linkmenu_arrow:first').show(); $('.product-nav__subnav').find('.count-1').find('li').show(); $('.product-nav__subnav').find('ul').removeClass('count_Ten'); $('.product-nav__subnav').find('.count-1').addClass('count_Ten'); $('.product-sub-parentName >span').show() if($(window).width() > 992){ $('.product-nav__subnav').find('ul').find('li').removeClass('animtions_dismiss').addClass('animtions_selected').show(); } $('.product-nav__subnav').find('li').css('border-bottom','1px solid rgba(255, 255, 255 ,0.1)'); $('.product-sub-parentName').find('.maintileSubparentName').removeClass("Breadcrumb-text") $('.maintileSubparentName,.staticlinkTitle ').find('svg').addClass('hidden'); $('.product-sub-parentName').find('.maintileSubparentName').find('svg').addClass("animtions_slidebackwards"); $('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').find('svg').addClass("animtions_slidebackwards"); } }) } else{ $( ".product-nav-ELgas .product-nav__item ").mouseleave(function(){ $('.product-nav__subnav').find('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').remove(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-2').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-3').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-4').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-5').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('.count-6').find('li').hide(); $('.product-nav__subnav').find('.count-1').find('li').find('div.linkmenu_arrow:first').show(); $('.product-nav__subnav').find('.count-1').find('li').show(); $('.product-nav__subnav').find('ul').removeClass('count_Ten'); $('.product-nav__subnav').find('.count-1').addClass('count_Ten'); $('.product-sub-parentName >span').show() if($(window).width() > 992){ $('.product-nav__subnav').find('ul').find('li').removeClass('animtions_dismiss').addClass('animtions_selected').show(); } $('.product-nav__subnav').find('li').css('border-bottom','1px solid rgba(255, 255, 255 ,0.1)'); $('.product-sub-parentName').find('.maintileSubparentName').removeClass("Breadcrumb-text") $('.maintileSubparentName,.staticlinkTitle ').find('svg').addClass('hidden'); $('.product-sub-parentName').find('.maintileSubparentName').find('svg').addClass("animtions_slidebackwards"); $('.product-sub-parentName').find('.product-sub-child').find('.submenu-title').find('svg').addClass("animtions_slidebackwards"); }); } $(document).on('click','.product-nav-ELgas .linkmenuClick a',function(evt){ evt.preventDefault(); }); $( ".product-nav-ELgas .product-nav__item ").mouseover(function(ev){ $('.product-nav-ELgas .product-nav__subnav').find('.count-1').addClass('count_Ten'); var dynamiCount = $(ev.currentTarget).find('.product-nav__subnav ul:first > li').length; if(dynamiCount > 10){ $(ev.currentTarget).find(".product-nav__subnav").addClass('product-nav_Dynamic_height') } }); $( ".maintileSubparentName > a").mouseenter(function(ev){ $('.product-nav-ELgas .product-nav__subnav').find('.count-1').addClass('count_Ten'); }); }); } // $(document).on('click', '.product-nav__subnav .linkmenuClick', function(event) { // if ($('.animtions-container').hasClass('animtions_dismiss')) { // $('.animtions-container').removeClass('animtions_dismiss').addClass('animtions_selected').show(); // } // event.preventDefault(); // }); // $(document).on('click', '.submenu-title a,.maintileSubparentName,.staticlinkTitle', function(event) { // if ($('.animtions-container').hasClass('animtions_selected')) { // $('.animtions-container').removeClass('animtions_selected').addClass('animtions_dismiss'); // } // event.preventDefault(); // });