This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Auto opening widget, Changing camera view in 1 small widget
#25
Hi Buuuuudzik,

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
Reply


Messages In This Thread
RE: Auto opening widget, Changing camera view in 1 small widget - by Erwin van der Zwart - 26.01.2017, 21:27

Forum Jump: