-
Notifications
You must be signed in to change notification settings - Fork 0
/
dinner_count.html
63 lines (47 loc) · 1.52 KB
/
dinner_count.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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<body style="background-color:#F3F3F3;">
<head>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PZZFNMNS8Z"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PZZFNMNS8Z');
</script>
<title> Om ETETID!</title>
</head>
<body>
<h1>Hvor mange middager kan jeg velge mellom?</h1>
<p id="result">Loading...</p>
<script>
// Load the CSV file
var request = new XMLHttpRequest();
request.open("GET", "data.csv", true);
request.onload = function() {
// Parse the CSV data
var csvData = request.responseText;
var csvRows = csvData.split("\n");
var rowCount = csvRows.length;
// Update the HTML element with the row count
var resultElement = document.getElementById("result");
resultElement.innerHTML = "Du kan velge mellom " + rowCount + " middager!";
};
request.send();
</script>
</body>
<body>
<h2> Hvor finner jeg oppskriften til middagen jeg har valgt?</h2>
<p> På internett finnes mange oppskrifter på de fleste middagene i lista, lykke til! <p>
</body>
<h2> Buen provecho!</H1>
<p> Hilsen Gard </p>
<div class="button-container">
<button id="back-button" onclick="location.href='index.html'">Tilbake</button>
</div>
</body>
</html>