Allaur,
строку 13
$('#block').fadeIn(500);
замените на
(function(num, key, fn, duration) {
var ar = JSON.parse(localStorage.getItem(key) || "[]");
var date = new Date;
ar = ar.filter(function(time) {
return time > date.getTime()
});
if(ar.length < num) {
ar.push(date.getTime() + duration);
localStorage.setItem(key, JSON.stringify(ar));
fn(ar.length)
}
})(1, 'depository', function(length) {
$('#block').fadeIn(500);
}, 24 * 60 * 60 * 1000 * 4)
1 раз за 4 дня