-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (58 loc) · 3.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Map projections calculator</title>
<meta name="description" content="Map Earth's surface to the plane with custom projections">
<meta name="keywords" content="Maps, projections, calculator">
<meta name="author" content="Thomas R. Bromley">
<meta name="viewport" content="initial-scale=1.0, width=device-width">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
<script src="https://unpkg.com/topojson@3"></script>
<script defer src="https://unpkg.com/mathlive@0.98"></script>
<script src="https://unpkg.com/@cortex-js/compute-engine@0.23"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script src="index.js"></script>
<link href="index.css" rel="stylesheet">
</head>
<body>
<nav class="navbar bg-success">
<div class="container text-light">
<h2 class="mx-3 mb-0">Map projections calculator</h2>
<div>
Created by
<a href="https://trbromley.github.io/" style="color: white;" target="_blank">Thomas R. Bromley</a>.
Check out the source code
<a href="https://github.com/trbromley/map_projections_calculator" style="color: white;" target="_blank">here</a>!
</div>
</div>
</nav>
<div class="d-flex justify-content-center mt-3">
<div id="projection"></div>
</div>
<hr color="#198754" style="opacity:1" size="5">
<div class="container">
<div class="row align-items-center">
<div class="col-md d-flex justify-content-center py-1">
<div class="align-self-center px-2">\(x(\lambda, \phi)=\)</div>
<math-field class="align-self-center" id="projection_x" data-bs-toggle="hovers" data-bs-trigger="hover" data-bs-title="Input an expression for 𝑥 that depends on the longitude λ∈[-π,π] and/or the latitude 𝜙∈[-π/2,π/2]." data-bs-placement="top">\frac{\lambda}{\sqrt2}</math-field>
</div>
<div class="col-md d-flex justify-content-center py-1">
<div class="align-self-center px-2">\(y(\lambda, \phi)=\)</div>
<math-field class="align-self-center" id="projection_y" data-bs-toggle="hovers" data-bs-trigger="hover" data-bs-title="Input an expression for y that depends on the longitude λ∈[-π,π] and/or the latitude 𝜙∈[-π/2,π/2]." data-bs-placement="top">\left(1+\frac{2}{\sqrt2}\right)\tan\left(\frac{\phi}{2}\right)</math-field>
</div>
<div class="col-md d-flex justify-content-center py-1">
<button type="button" id="update" class="btn btn-success">Update</button>
</div>
</div>
<div class="row align-items-center">
<div class="col-md d-flex justify-content-center py-1">
<div id="error" class="align-self-center text-danger fw-bold"></div>
</div>
</div>
</div>
</body>
</html>