So, i have small quiz with timer mode. I set 2 minutes to answer my question but after 1 minutes user refresh the page, timer back to 2 minutes
I follow countdown library http://keith-wood.name/countdown.html
var def = 2 * 60 * 1000;
var now = new Date();
var timer = new Date(now.getTime() + def);
$('#countdown').countdown({until: timer});
I need to record 1 minutes left, maybe using cookie https://github.com/carhartl/jquery-cookie is best way ? but how ? somebody can give me example code ?