Sha256: a1fd8894aa5e1a6256eaf4a42839ccc2fbfd959d8c969b5a8b8968159d163b61
Contents?: true
Size: 463 Bytes
Versions: 5
Compression:
Stored size: 463 Bytes
Contents
function hideAnnouncement(announcement_created_at) { createCookie(announcement_created_at, 'hidden', 365); $("#announcement").slideUp(); } // http://www.quirksmode.org/js/cookies.html function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }
Version data entries
5 entries across 5 versions & 1 rubygems