added links

This commit is contained in:
Geir Okkenhaug Jerstad 2024-09-20 14:54:59 +02:00
parent 8ca92f7373
commit 0560072392
2 changed files with 8 additions and 5 deletions

View file

@ -46,6 +46,10 @@
<div id="heading">Uke 6</div>
<li><a href="https://geokkjer.github.io/car">Team Oppgave Kul Bil </a></li>
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke6/8ball/index.html">Magic 8-ball</a></li>
<div id="heading">Uke 6</div>
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke7/gjenkjenn_epost/index.html">gjenkjenn_epost</a></li>
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke7/reaksjonstid/index.html">reaksjonstid</a></li>
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke7/reaksjonstid/ternary.html">ternary operators</a></li>
<div id="heading">Helg og refaktorering</div>
<li><a href="https://geokkjer.github.io/startit/react_test/tutorial/index.html">Tester react</a></li>

View file

@ -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*/ `
<table><tr><th>Navn</th><th>Level</th></tr>
<td>${bjarne.pokemon[i].name}</td><td>${bjarne.pokemon[i].level}</td></tr>
</table>
app.innerHTML = /*HTML*/ `
<div>${bjarne.pokemon[i].name}</div>
`;
}
app.innerHTML += /*HTML*/`