* Function: ng_WindowWidth * Returns window width. * * Syntax: * int *ng_WindowWidth* () * * Returns: * Width of browser's window.
()
| 1225 | * Width of browser's window. |
| 1226 | */ |
| 1227 | function ng_WindowWidth() |
| 1228 | { |
| 1229 | var width=0; |
| 1230 | if(typeof(window.innerWidth)=='number') {width=window.innerWidth;} |
| 1231 | else if(document.documentElement&&document.documentElement.clientWidth) {width=document.documentElement.clientWidth;} |
| 1232 | else if(document.body&&document.body.clientWidth) {width=document.body.clientWidth;} |
| 1233 | if(!width) width=100; |
| 1234 | return width; |
| 1235 | } |
| 1236 | |
| 1237 | /** |
| 1238 | * Function: ng_WindowHeight |
no outgoing calls
no test coverage detected