Permalink
Browse files

latest

  • Loading branch information...
1 parent ac94a2d commit b822afd26930971df76fdb865c1de1fd841f3e85 @adamsilver committed Apr 17, 2012
Showing with 13 additions and 0 deletions.
  1. +2 −0 index.html
  2. +11 −0 js/jessie/jessie.js
View
@@ -68,5 +68,7 @@
<script type="text/javascript" src="js/mould/mould.Ribbon.js"></script>
<script type="text/javascript" src="js/mould/pages/mould.pages.js"></script>
<script type="text/javascript" src="js/mould/pages/mould.pages.home.js"></script>
+ <script>
+ </script>
</body>
</html>
View
@@ -214,6 +214,16 @@
};
};
+
+ var getViewportSize;
+
+ if(html && 'number' == typeof html.clientWidth) {
+ getViewportSize = function(win) {
+ var html = win.document.documentElement;
+ return [html.clientWidth, html.clientHeight];
+ }
+ };
+
globalDocument = html = null;
global.jessie = {};
@@ -223,5 +233,6 @@
global.jessie.getElementPositionStyles = getElementPositionStyles;
global.jessie.addClass = addClass;
global.jessie.removeClass = removeClass;
+ global.jessie.getViewportSize = getViewportSize;
})(this);

0 comments on commit b822afd

Please sign in to comment.