Skip to content
Snippets Groups Projects
Commit 3a027b94 authored by benjamin.sitbon's avatar benjamin.sitbon
Browse files

ajustement

parent 60e28a31
No related branches found
No related tags found
No related merge requests found
...@@ -97,15 +97,19 @@ function createArticle(name,number,type1,type2,attacks,talent,shiny){ ...@@ -97,15 +97,19 @@ function createArticle(name,number,type1,type2,attacks,talent,shiny){
pokemon.appendChild(typeAndName); pokemon.appendChild(typeAndName);
pokemon.appendChild(title); pokemon.appendChild(title);
let box = document.createElement("div");
box.className = "attackbox";
for(let i = 0; i<attacks.length; i++){ for(let i = 0; i<attacks.length; i++){
let attack = document.createElement("p"); let attack = document.createElement("p");
attack.className = "text"; attack.className = "text";
attack.innerHTML = attacks[i]; attack.innerHTML = attacks[i];
pokemon.appendChild(attack); box.appendChild(attack);
} }
pokemon.appendChild(box);
pokemon.appendChild(talentName) pokemon.appendChild(talentName)
pokemon.appendChild(price); pokemon.appendChild(price);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment