From 05600723927da0080f36985eb08c8870d6e989e5 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Fri, 20 Sep 2024 14:54:59 +0200 Subject: [PATCH] added links --- index.html | 4 ++++ oppgaver/uke7/pokemon/script.js | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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*/`