Update game.js

This commit is contained in:
IvarK 2016-05-07 14:25:34 +03:00
parent 10f2c55753
commit 835a2caea8

View File

@ -53,7 +53,7 @@ var eightButton = document.getElementById("eight");
var tickSpeedButton = document.getElementById("tickSpeed");
function set_cookie(cookie_name,value) {
expiry = new Date();
expiry.setTime(new Date().getTime() + (10*60*1000));
expiry.setTime(new Date().getTime() + (365*24*60*60*1000));
var c_value=escape(btoa(JSON.stringify(value))) +
"; expires="+expiry.toUTCString();
document.cookie=cookie_name + "=" + c_value;