Giter Club home page Giter Club logo

mageprofis_responsivetoolkit's Introduction

MageProfis_ResponsiveToolkit

###Mobile toolbar If the Screen Size matches Bootstraps "xs" viewport, the default breadcrumb is removed and a Mobile-User friendly dropdown is created.

###Responsive js tools When this module is active you can use the "responsive"-object.

The isBreakpoint() - Method gives you the ability to exactly match bootstraps breakpoints with js easily. Just pass the breakpoint you want to test for.

example:

if(responsive.isBreakpoint('xs'))
{
    //Do some mobile Specific stuff here.
}

The isTouchDevice Method is a shorthand to find out if the current Breakpoint is a touch device or not.

example:

if(responsive.isTouchDevice())
{
    //Do some Touch Specific stuff here.
}

##Recommended Usage (@see responsive_tools.js):

jQuery(document).ready(function () {

    /*******************************************************
     * Large desktop
     *******************************************************/
    if (responsive.isBreakpoint('lg')) {

    }

    /*******************************************************
     * small desktop
     *******************************************************/
    else if (responsive.isBreakpoint('md')) {
        
    }

    /*******************************************************
     * tablet
     *******************************************************/
    else if (responsive.isBreakpoint('sm')) {

    }

    /*******************************************************
     * mobile
     *******************************************************/
    else if (responsive.isBreakpoint('xs')) {

    }
});

jQuery(window).resize(function () {

    /*******************************************************
     * Large Desktop
     *******************************************************/
    if (responsive.isBreakpoint('lg')) {

    }

    /*******************************************************
     * small Desktop
     *******************************************************/
    else if (responsive.isBreakpoint('md')) {

    }

    /*******************************************************
     * tablet
     *******************************************************/
    else if (responsive.isBreakpoint('sm')) {

    }

    /*******************************************************
     * Mobile
     *******************************************************/
    else if (responsive.isBreakpoint('xs')) {

    }
});

mageprofis_responsivetoolkit's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.