I have the following div hidden in the head of my site.
<div id="esperaMensaje" class="mensajeEspera" style="display:none;">
<p>Espere un momento...</p>
</div>
That when the user clicks on the button with the class "continue" The div appears, and then hides after 8 seconds.
I tried using jquery which would be the easiest but it didn't work as I am setting it up in prestashop and it is a bit cumbersome as it is using an old version of jquery so I would like to make it work with pure js.