Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding javascript utility. Signed-off-by: thebestsophist <bernardy@enguin.com>
- Loading branch information
thebestsophist
committed
Mar 6, 2012
1 parent
c58d999
commit 669ea26
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.