diff --git a/zsite/static/js/snippets.js b/zsite/static/js/snippets.js index 02025a7..8496879 100644 --- a/zsite/static/js/snippets.js +++ b/zsite/static/js/snippets.js @@ -35,3 +35,8 @@ $(function() { }); +function setCookie(key, value) { + var expires = new Date(); + expires.setTime(expires.getTime() + (1 * 24 * 60 * 60 * 1000)); + document.cookie = key + '=' + value + ';expires=' + expires.toUTCString(); +}