-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (71 loc) · 3.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coordinate Transformer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="container">
<h1>Coordinate Transformer</h1>
<p>Convert coordinates between different projections with ease.</p>
</div>
</header>
<main>
<div class="container">
<form id="transform-form">
<div class="form-group">
<label for="sourceProjection">From Projection</label>
<select id="sourceProjection" required>
<option value="EPSG:4326">WGS 84</option>
<option value="EPSG:24547">UTM Zone 47N</option>
<option value="EPSG:24548">UTM Zone 48N</option>
<option value="EPSG:4742">GDM2000</option>
</select>
</div>
<div class="form-group">
<label for="targetProjection">To Projection</label>
<select id="targetProjection" required>
<option value="EPSG:4326">WGS 84</option>
<option value="EPSG:24547">UTM Zone 47N</option>
<option value="EPSG:24548">UTM Zone 48N</option>
<option value="EPSG:4742">GDM2000</option>
</select>
</div>
<div class="form-group">
<label for="longitude">Longitude/Easting EXP:(101.6869° E)</label>
<input type="text" id="longitude" placeholder="Enter longitude or easting" required>
</div>
<div class="form-group">
<label for="latitude">Latitude/Northing EXP:(3.1390° N)</label>
<input type="text" id="latitude" placeholder="Enter latitude or northing" required>
</div>
<div class="form-group">
<label>Result Format</label>
<div>
<label for="format-latlon">Longitude/Latitude</label>
<input type="radio" id="format-latlon" name="resultFormat" value="latlon" checked>
</div>
<div>
<label for="format-eastnorth">Easting/Northing</label>
<input type="radio" id="format-eastnorth" name="resultFormat" value="eastnorth">
</div>
</div>
<button type="submit">Transform</button>
</form>
<div id="result"></div>
</div>
</main>
<footer>
<div class="container">
<p>© 2024 Coordinate Transformer. All rights reserved.</p>
<img class="logo" src="https://people.utm.my/wp-content/uploads/2019/03/LOGO-UTM.png" alt="Logo from URL">
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.6.2/proj4.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="app.js"></script>
</body>
</html>