Newer
Older
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
<html>
<head>
<title>Coordinates calculator</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous" />
<!-- Fetch API polyfill, for supporting Internet Explorer -->
<script src="https://cdn.jsdelivr.net/npm/fetch-polyfill@0.8.2/fetch.min.js"></script>
<style>
.hide { display: none; }
.loading {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.7);
z-index: 100000;
}
.spinner-wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}
.spinner-border {
width: 3rem; height: 3rem;
}
</style>
</head>
<body>
<div class="container">
<div class="row mt-5">
<div class="col text-center">
<h2>Coordinates for #LOCATION_NAME#</h2>
<p class="fw-light">Using coords-library #LIB_VERSION#</p>
</div>
</div>
<div class="row">
<div class="col-6 offset-3">
<div class="input-group mt-3 mb-3">
<input type="text" class="form-control" id="object_name" placeholder="Object name" aria-label="Object name" aria-describedby="get_coordinates">
<button class="btn btn-primary" type="button" id="get_coordinates">Get coordinates</button>
</div>
<div class="alert alert-danger hide" role="alert" id="error">
</div>
<div class="row hide" id="result">
<div class="col">
<ul id="result-list">
<!-- results go here -->
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="loading" class="loading hide">
<div class="spinner-wrapper">
<div class="spinner-border text-info" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>