26.01.2017, 21:27
(This post was last modified: 26.01.2017, 21:29 by Erwin van der Zwart.)
Hi Buuuuudzik,
Use this to get client resolution or calculate your widget by using ...% instead of ...px.
BR,
Erwin
Use this to get client resolution or calculate your widget by using ...% instead of ...px.
Code:
$(window).height(); // returns height of browser viewport
$(document).height(); // returns height of HTML document
$(window).width(); // returns width of browser viewport
$(document).width(); // returns width of HTML document
BR,
Erwin