I get the window height as follows:
var theHeight = "innerHeight" in window ? window.innerHeight : document.documentElement.offsetHeight;
I need a var variable that is Hex minus 50px
How to get it?
Thanks!
If you use jQuery as your tag indicates, you can simply use:
var theHeight = $(window).height() - 50;
That should do it. Just put it on the next line.
theHeight -= 50;
Source: https://habr.com/ru/post/911900/More articles:The default values ββfor constructor arguments in a library project are dependency-injectionBoost.Test on 64-bit Windows - c ++View full screen image without distortion / stretching - androidSpring 3.1 LDAP Authentication Process: Bad Credentials msg When credentials are good - javajQuery Mobile (1.1): disable hiding fixed navigation bar - javascriptRun APK file in Eclipse - androidAndroid Print Intent - androidAndroid: how to print HTML page directly on Samsung Mobile Print - androidASP.net MVC View Model vs ViewData.Model? - c #OpenMP and GSL RNG - performance - implementing 4 threads is 10 times slower than pure sequential (quadcore CPU) - cAll Articles