Sha256: e65cceeec42785b93f15428e570aca4dbc8ac0983c9a730013ea6f1820df9b35

Contents?: true

Size: 914 Bytes

Versions: 2

Compression:

Stored size: 914 Bytes

Contents

// Your own scripts

(function($, document, window, viewport){

    var visibilityDivs = {
        'alias-1': $('<div class="device-alias-1 visible-custom-1"></div>'),
        'alias-2': $('<div class="device-alias-2 visible-custom-2"></div>'),
        'alias-3': $('<div class="device-alias-3 visible-custom-3"></div>')
    };

    viewport.use('Custom', visibilityDivs);



    if( viewport.is('alias-1') ) {
        console.log('Matching: alias-1');
    }

    if( viewport.is('>=alias-2') ) {
        console.log('Matching: >=alias-2');
    }



    // Executes once whole document has been loaded
    $(document).ready(function() {
        console.log('Current breakpoint:', viewport.current());
    });

    $(window).resize(
        viewport.changed(function(){
            console.log('Current breakpoint:', viewport.current());
        })
    );

})(jQuery, document, window, ResponsiveBootstrapToolkit);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/responsive-toolkit/demos/custom/main.js
rails_modular_admin-0.4.0 app/assets/node_modules/responsive-toolkit/demos/custom/main.js