feat: media query added

This commit is contained in:
Michael Shabanov committed 2021-10-25 18:34:55 +03:00
1 parent bebb5ee692
commit d3e1e52e19
7 files changed
+45

No files matched your search

@@ -0,0 +1,6 @@
var mediaQueries = mediaQueries || {};
mediaQueries.IsScreenWidthLessThen = function (width) {
let mql = window.matchMedia(`(max-width: ${width}px)`);
return mql.matches;
};