litt oppdatering av landing-siden
This commit is contained in:
parent
9929d0349f
commit
9f2b5a393b
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"livePreview.defaultPreviewPath": "/oppgaver/uke3/trafikklys.html"
|
||||
}
|
|
@ -22,10 +22,16 @@
|
|||
<div id="heading">Linker skolearbeid:</div>
|
||||
<ol>
|
||||
<li><a href="https://geokkjer.github.io/startit/intro_html">Intro HTML CSS Javascript</a></li>
|
||||
<div id="heading">Uke 1</div>
|
||||
<div id="heading">Uke 1/2</div>
|
||||
<li><a href="https://geokkjer.github.io/startit/team/oppgave1/index2.html">Team-oppgave uke 1.5</a></li>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke1/visuell-teller.html">Visuell teller</a></li>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke1/intro-oppgave.html">Introduksjon</a></li>
|
||||
<div id="heading">Uke 3</div>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke3/bakgrunnsfarge.html">Bakgrunnsfarge</a></li>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke3/lyspære.html">Lyspære</a></li>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke3/stoppeklokke.html">Stoppeklokke</a></li>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke3/this.html">This</a></li>
|
||||
<li><a href="https://geokkjer.github.io/startit/oppgaver/uke3/krokkodille.html">Krokkodille</a></li>
|
||||
|
||||
</ol>
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=<device-width>, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Poeng <span id="points"></span><br>
|
||||
<button onclick="addPoints()">Klikk her</button>
|
||||
|
@ -13,19 +15,22 @@
|
|||
<script>
|
||||
let points = 0;
|
||||
let upgrades = 1;
|
||||
function addPoints(){
|
||||
function addPoints() {
|
||||
points += upgrades;
|
||||
document.getElementById('points').innerHTML = points;
|
||||
};
|
||||
function upgrade(){
|
||||
upgrades++;
|
||||
points -= 10;
|
||||
document.getElementById('points').innerHTML = points;
|
||||
function upgrade() {
|
||||
if (points >= 10) {
|
||||
upgrades++;
|
||||
points -= 10;
|
||||
document.getElementById('points').innerHTML = points;
|
||||
}
|
||||
}
|
||||
function reset(){
|
||||
function reset() {
|
||||
points = 0;
|
||||
upgrades = 1;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
0
oppgaver/uke3/krokodille.html
Normal file
0
oppgaver/uke3/krokodille.html
Normal file
Loading…
Reference in a new issue