0.0.4 • Published 7 years ago

browsernavbarheight v0.0.4

Weekly downloads
3
License
WTFPL
Repository
github
Last release
7 years ago

browserNavbarHeight

Calculates the browser navbar height. Helpfull to get real screen height on mobile devices

Installation

npm install browsernavbarheight -save

Old scholl html

<script src="/path/to/browserNavbarHeight.js"></script>

New scool js

require("browsernavbarheight");

Usage in css

    height: calc(100vh - var(--browser-navbar-height,0px));