1
I have an adult entertainment site and I need to do an 18-year term to get on the site before... A screen will be displayed confirming the age and such of the person to click ok if it is bigger. But the jquery code no longer runs for the user. Can someone help me? The desing and javascript part are already 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>
What is the back-end language? I would recommend sessions.
– Guilherme Nascimento
Codeigniter, but in this case I can use Php or even simple html
– Bruno Roberto
What version of Codeigniter? 3?
– Guilherme Nascimento
Yes, the 3. Exactly,
– Bruno Roberto