fix javascript bug
This commit is contained in:
		
							parent
							
								
									3617475e83
								
							
						
					
					
						commit
						317614f4a8
					
				@ -19,7 +19,6 @@ document.getElementById('characterForm').addEventListener('submit', function(eve
 | 
				
			|||||||
    resultSection.innerHTML = '';
 | 
					    resultSection.innerHTML = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // After existing code, add below lines for the profile rendering
 | 
					    // After existing code, add below lines for the profile rendering
 | 
				
			||||||
    if(data.profile){
 | 
					 | 
				
			||||||
      resultSection.innerHTML += `<strong>Profile:</strong><br/>`;
 | 
					      resultSection.innerHTML += `<strong>Profile:</strong><br/>`;
 | 
				
			||||||
      var profile = data.profile;
 | 
					      var profile = data.profile;
 | 
				
			||||||
      resultSection.innerHTML += ` - Name: ${profile.name}<br/>`;
 | 
					      resultSection.innerHTML += ` - Name: ${profile.name}<br/>`;
 | 
				
			||||||
@ -33,7 +32,7 @@ document.getElementById('characterForm').addEventListener('submit', function(eve
 | 
				
			|||||||
        resultSection.innerHTML += ` - Skin Tone: ${profile.skintone}<br/>`;
 | 
					        resultSection.innerHTML += ` - Skin Tone: ${profile.skintone}<br/>`;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      resultSection.innerHTML += "<br/>";
 | 
					      resultSection.innerHTML += "<br/>";
 | 
				
			||||||
    }
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Display animal-stock if it exists
 | 
					    // Display animal-stock if it exists
 | 
				
			||||||
    if(data['animal-stock']){
 | 
					    if(data['animal-stock']){
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user