mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-22 02:47:20 +02:00
14 lines
335 B
JavaScript
14 lines
335 B
JavaScript
var mediaQueries = mediaQueries || {};
|
|
|
|
mediaQueries.IsScreenWidthLessThen = function (width) {
|
|
let mql = window.matchMedia(`(max-width: ${width}px)`);
|
|
return mql.matches;
|
|
};
|
|
|
|
mediaQueries.ScreenWidth = function () {
|
|
return window.innerWidth;
|
|
}
|
|
|
|
mediaQueries.ScreenHeight = function () {
|
|
return window.innerHeight;
|
|
} |