diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-07-31 23:07:38 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-07-31 23:07:38 -0600 |
commit | cc2711dce99972f60bf590fe858b2eaa9d0d2397 (patch) | |
tree | b41b3bea10d7aef174158c0dfb030b4e7fdf0af4 /lib/gallery.common.js | |
parent | 9d70f142199f4f3c3ec63fcbb125f5c33c91d9ec (diff) | |
parent | f034c6c534ad6a07dacc6e64c7e6b43f139c3831 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'lib/gallery.common.js')
-rw-r--r-- | lib/gallery.common.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 14c28a56..1eaa6db2 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -27,3 +27,17 @@ }); }; })(jQuery); + +// Get the viewport size +(function () { + $.getViewportSize = function() { + return { + width : function() { + return $(window).width(); + }, + height : function() { + return $(window).height(); + } + }; + }; +})(jQuery); |