Skip to content
This repository has been archived by the owner. It is now read-only.
JQuery Plugin to handle browser resizing
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

#Respond (jQuery Plugin) written to fire events when the browser hits given sizes (the bootstrap breakpoints by default)

##Talk about it ![Gitter]( Chat.svg)

##Getting started This plugin requires jQuery to function jQuery can be downloaded or called from here

In the head of your document add the following lines:

<script type="text/javascript" src="//"></script>
<script type="text/javascript" src="./path/to/plugin/respond.min.js"></script>
<script type="text/javascript">
    var onFunctions = {
        on: {
            is: {
                xs: function(){console.log('is xs')},
                sm: function(){console.log('is sm')},
                md: function(){console.log('is md')},
                lg: function(){console.log('is lg')}
            was: {
                xs: function(){console.log('was xs')},
                sm: function(){console.log('was sm')},
                md: function(){console.log('was md')},
                lg: function(){console.log('was lg')}
        function() {

The above will output the "is" size and "was" size to the console when each size is hit and on first run.


See the example

You can’t perform that action at this time.