0

How many px width and heigh is the output in codeplayground?

2nd Aug 2017, 6:07 PM
Frans
3 Respuestas
+ 5
The output in codeplayground isn't fixed: it depend of the device and the interface used: the viewport will have different sizes for each device, and using web site or app' interface will not provide same layouts (as well as depending of orientation and mobile type -- on phones landscape orientation is disabled, but on tablet it will change a few the layout, but almost change the viewport size when device is rotated)...
3rd Aug 2017, 7:05 AM
visph
visph - avatar
+ 3
Use this Jacascript: alert(window.innerWidth+"x"+window.innerHeight)
2nd Aug 2017, 6:16 PM
Ghauth Christians
Ghauth Christians - avatar
+ 2
It might be best to use this instead @Frans: window.onload = function (){ alert(window.innerWidth+"x"+window.innerHeight) }
2nd Aug 2017, 6:21 PM
Ghauth Christians
Ghauth Christians - avatar