1
I have the following problem: I would like to click on a div in which after for example 7 minutes display another div.
I think in theory the solution would be: When the click was made, you should take the current time and add the condition of increment of 7 minutes, that when arriving in this condition the div was displayed. Of course, if there are better possibilities, please tell me.
But in practice I couldn’t do it using javascript. Is that really possible? Could someone exemplify?
This is the div that will receive the click, it contains an embedded video
<div class="row mt-5 mb-5">
<div class="col-sm-8 col-12 wow animated fadeInDown" data-wow-duration="4s" data-wow-delay="0.6s" style="margin: 0 auto; width: 50%;">
<iframe id="video-msr" src="#" width="100%" height="558" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
</div>
</div>
This is the div that should be displayed after the click is made
<div class="row btn-linha-compra btnFixo">
<div class="col-sm-6 col-12 text-center" style="margin: 0 auto; width: 50%;">
<button class="btn-compra" data-wow-delay="0.6s">
<div class="wow pulse" data-wow-iteration="infinite">
<a id="link-compra" href="#" target="_blank">ACESSAR AGORA</a>
</div>
</button>
</div>
</div>
Perfect, worked perfectly, I’m just having trouble catching the click on iframe
– WPfan