Sha256: a06ac55ac43c319c78ac91b6804146bc9d120e696ae574b5ae0d96fed4cb7f72

Contents?: true

Size: 749 Bytes

Versions: 3

Compression:

Stored size: 749 Bytes

Contents

$(function() {

    $('#side-menu').metisMenu();

});

//Loads the correct sidebar on window load
$(function() {

    $(window).bind("load", function() {
        console.log($(this).width())
        if ($(this).width() < 768) {
            $('div.sidebar-collapse').addClass('collapse')
        } else {
            $('div.sidebar-collapse').removeClass('collapse')
        }
    })
})

//Collapses the sidebar on window resize
$(function() {

    $(window).bind("resize", function() {
        console.log($(this).width())
        if ($(this).width() < 768) {
            $('div.sidebar-collapse').addClass('collapse')
        } else {
            $('div.sidebar-collapse').removeClass('collapse')
        }
    })
})

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logman-0.1.0 lib/console/static/js/sb-admin.js
logman-0.1.0.alpha lib/console/static/js/sb-admin.js
logman-0.0.2 lib/console/static/js/sb-admin.js