Answer the question
In order to leave comments, you need to log in
How can I check and set cookies in my code?
Good afternoon!
I have a problem. I'm not strong in js, I ask for your help!
There is a code:
$(document).ready(function() {
$(document).mousemove(function(pos) {
if(pos.pageY <= 70) {
$('#myModal').modal();
}
});
});
Answer the question
In order to leave comments, you need to log in
$(document).ready(function() {
if (!$.cookie("popup")) {
alert('нет кук');
$.cookie("popup", 1, { expires : 7 });
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question