0
I have a problem.
I have a Javascript library that creates a slider that can be folded horizontally.
What I need is that the height of the block has a specific height according to the viewport
browser.
For example:
If the browser has 600px
, the block will have 600px - 50px
, getting the height of 550px
If the browser has 768px
, the block would have 718px
.
I discovered in the library the following code fragment
slider.viewport.height(getViewportHeight());
I guess I’d have to work with that. Can someone give an idea or indicate a path?
Grateful.