-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (65 loc) · 2.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zmanim to ICS Converter</title>
<link rel="stylesheet" href="styles.css">
<!-- Favicon setup for various devices -->
<link rel="icon" type="image/svg+xml" href="1F5D3.svg">
<link rel="icon" type="image/png" sizes="32x32" href="1F5D3_color.png">
<link rel="icon" type="image/png" sizes="16x16" href="1F5D3_color.png">
<link rel="apple-touch-icon" sizes="180x180" href="1F5D3_color.png">
<!-- Include local Hebcal API -->
<script src="bundle.min.js" defer></script>
<!-- Include our main JavaScript file -->
<script src="zmanim-converter.js" defer></script>
</head>
<body>
<div class="container">
<h1>Zmanim to ICS Converter</h1>
<!-- Form for user input -->
<form id="zmanim-form">
<div class="form-group">
<label for="latitude">Latitude:</label>
<input type="number" id="latitude" name="latitude" step="0.001" required>
</div>
<div class="form-group">
<label for="longitude">Longitude:</label>
<input type="number" id="longitude" name="longitude" step="0.001" required>
</div>
<button type="button" id="get-location">Use My Current Location</button>
<div class="form-group">
<label for="timezone">Timezone:</label>
<input type="text" id="timezone" name="timezone" required>
</div>
<div class="form-group">
<label for="start-date">Start Date:</label>
<input type="date" id="start-date" name="start-date" required>
</div>
<div class="form-group">
<label for="end-date">End Date:</label>
<input type="date" id="end-date" name="end-date" required>
</div>
<button type="submit">Generate ICS</button>
</form>
<!-- Output section (initially hidden) -->
<div id="output-section" style="display: none;">
<p id="conversion-message"></p>
<!-- Preview section for zmanim data -->
<div id="preview-section">
<h2>Preview</h2>
<div id="preview-content"></div>
</div>
<button id="download-ics">Download ICS File</button>
</div>
</div>
<footer>
<p>© <span id="current-year"></span> Zmanim to ICS Converter. All rights reserved.</p>
</footer>
<!-- Set current year in footer -->
<script>
document.getElementById('current-year').textContent = new Date().getFullYear();
</script>
</body>
</html>