 var resizeCheck = 'small';

        $(document).ready(function() {
            $('.btn-zoom').click(function() {
                if (resizeCheck === 'small') {
                    $('.btn-zoom').html('<i class="fa fa-compress"></i> Zoom-');
                    $('.has-sidebar').animate({
                        width: '100%'
                    }, function() {
                        
                        $('.sidebar').css('display', 'none');
                    });
                    resizeCheck = 'large';
                } else if (resizeCheck === 'large') {
                    $('.btn-zoom').html('<i class="fa fa-expand"></i> Zoom+');
                    $('.has-sidebar').animate({
                        width: '70%'
                    }, function() {
                        
                        $('.sidebar').css('display', 'inherit');
                    });
                    resizeCheck = 'small';
                }
            });
        });

$(document).ready(function() {
     
    $('.dp-popular-tab li.get-popular').on('click', function() {
         
        $('.dp-popular-tab li').removeClass('l_active');
         
        $(this).addClass('l_active');

        
        $('.popular-post').addClass('hidden');

         
        var activeTabType = $(this).data('type');  
        $('#' + activeTabType).removeClass('hidden');
    });
});

$(document).ready(function() {
    // 绑定点击事件到.show-more元素
    $('.show-more').click(function() {
        // 切换文本和类名
        $(this).text(function(index, currentText) {
            return currentText === '收起' ? '展开' : '收起';
        }).toggleClass('toggled');
        
        // 切换infobv元素的类名
        $('.infobv').toggleClass('toggled');
        
    
    });
});