I am using reveal modal to load a popup when my website loads. However the popup loads everytime the page loads. Since a visitor can visit multiple pages or on multiple instances, this limitation is turning out to be bad for our visitors experience.
The following is the js I am using to load the reveal modal once a page is loaded.
jQuery(document).ready(function($) {
/* Pop-up
================================================= */
$(function() {
function showpanel() {
$('.reveal-modal').reveal({
animation: 'fade',
animationspeed: 800
});
}
setTimeout(showpanel, 4000)
});
});
What can I add to ensure that the the reveal modal loads only once in a particular day no matter how many different pages a visitor accesses?
Would appreciate any assistance.
Thanks