GUI (Library) - dingojs/dingo.js GitHub Wiki
The GUI library offers help when creating Graphical User Interfaces and with various functions related to the GUI. There are plans to expand this library in the future to offer better templates for all forms of user input.
Check orientation:
portrait();//returns true if portrait
landscape();//returns true if landscape
Browser Dimensions:
browserwidth();
browserheight();