{"size": 1218, "ext": "js", "max_stars_repo_path": "public/js/eliminar.js", "max_stars_repo_name": "nick130920/Beyond", "max_stars_repo_stars_event_min_datetime": "2020-07-08T12:25:40.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-08T12:25:42.000Z", "max_issues_repo_path": "public/js/eliminar.js", "max_issues_repo_name": "nick130920/Beyond", "max_issues_repo_issues_event_min_datetime": "2021-02-02T19:41:59.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T09:06:04.000Z", "max_forks_repo_path": "public/js/eliminar.js", "max_forks_repo_name": "nick130920/Beyond", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 35.8235294118, "max_line_length": 78, "alphanum_fraction": 0.7717569787}
var eliminar = document.getElementById('eliminar');
var editar = document.getElementById('editar');
var cancelar = document.getElementById('cancelar');
var confirmar = document.getElementById('confirmar');
var botonCancelar = document.getElementById('botonCancelar');

var mensajeConfirmacion = document.getElementById('mensajeConfirmacion');
var contentMensaje = document.getElementById('contentMensaje');
var overlayEditar = document.getElementById('overlayEditar');


eliminar.addEventListener('click',function(){
	mensajeConfirmacion.classList.add('active');
	contentMensaje.classList.add('active');
});

editar.addEventListener('click', function(){
	overlayEditar.classList.add('active');
});
botonCancelar.addEventListener('click', function(){
	overlayEditar.classList.remove('active');
});

cancelar.addEventListener('click', function(){
	mensajeConfirmacion.classList.remove('active');
	contentMensaje.classList.remove('active');
});

confirmar.addEventListener('click', function() {
	mensajeConfirmacion.classList.remove('active');
	contentMensaje.classList.remove('active');
	alertify.set('notifier','position', 'top-right');
    alertify.notify ("Clase eliminada con exito.",'success', 5, function(){});
});