Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function viewport() {
- var e = window, a = 'inner';
- if (!('innerWidth' in window )) {
- a = 'client';
- e = document.documentElement || document.body;
- }
- return { width : e[ a+'Width' ] , height : e[ a+'Height' ] };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement