diff --git a/index.html b/index.html index 9b1e796..724d1ca 100644 --- a/index.html +++ b/index.html @@ -46,6 +46,10 @@
Uke 6
  • Team Oppgave Kul Bil
  • Magic 8-ball
  • +
    Uke 6
    +
  • gjenkjenn_epost
  • +
  • reaksjonstid
  • +
  • ternary operators
  • Helg og refaktorering
  • Tester react
  • diff --git a/oppgaver/uke7/pokemon/script.js b/oppgaver/uke7/pokemon/script.js index e9bb379..3ee9ddd 100644 --- a/oppgaver/uke7/pokemon/script.js +++ b/oppgaver/uke7/pokemon/script.js @@ -88,14 +88,13 @@ function catchPokemon() { } function showPokemon() { - app.classList = ''; + app.style = null; app.innerHTML = ''; for (i = 0; i < bjarne.pokemon.length; i++){ - app.innerHTML += /*HTML*/ ` - - -
    NavnLevel
    ${bjarne.pokemon[i].name}${bjarne.pokemon[i].level}
    + app.innerHTML = /*HTML*/ ` + +
    ${bjarne.pokemon[i].name}
    `; } app.innerHTML += /*HTML*/`