Page "Usługi"

This commit is contained in:
2025-08-28 15:41:26 +02:00
parent 1118b1543c
commit 468136d4d1
5 changed files with 1050 additions and 1 deletions

View File

@@ -63,3 +63,29 @@ jQuery(function ($) {
.closest('.tile').removeClass('active');
});
});
jQuery(function ($) {
$('body').on('click', '.c-tabs .c-tabs--nav li', function (e) {
e.preventDefault();
let tabId = $(this).attr('tab_id');
$(this).closest('.c-tabs').find('.c-tabs--nav li').not(this).removeClass('active');
$(this).addClass('active');
$(this).closest('.c-tabs').find('.c-tabs--content [tab_id]').not('[tab_id=' + tabId + ']').hide();
$(this).closest('.c-tabs').find('.c-tabs--content [tab_id=' + $(this).attr('tab_id') + ']').show();
});
$('.c-tabs .c-tabs--nav li:first-child').trigger('click');
$('body').on('click', '.c-acc .c-acc--item .c-acc--head', function (e) {
e.preventDefault();
$(this).closest('.c-acc').find('.c-acc--item').not($(this).closest('.c-acc--item')).removeClass('active');
$(this).closest('.c-acc--item').toggleClass('active');
$(this).closest('.c-acc').find('.c-acc--item .c-acc--body').not($(this).next('.c-acc--body')).slideUp(200);
$(this).next('.c-acc--body').slideToggle(200);
});
});