-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathavalanche.html
More file actions
164 lines (134 loc) · 3.36 KB
/
avalanche.html
File metadata and controls
164 lines (134 loc) · 3.36 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Skreddekoder</title>
<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;
}
.vurdering {
max-width: 90%; /* Begrens bredden til 90% av skjermen */
word-wrap: break-word; /* Bryt linjer */
text-align: left; /* Venstrejustert tekst */
margin: 10px auto; /* Sentraliser og legg til avstand */
font-size: 16px; /* Lesbar størrelse */
}
/* Tabell og rulling */
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>
<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>Skreddekoder</h1>
<textarea id="encodedAvalancheMessage1" placeholder="Lim inn første del av meldingen her"></textarea>
<textarea id="encodedAvalancheMessage2" placeholder="Lim inn andre del av meldingen her"></textarea>
<button id="decodeAvalancheButton">Dekod</button>
<p id="dangerLevels">Faregrader: Ikke angitt</p>
<p id="vurdering" class="vurdering">Vurdering: Ikke angitt</p>
<table id="avalancheTable">
<thead>
<tr>
<th>Type</th>
<th>Årsak</th>
<th>Spredning</th>
<th>Sensitivitet</th>
<th>Størrelse</th>
<th>Høyde</th>
<th>Retning</th>
</tr>
</thead>
<tbody>
<!-- Dekodet informasjon vil vises her -->
</tbody>
</table>
<script src="script2.js"></script>
</body>
</html>