Filter
$(document).ready(function(){ var showPopupDelay = 5000;var showPopupLiveTime = 5; if(localStorage.lastPopup){if((localStorage.lastPopup - Date.now() ) / (1000*60*60*24*showPopupLiveTime) >= 1){ setTimeout(function() {$('#popup').modal('show');}, showPopupDelay);localStorage.lastPopup = Date.now();}} else {localStorage.lastPopup = Date.now();setTimeout(function() {$('#popup').modal('show');}, showPopupDelay);}; $('.popup-modal .modal-close').click(function(e){$('#popup').modal('hide');}); });