4
Well I have a problem with this modal, it opens so q enters the index.php, but if I change the page by ex for doubts.php and click to return to index.php Alert appears again, has to configure to Alert only appear once and only appear dnv if the person closes the tab?
code :
<script>
function fechaAviso(){
document.querySelector("#tela").style.display = "none";
// jquery abaixo
//$("#tela").hide();
}
</script>
html:
<div id="tela">
<div id="aviso">
<h2>ATENÇÃO</h2>
<p>ESTE SITE (ELOJOBMAX.COM.BR) NÃO POSSUI QUALQUER TIPO DE VÍNCULO E/OU AGREGAÇÃO COM A RIOT GAMES E SUAS MARCAS, BEM COMO SEUS RESPECTIVOS WEBSITES.</p>
<input class="btleave"type="button" value="SAIR DO SITE" onclick="fechaAviso()" />
<input class="btjoin" type="button" value="ESTOU CIENTE E CONCORDO" onclick="fechaAviso()" />
</div>
</div>
Puts the script that opens the modal.
– Leandro Angelo
@Leandroangelo already put bro.
– Felipe
there is what closes...
– Leandro Angelo
That’s all there is in the script
– Felipe
It appears when you load the page .
– Felipe
It’s not a modal button .
– Felipe