A jQuery plugin to get current browser viewport size (page's exact width and height) with support for all browsers.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
jquery.viewport.js
jquery.viewport.min.js

README

-----------------------------------------------------------------------------------------
  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