-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (93 loc) · 3.04 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
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS and personal styles -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="css/mystyles.css"
</head>
<body>
<div class="container-fluid">
<h1>Create your sun calendar</h1>
<!-- this makes a GET request to URL: here/parameters.html?latidude=..&longitude=....
The name attribute of the input fields is used to create parameter names for the URL! -->
<form action="parameters.html" method="GET">
<div class="mb-3">
<label for="latitude" class="form-label">Latitude</label>
<input
name="latitude"
type="number"
min="-90"
max="90"
step="any"
placeholder="52.52437"
class="form-control"
id="latitude"
required
/>
<div id="latitude-help" class="form-text">
North-South position, float between -90 and 90 degrees
</div>
</div>
<div class="mb-3">
<label for="longitude" class="form-label">Longitude</label>
<input
name="longitude"
type="number"
min="-180"
max="180"
step="any"
placeholder="13.41053"
class="form-control"
id="longitude"
required
/>
<div id="longitude-help" class="form-text">
East-West position, float between -180 and 180 degrees
</div>
</div>
<div class="mb-3">
<label for="from-date" class="form-label">From</label>
<input
name="fromDate"
type="date"
class="form-control"
id="from-date"
required=""
/>
<div id="from-date-help" class="form-text">
Start date of sun calendar
</div>
</div>
<div class="mb-3">
<label for="to-date" class="form-label">To</label>
<input
name="toDate"
type="date"
class="form-control"
id="to-date"
required
/>
<div id="to-date-help" class="form-text">
End date of sun calendar
</div>
</div>
<button type="submit" class="btn btn-primary">Create ics file</button>
</form>
</div>
<!-- Bootstrap Bundle with Popper and personal scripts-->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"
></script>
<script src="js/myscripts.js"></script>
</body>
</html>