A JavaScript library to detect device, viewport, and browser information using plain JavaScript.
Type | ||
---|---|---|
isMobile | isTablet | isDesktop |
Size | ||
---|---|---|
width | height | |
resolution | ||
screenViewport | ||
innerViewport | ||
outerViewport | ||
clientViewport | ||
availViewport | ||
vw - vh |
addressBarSize | |
---|---|
width | height |
scrollBarWidth | |
---|---|
open keyboard (mobile) | |
screenSize (don't use) | ||
---|---|---|
width | height | diagonal |
orientation | |
---|---|
angle | type |
Miscelaneous | |
---|---|
pixelRatio | |
aspectRatio | |
isSafeConnection | |
isFullscreen | |
isPortrait | |
isLandscape | |
workers |