Thread Starter
mbay
(@mbay)
Hello ITRO Team,
I noticed the audio continues to play when an ITRO Popup is closed if the video is still playing; if it is paused, this not does not occur.
I hope this helps in fixing this issue, and looking forward to your response!
Hi @mbay,
try in this way:
in file scripts/itro-scripts.js insert at line 7:
jQuery(document).on('click','#close_cross',function(){
jQuery('#popup_content').remove();
});
Now, when you click on close button, the sound stops.
Hi
Thread Starter
mbay
(@mbay)
That worked great, frafra85 – thank you very much!
Thread Starter
mbay
(@mbay)
Hello frafra85,
I re-opened this thread as I noticed when navigating to another page, then returning to the page that had the video pop-up plays the sound even though the video is not present – can this too be resolved?
Thank You in advance!
Hi, try in this way:
find function “intro_enter_anim()”
and replace it with:
function itro_enter_anim()
{
if( document.cookie.indexOf("popup_cookie") == -1 || itro_is_preview === true )
{
itro_popup.style.visibility = '';
itro_opaco.style.visibility = '';
itro_popup.style.display = 'none';
itro_opaco.style.display = 'none';
jQuery("#itro_opaco").fadeIn(function()
{
jQuery("#itro_popup").fadeIn();
if( itro_age_restriction === false )
{
itro_set_cookie("popup_cookie","one_time_popup", itro_cookie_expiration);
}
});
}else{
jQuery('#popup_content').remove();
}
}
Thread Starter
mbay
(@mbay)
Hello frafra85,
thank you for the quick response – much appreciated! It seems to have solved the issue – thank you very much!
Awesome plugin, I need a little help. I am having the same problem as above only when I set a Popup delay other than o. When I set the Popup delay to let’s say 24 hours, the video plays fine and disappears fine, when I refresh the page, the audio from the video plays in the back ground but the videos does not pop up. I went ahead and replaced the code above and the issue still is there. It only happens when i set a Popup delay. Any help would much appreciated. Thanks in advance. Andy