I am trying to set a cookie with a delayed amount of time.
I want the cookie to be set after 80 minutes on the page.
here is my code –
$(document).ready(function() {
// Set the cookie after 81 mins so the next visit has the button
$.cookie('EVGSalesLetter', 'visited').delay(4860000);
});
.delay()is for the animation queue, to just generally set a timer usesetTimeout(), like this:I didn’t stick this in a
document.readybecause I’m assuming (hopefully safely…) that ater 81 minutes your page has fully loaded 🙂