X-Git-Url: http://git.zarb.org/?p=booh;a=blobdiff_plain;f=lib%2Fbooh%2Fhtml-merges.rb;h=23b1d4fc4e097d1a54ff3a57e05a87649607fb46;hp=4ea0da4826db170d941c45487014f53a8763eb77;hb=9480effbfe71ae2d91d5f5615c08f4e744f2a34c;hpb=cfd78b3fd3d0afac75e0a62c773fecb02df5dc4c diff --git a/lib/booh/html-merges.rb b/lib/booh/html-merges.rb index 4ea0da4..23b1d4f 100644 --- a/lib/booh/html-merges.rb +++ b/lib/booh/html-merges.rb @@ -99,6 +99,11 @@ function preload() { function init() { + var expires = new Date(new Date().getTime() + (30 * 86400000)); // 30 days + document.cookie = 'booh-preferred-size-~~theme~~=~~current_size~~' + + '; expires=' + expires.toGMTString() + + '; path=/'; + /* retrieve GET parameters */ all_params = location.href.split("?") if (all_params.length > 1) {