summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-07-31 23:07:38 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-07-31 23:07:38 -0600
commitcc2711dce99972f60bf590fe858b2eaa9d0d2397 (patch)
treeb41b3bea10d7aef174158c0dfb030b4e7fdf0af4 /lib
parent9d70f142199f4f3c3ec63fcbb125f5c33c91d9ec (diff)
parentf034c6c534ad6a07dacc6e64c7e6b43f139c3831 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js14
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);