Skip to content

Commit

Permalink
Moving folders adding js
Browse files Browse the repository at this point in the history
Adding javascript utility.

Signed-off-by: thebestsophist <bernardy@enguin.com>
  • Loading branch information
thebestsophist committed Mar 6, 2012
1 parent c58d999 commit 669ea26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions js/plugin.js
@@ -0,0 +1,8 @@
// This requires jQuery to function properly

// Sets window properties as cookies for server-side optimizations
$(window).resize(function () {
document.cookie = "screen-height=" + $(window).height() + "; path=/";
document.cookie = "screen-width=" + $(window).width() + "; path=/";
document.cookie = "screen-orientation" + window.orientation + ";path=/";
});
File renamed without changes.

0 comments on commit 669ea26

Please sign in to comment.