html5 - Javascript: Count number of screen -
We are developing a web application that will use 4 screens. What is the method to calculate the number of screens?
this may help
assuming the rectangular arrangement of the screen and all screens There is a single height and width.
/ / Total window width is divided by single screen width h_screens = Math.round (window.outerWidth / window.screen .availWidth); /// Total window height var v_creens = Math divided by single screen height (Window. Oat / window.screen.availHeight); var total_screens = h_screens * v_creens; -
▆ ▆
▆ ▆
4 = 2 * 2;
Comments
Post a Comment