Method to detect breakpoints with Javascript.
It returns "true" if the conditions defined are met. This utiliy uses mobile-fist methodology.
##Support
Internet Explorer 10+. It uses window.matchmedia.
##Instalation
###Bower
bower install respondTo###Manually
Download respondTo.min.js from the dist folder and add it to your project.
##Usage
Detect mobile breakpoint (max-width: 767px):
respond.to('mobile');Detect tablet breakpoint (min-width: 767px) and (max-width: 1023px):
respond.to('tablet');Detect desktop breakpoint (min-width: 1023px):
respond.to('desktop');Custom breakpoint. Just send a number with the breakpoint you want to use. It will use it in a min-width conditional:
respond.to(1280);Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jose Pablo Granados
Copyright (c) 2016 Jose Pablo Granados Released under the MIT license
