There is a certain event, let's say a pop-up window, how to make it pop up for each user 1 time per day?
I have never worked with a cookie, I want to do something like the following:
if(event.pageY < 2 && event.pageX > 1300){ if(cookieSet == null){ var cookieSet = $.cookie("popupcookie", { expires: 1 }); $('#popup').show(); $('#pDis').addClass('parentDisable'); }else{ return; // esli estj cookie } }
if(cookieSet == null){is this how you check for cookies? Read the documentation on how to get it. Vasily Barbashev will never have acookieSeton your page -