-
Notifications
You must be signed in to change notification settings - Fork 0
A jQuery plugin to get current browser viewport size (page's exact width and height) with support for all browsers.
sandeepjain/browser-viewport
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
-----------------------------------------------------------------------------------------
What is it?
-----------------------------------------------------------------------------------------
A jQuery plugin to get your webpage's viewport size (i.e. page's exact width and height).
-----------------------------------------------------------------------------------------
Requirements
-----------------------------------------------------------------------------------------
- This plugin requires jQuery v1.3.2+
-----------------------------------------------------------------------------------------
Usage guide:
-----------------------------------------------------------------------------------------
- To resize element only once.
$("#element").fitToPage();
- To keep element size in sync with browser size.
$("#element").fitToPage(true);
- Returns current web page size.
var size = $().getPageSize();
-----------------------------------------------------------------------------------------
Support for
-----------------------------------------------------------------------------------------
- IE6+
- Firefox 3.0+
- Opera 9+
- Chrome
- Safari
Doesn't this list include almost all major browser .. (Yes, you are right IE6 is also included in this.)
-----------------------------------------------------------------------------------------
Author
-----------------------------------------------------------------------------------------
This jQuery plugin is developed by Sandeep Jain.
You can read more about him at http://www.jsvrocks.com/about
About
A jQuery plugin to get current browser viewport size (page's exact width and height) with support for all browsers.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published