{"size": 529, "ext": "js", "max_stars_repo_path": "assets/js/cookies.js", "max_stars_repo_name": "minnercrypto/minnercrypto-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/js/cookies.js", "max_issues_repo_name": "minnercrypto/minnercrypto-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/js/cookies.js", "max_forks_repo_name": "minnercrypto/minnercrypto-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.2666666667, "max_line_length": 73, "alphanum_fraction": 0.7731568998}
const botonAceptarCookies = document.getElementById('acept');
const avisoCookies = document.getElementById('cookies-box');
const fondoAvisoCookies = document.getElementById('fondo-aviso-cookies');

if(!localStorage.getItem('cookies-acepted')){
  avisoCookies.classList.add('activo');
  fondoAvisoCookies.classList.add('activo');
}

botonAceptarCookies.addEventListener('click', () => {
  avisoCookies.classList.remove('activo');
  fondoAvisoCookies.classList.remove('activo');

  localStorage.setItem('cookies-acepted', true);
})