I have an adult entertainment website and I need to make an 18 year term to enter the site before ... It will be displayed a screen confirming the age and such of the person so she can click ok if it is bigger. But the jquery code does not run any more for the user. can anybody help me? The desing and javascript part is ready:
JS:
jQuery(document).ready(function(){
jQuery('a.accept_legal_majority').click(function(){
jQuery('#cp_overlay').remove();
jQuery('#legal_majority').remove();
jQuery.get('https://www.site.com.br/salvar', function(data){
//console.log(data);
});
});
});
HTML:
<div id="cp_overlay" style="opacity:0.9;"></div>
<div id="legal_majority">
<div class="legal_majority_content">
<div class="header_warning">
<div class="title txt-center">
<h1 style="font-size:22px;"><span class="color-rejected">Aviso: </span>Este website é apenas para adultos!</h1>
</div>
</div>
<div class="terms">
<a class="bg-hover-free btn_submit accept_legal_majority">Eu aceito</a>
</div>
<a href="http://www.google.com" class="legal_majority_out txt-center btn-edit">Não Tenho 18 anos, Desejo Sair</a>
</div>
</div>