{"size": 580, "ext": "js", "max_stars_repo_path": "public/js/articulos.js", "max_stars_repo_name": "IRaidex/SportCenterSpeedUp", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/articulos.js", "max_issues_repo_name": "IRaidex/SportCenterSpeedUp", "max_issues_repo_issues_event_min_datetime": "2021-02-02T17:35:46.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T04:21:43.000Z", "max_forks_repo_path": "public/js/articulos.js", "max_forks_repo_name": "IRaidex/SportCenterSpeedUp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 30.5263157895, "max_line_length": 169, "alphanum_fraction": 0.5931034483}
$(function(){
    
    //Funcion que que recibe un elemento y una cantidad de caracteres, y cuando el elemento llega a esa cantidad de caracteres añade '...' y el texto restante desaparece
    function ellipsis_box(elemento, max_chars){
        limite_text = $(elemento).text();
        if (limite_text.length > max_chars)
        {
            limite = limite_text.substr(0, max_chars)+" ...";
            $(elemento).text(limite);
        }
    }

    var elemento = $('.limitado');

    for(var i=0 ; i<elemento.length ; i++){
        ellipsis_box(elemento[i], 500);
    }

});