This commit is contained in:
2025-08-11 10:22:12 +02:00
parent e52d54e657
commit d9c4313dc6
4 changed files with 3685 additions and 3573 deletions

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 it is too large Load Diff

View File

@@ -46,9 +46,27 @@ jQuery(document).ready(function ($) {
}) })
$(document).on('click', '.control-label-nav', function () { $(document).on('click', '.control-label-nav', function () {
$('.control-label-nav').not(this).removeClass('active');
$('.control-label-nav').not(this).parent().parent().removeClass('active');
$('.control-label-nav').not(this).siblings('.form-control-select-custom').slideUp();
$(this).toggleClass('active') $(this).toggleClass('active')
$(this).parent().parent().toggleClass('active') $(this).parent().parent().toggleClass('active')
$(this).siblings('.form-control-select-custom').slideToggle() // $(this).siblings('.form-control-select-custom').slideToggle()
$(this).siblings('.form-control-select-custom').slideToggle(function () {
const $dropdown = $(this).find('.custom-dropdown');
const $items = $dropdown.find('li');
if ($items.length > 5) {
const itemHeight = $items.first().outerHeight(true);
const maxHeight = itemHeight * 5;
const gap = 16;
$dropdown.css({
'max-height': maxHeight + (gap * 4) + 'px'
});
}
});
}) })
}) })
@@ -69,9 +87,9 @@ jQuery(document).ready(function ($) {
}) })
if (elementsToCopy.length) { if (elementsToCopy.length) {
const item1 = $('.blockreassurance_product .item-1') const item0 = $('.blockreassurance_product .item-0')
if (item1.length) { if (item0.length) {
const blockRaty = $( const blockRaty = $(
'<div class="block-raty"><div class="block-raty--wrapper"></div></div>' '<div class="block-raty"><div class="block-raty--wrapper"></div></div>'
) )
@@ -81,15 +99,15 @@ jQuery(document).ready(function ($) {
wrapper.append(element) wrapper.append(element)
}) })
item1.append(blockRaty) item0.append(blockRaty)
} }
} }
} }
$('.blockreassurance_product .item-1 .block-description').on( $('.blockreassurance_product .item-0 .block-description').on(
'click', 'click',
function () { function () {
const blockRaty = $('.blockreassurance_product .item-1 .block-raty') const blockRaty = $('.blockreassurance_product .item-0 .block-raty')
if (blockRaty.length) { if (blockRaty.length) {
blockRaty.slideToggle() blockRaty.slideToggle()
} }