One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
(function($){ | |
$.fn.fullscreenr = function(options) { | |
if(options.height === undefined) alert('Please supply the background image height, default values will now be used. These may be very inaccurate.'); | |
if(options.width === undefined) alert('Please supply the background image width, default values will now be used. These may be very inaccurate.'); | |
if(options.bgID === undefined) alert('Please supply the background image ID, default #bgimg will now be used.'); | |
var defaults = { width: 1280, height: 1024, bgID: 'bgimg' }, | |
options = $.extend({}, defaults, options); | |
$(document).ready(function() { $(options.bgID).fullscreenrResizer(options); }); | |
$(window).bind("resize", function() { $(options.bgID).fullscreenrResizer(options); }); | |
return this; |