All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.js.init-fullscreen.js Maven / Gradle / Ivy

There is a newer version: 0.33.1
Show newest version
//Toggle fullscreen
var toggleFullScreen = function (e) {
    e.preventDefault();
    var $this = $(this);

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

$(document).ready(function () {
    $(".toggle-fullscreen").each(function (index) {
        $(this).click(toggleFullScreen)
    });
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy