I have this line
$(document).on('ready', contentLockerShow);
The line will pop up a div called contentLockerWrapper when the page loads, i just wanna delay the pop up for 20 seconds, so i changed the
$(document).on('ready', contentLockerShow);
with
setTimeout(contentLockerShow,20000);
But the contentLockerBackground pop's before the wrapper and the screen is locked before the pop up apears.
this is the function
function contentLockerShow(){
contentLockerBackground.animate({'opacity':'.6'}, 500);
contentLockerWrapper.fadeIn(500);
if(contentLockerCompleted == false){
contentLockerCompleted = true;
console.log(contentLockerCompleted);
}