calculate vh in pixels js code example
Example: js how to convert vh to pixel
Not necessarily screen.height * 0.65, but viewport.height * 0.65. Even though a Windows 8 app will always have the same height, regardless of the snapped state, this is an important difference in browser-based applications.
In JavaScript:
document.documentElement.clientHeight * 0.65;