-
Notifications
You must be signed in to change notification settings - Fork 0
/
kontakt.html
76 lines (69 loc) · 2.3 KB
/
kontakt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="nb">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="munch.css">
<link rel="icon" type="img/x-icon" href="img/favicon.ico">
<title>MunchMeter</title>
<style>
main {
margin-top: 100px;
grid-template-columns: none;
}
</style>
</head>
<body>
<main-header></main-header>
<main>
<div class="informasjon">
<h1>Kontakt oss</h1>
</div>
<form id="kontakt-form">
<div class="innhold_kontakt">
<label for="Name">Navn</label>
<div class="input">
<input type="text" id="Name" name="name" required>
</div>
<label for="Email">Din email adresse</label>
<div class="input">
<input type="email" id="Email" name="Email" required>
</div>
<label for="Message">Din melding</label>
<div class="input_kontakt">
<textarea id="kontaktboks" rows="6" maxlength="3000" required></textarea>
</div>
<button type="button" onclick="alertFunction()" id="form-button-kontakt" class="button">Send</button>
<p id="formknapp"></p>
</div>
<div class="kontakt_info">
<p>
<b>E-mail:</b>
<br></br>
</p>
<br>
<p>
<b>Hovedkontor:</b>
<br></br>
A4, realfagsbygget
</p>
</div>
</form>
</main>
<main-footer></main-footer>
<script src="Javascript/munch.js"></script>
<script src="Javascript/navbarAndFooter.js"></script>
<script>
function alertFunction() {
var txt;
if (confirm("Vil du sende inn skjemaet?")) {
txt = "Du har sendt inn skjemaet.";
} else {
txt = "Du har avbrutt innsendingen."
}
document.getElementById("formknapp").innerHTML = txt;
}
</script>
</body>
</html>