This commit is contained in:
Roman Pyrih
2026-05-13 12:37:36 +02:00
parent 9492e2cd88
commit 5db73191ed
5 changed files with 488 additions and 5 deletions

View File

@@ -30,3 +30,22 @@ $(function () {
$(this).find('p').toggleClass('active')
})
})
$(function() {
if ($('#glassingApp').length) {
$('body').on('click', '.box-3 .tabs-nav .tab-item', function(e) {
e.preventDefault()
let tabId = $(this).data('tab')
let isActive = $(this).hasClass('active')
$('.box-3 .tabs-nav .tab-item').removeClass('active')
$('.box-3 .tab-content').removeClass('active').slideUp()
if (!isActive) {
$(this).addClass('active')
$(`.box-3 .tab-content[id="${tabId}"]`).addClass('active').slideDown()
}
})
}
})