{"size": 2516, "ext": "js", "max_stars_repo_path": "js/characterCreation.js", "max_stars_repo_name": "conjamver/SoulSmite", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/characterCreation.js", "max_issues_repo_name": "conjamver/SoulSmite", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/characterCreation.js", "max_forks_repo_name": "conjamver/SoulSmite", "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": 41.2459016393, "max_line_length": 161, "alphanum_fraction": 0.4662162162}
        var heroClass = document.getElementsByClassName("class-select");
        var heroClassValue = 0;
            
            //When we click on slayer
            heroClass[0].addEventListener("click", function()
            { 
                heroClassValue = 0;
                classContent();
                                    
            });
            
            //When we click on thief
            heroClass[1].addEventListener("click", function()
            { 
                heroClassValue = 1;
                classContent();
                                    
            });

            //When we click on thief
            heroClass[2].addEventListener("click", function()
            { 
                heroClassValue = 2;
                classContent();
                                    
            });

            //When we click on thief
            heroClass[3].addEventListener("click", function()
            { 
                heroClassValue = 3;
                classContent();
                                    
            });
            
            //Change the content on the create class interface
            function classContent(){
                var classTitle = document.getElementById("class-title");
                var classDescription = document.getElementById("class-description");
                
                //change content 
                if(heroClassValue ==0){
                    classTitle.innerHTML = "Demon Slayer";
                    classDescription.innerHTML = "Born from a bloodline of warriors, you start with high health and decent damage.";
                    
                }
                else if(heroClassValue ==1){
                    classTitle.innerHTML = "Blood Thief";
                    classDescription.innerHTML = "Insane and thirsty, you feast off your demons to heal your wounds. You start with an extra potions and money.";
                }
                
                else if(heroClassValue ==2){
                    classTitle.innerHTML = "Hell Mage";
                    classDescription.innerHTML = "A powerful mage capable of casting spells to diminish demons. You deal high damage. ";
                }
                
                else if(heroClassValue ==3){
                    classTitle.innerHTML = "Blessed Soul";
                    classDescription.innerHTML = "Baptized by the cathedral of souls, you have the chance to deal critical damage to demons"
                }
            }