<script>
jQuery(window).load(function(){
var now, lastDatePopupShowed;
now = new Date();
if (localStorage.getItem('lastDatePopupShowed') !== null) {
lastDatePopupShowed = new Date(parseInt(localStorage.getItem('lastDatePopupShowed')));
}
if (((now - lastDatePopupShowed) >= (1 * 1)) || !lastDatePopupShowed) {
setTimeout(function(){
$.
magnificPopup.open({
items: { src: '#lid-form' },
type: 'inline'
});
}, 2000);
localStorage.setItem('lastDatePopupShowed', now);
}
});
</script>