-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (78 loc) · 2.32 KB
/
index.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
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en-ca">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, interactive-widget=resizes-content"
/>
<meta
name="description"
content="Display maidenhead locator (any length) as a rectangle on a map"
/>
<title>Subsquare</title>
<link href="/favicon.svg" rel="icon" />
<link href="/favicon.png" rel="icon" />
<link href="/favicon.ico" rel="icon" />
<link rel="stylesheet" href="style.css" />
<script src="script.js" defer></script>
</head>
<body>
<h1>Subsquare</h1>
<link rel="stylesheet" href="leaflet/leaflet.css" />
<script src="leaflet/leaflet.js"></script>
<style>
.foot {
position: fixed;
bottom: 0;
color: grey;
}
</style>
<div
id="map"
style="
position: fixed;
top: 0;
left: 0;
width: 100%;
width: 100dvw;
height: 100%;
height: 100dvh;
border: none;
cursor: default;
"
></div>
<div
style="
position: fixed;
top: 0;
left: 0;
background-color: white;
color: black;
"
>
Any length
<a
href="https://en.wikipedia.org/wiki/Maidenhead_Locator_System#Description_of_the_system"
target="_blank"
>locator</a
>:
<input
id="input"
oninput="location.hash = this.value.toLowerCase()"
spellcheck="off"
autocomplete="off"
autofocus
/>
</div>
<script src="script.js"></script>
<p class="foot">
<i>
This page last changed Jun 05 2023; created Oct 18 2021;
<a target="_blank" href="https://github.com/jkoop/subsquare"
>source on GitHub</a
>;
</i>
</p>
</body>
</html>