最大化和最小化日历jquery

时间:2016-09-14 07:11:28

标签: javascript jquery html

我已经创建了一个Calendar.But,我在将它最大化到全屏时遇到了问题。请允许任何人帮助我这样做。

$("#panel-fullscreen").click(function(e) {
    e.preventDefault();
    var $this = $(this);

    if ($this.children('i').hasClass('glyphicon-resize-full')) {
        $this.children('i').removeClass('glyphicon-resize-full');
        $this.children('i').addClass('glyphicon-resize-small');
    } else if ($this.children('i').hasClass('glyphicon-resize-small')) {
        $this.children('i').removeClass('glyphicon-resize-small');
        $this.children('i').addClass('glyphicon-resize-full');
    }
    $(this).closest('.panel').toggleClass('panel-fullscreen');
});

codepen link

0 个答案:

没有答案