Skip to content

Commit

Permalink
set cookie of small or large based on > 480px. (or configurable width)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Apr 2, 2011
1 parent a9bea3d commit 4caba13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rwd-images/rwd-images.js
Expand Up @@ -27,7 +27,7 @@
recordRes = (function(){
var date = new Date();
date.setTime(date.getTime()+(1/*1 day*/*24*60*60*1000));
doc.cookie = "rwd-resolution=" + screen.availWidth + "; expires=" + date.toGMTString() +"; path=/";
doc.cookie = "rwd-imgsize="+ ( wideload ? "large" : "small" ) +"; expires=" + date.toGMTString() +"; path=/";
})();

//if wideload is false quit now
Expand Down

0 comments on commit 4caba13

Please sign in to comment.