-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalendar.html
More file actions
65 lines (62 loc) · 2.01 KB
/
calendar.html
File metadata and controls
65 lines (62 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description"
content="A page to find the rise and set times of the moon for any location. Uses goole maps to find your location.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Calendar</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="static/styles.css">
</head>
<body class="calendar-page">
<div class="container">
<header>
<div class="header-row">
<h1 class="header-title">📅 Moon Rise and Set Calendar</h1>
<div class="spacer"></div>
<nav class="nav">
<a class="nav-link" href="/"><i class="material-icons" style="font-size: 18px;">home</i> Home</a>
<a class="nav-link" href="about">About</a>
<a class="nav-link current" href="calendar">Calendar</a>
</nav>
</div>
</header>
<main>
<div class="page-content">
<div class="card">
<table>
<thead>
<tr>
<th>Date</th>
<th>Moon Rise</th>
<th>Moon Set</th>
<th>Sun Rise</th>
<th>Sun Set</th>
</tr>
</thead>
<tbody>
{{ range .Rows }}
<tr>
<td>{{.Date}}</td>
<td>{{if .Moon.AlwaysAbove}}Always above{{else if .Moon.AlwaysBelow}}Always below{{else}}{{.Moon.Rise}}{{end}}</td>
<td>{{if .Moon.AlwaysAbove}}Always above{{else if .Moon.AlwaysBelow}}Always below{{else}}{{.Moon.Set}}{{end}}</td>
<td>{{if .Sun.AlwaysAbove}}Always above{{else if .Sun.AlwaysBelow}}Always below{{else}}{{.Sun.Rise}}{{end}}</td>
<td>{{if .Sun.AlwaysAbove}}Always above{{else if .Sun.AlwaysBelow}}Always below{{else}}{{.Sun.Set}}{{end}}</td>
</tr>
{{ end }}
</tbody>
<tfoot>
<tr>
<th colspan="5"> Latitude: {{ .Lat }} Longitude: {{
.Lon }} Timezone {{ .Zon }}</th>
</tr>
</tfoot>
</table>
</div>
</div>
</main>
</div>
</body>
</html>