deleted som folder and cleaned up a little bit

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-26 08:55:24 +02:00
parent 845c6fa62f
commit 604e8181c6
11 changed files with 14 additions and 84 deletions

View file

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href=""/>
<script src="script.js"></script>
</head>
<body>
Hello World!
</body>
</html>

View file

@ -1 +0,0 @@
console.log("Hello world");

View file

@ -1,6 +0,0 @@
let firstName, lastName;
firstName = 'Geir';
lastName = 'Jerstad';
console.log(firstName, lastName);
const JUL_2024 = '24.12.2024';
console.log(JUL_2024);

View file

@ -1,45 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css"/>
<script src="script.js"></script>
</head>
<script>
</script>
<body>
<style>
</style>
<h1>Overskrift</h1>
<h1>Overskrift</h1>
<h1>Overskrift</h1>
<h1>Overskrift</h1>
<div class="purple">Exercitation et ad cillum laboris proident id eiusmod cupidatat. Proident deserunt ipsum in aute magna
adipisicing Lorem velit exercitation eu ut. Mollit in minim est in Lorem ut adipisicing sunt elit veniam. Culpa
sunt eu excepteur nulla laboris qui in. Quis pariatur commodo esse mollit exercitation laboris dolore. Esse enim
consequat aute nisi anim aute qui culpa dolore mollit occaecat labore dolor est. Ex laboris enim et
reprehenderit do eiusmod consequat dolor esse.</div>
<div>Exercitation et ad cillum laboris proident id eiusmod cupidatat. Proident deserunt ipsum in aute magna
adipisicing Lorem velit exercitation eu ut. Mollit in minim est in Lorem ut adipisicing sunt elit veniam. Culpa
sunt eu excepteur nulla laboris qui in. Quis pariatur commodo esse mollit exercitation laboris dolore. Esse enim
consequat aute nisi anim aute qui culpa dolore mollit occaecat labore dolor est. Ex laboris enim et
reprehenderit do eiusmod consequat dolor esse.</div>
<div>Exercitation et ad cillum laboris proident id eiusmod cupidatat. Proident deserunt ipsum in aute magna
adipisicing Lorem velit exercitation eu ut. Mollit in minim est in Lorem ut adipisicing sunt elit veniam. Culpa
sunt eu excepteur nulla laboris qui in. Quis pariatur commodo esse mollit exercitation laboris dolore. Esse enim
consequat aute nisi anim aute qui culpa dolore mollit occaecat labore dolor est. Ex laboris enim et
reprehenderit do eiusmod consequat dolor esse.</div>
<div>Exercitation et ad cillum laboris proident id eiusmod cupidatat. Proident deserunt ipsum in aute magna
adipisicing Lorem velit exercitation eu ut. Mollit in minim est in Lorem ut adipisicing sunt elit veniam. Culpa
sunt eu excepteur nulla laboris qui in. Quis pariatur commodo esse mollit exercitation laboris dolore. Esse enim
consequat aute nisi anim aute qui culpa dolore mollit occaecat labore dolor est. Ex laboris enim et
reprehenderit do eiusmod consequat dolor esse.</div>
</body>
</html>

View file

@ -1,13 +0,0 @@
div.purple {
background-color: purple;
color: white;
padding: 10px;
border: solid 4px blue;
margin: 20px;
text-align: center;
font-size: 150%;
}
h1 {
background-color: black;
color: bisque;
}

View file

@ -0,0 +1,11 @@
<!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>
</body>
</html>

View file

@ -46,9 +46,8 @@
} }
function check() { function check() {
let operator = document.getElementById("operator").value; let operator = document.getElementById("operator").value;
console.log(operator) if (operator = '=') {
if (operator == '=') { operator = '==';
operator == '==';
} }
console.log(eval(number1 + operator + number2)); console.log(eval(number1 + operator + number2));
if (eval(number1 + operator + number2)) { if (eval(number1 + operator + number2)) {
@ -56,7 +55,6 @@
document.getElementById('points').innerHTML = `${points}`; document.getElementById('points').innerHTML = `${points}`;
} else { } else {
alert('It is Wrong! to use Alert'); alert('It is Wrong! to use Alert');
console.log(operator)
} }
} }
</script> </script>

View file

@ -34,7 +34,7 @@
on = true; on = true;
} else { } else {
document.getElementById('bulb').style.backgroundColor = 'grey'; document.getElementById('bulb').style.backgroundColor = 'grey';
document.getElementById('bulb').innerHTML = ''; document.getElementById('bulb').innerHTML = 'Lyset er av :-(';
on = false; on = false;
} }
} }