Save
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user