I just implemented a youtube-popup with magnific-popup and this is the code I'm using:
setTimeout(function(){
$.magnificPopup.open({
items: {
src: 'http://www.youtube.com/watch?v=0O2aH4XLbto'
},
type: 'iframe'
});
}, 5000)
I would now like to show this popup for every user that visit the page only once for every user. Is there any possibility to do that? The problem I have is, that I can only implement the code in a global footer (it is not my page) and it would load on every subpage as well (which would be a bad idea).