Page "Usługi"
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user