-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (130 loc) · 3.55 KB
/
index.html
File metadata and controls
143 lines (130 loc) · 3.55 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Weather Decoder">
<title>Weather Decoder</title>
<link rel="manifest" href="manifest.json">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 100vh;
background-color: #f0f0f0;
}
h1 {
color: #333;
}
textarea {
width: 90%;
max-width: 600px;
height: 100px;
margin: 10px 0;
font-size: 16px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
font-size: 16px;
padding: 10px 20px;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
table {
width: 100%;
max-width: 600px; /* Begrens bredden */
border-collapse: collapse;
margin: 20px 0;
overflow-x: auto;
display: block; /* Gjør tabellen rullbar */
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
}
th {
background-color: #007bff;
color: white;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
nav {
width: 100%;
background: #007bff;
padding: 10px 0;
display: flex;
justify-content: center;
overflow-x: auto; /* Gjør at den blir scrollbar ved små skjermer */
white-space: nowrap;
}
nav ul {
display: flex;
gap: 10px; /* Mindre gap mellom elementene */
list-style: none;
padding: 0;
margin: 0;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 16px;
font-weight: bold;
padding: 8px 15px;
border-radius: 5px;
transition: background 0.3s;
}
nav ul li a:hover {
background: #0056b3;
}
</style>
</head>
<body>
<!-- Navigeringsmeny -->
<nav>
<ul>
<li><a href="index.html" id="weatherDecoderLink">Værdekoder</a></li>
<li><a href="avalanche.html" id="avalancheDecoderLink">Skreddekoder</a></li>
<li><a href="cmd.html" id="commandLink">Kommandoer</a></li>
</ul>
</nav>
<h1>Weather Decoder</h1>
<p>Paste the encoded weather message below:</p>
<textarea id="encodedMessage" placeholder="Enter the first part of the message..."></textarea>
<textarea id="encodedMessagePart2" placeholder="Enter the second part of the message (if applicable)..."></textarea>
<button id="decodeButton">Decode</button>
<table id="weatherTable">
<thead>
<tr>
<th colspan="6" id="weatherDate">Dato: Ikke angitt</th>
</tr>
<tr>
<th>Time</th>
<th>Weather</th>
<th>Temp (°C)</th>
<th>Precip (mm)</th>
<th>Wind (Gust) m/s</th>
<th>Direction</th>
</tr>
</thead>
<tbody>
<!-- Data fylles inn her av scriptet -->
</tbody>
</table>
<script src="script.js"></script>
</body>
</html>