Lidarr/frontend/src/Utilities/ResolutionUtility.js

27 lines
465 B
JavaScript
Raw Normal View History

2017-10-07 06:21:06 +00:00
import $ from 'jquery';
2017-09-04 02:20:56 +00:00
module.exports = {
resolutions: {
desktopLarge: 1200,
desktop: 992,
tablet: 768,
mobile: 480
},
isDesktopLarge() {
return $(window).width() < this.resolutions.desktopLarge;
},
isDesktop() {
return $(window).width() < this.resolutions.desktop;
},
isTablet() {
return $(window).width() < this.resolutions.tablet;
},
isMobile() {
return $(window).width() < this.resolutions.mobile;
}
};