$('.tab').click(function () { $('.tab').removeClass('active'); $(this).addClass('active'); }); $('.tabs-item-title').click(function () { const expand = $(this).parent().attr('data-expand'); if (expand === 'false') { $(this).parent().attr('data-expand', 'true'); } else { $(this).parent().attr('data-expand', 'false'); } }); // search $('.open-search').click(function () { $(this).parent().parent().children('.menu-group').removeClass('open'); $(this).parent().addClass('open'); $('.section-top-middle').css('opacity', '0'); }); $('.close-search').click(function (event) { $(this).parent().parent().removeClass('open'); $('.section-top-middle').css('opacity', '1'); }); $('.search-btn').click(function (event) { }); $('.open-menu-group').click(function (event) { $(this).parent().addClass('open'); $(this).parent().parent().children('.search-group').removeClass('open'); }); $('.close-menu-group').click(function (event) { $(this).parent().removeClass('open'); }); $(document).ready(function () { });