-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (57 loc) · 2.76 KB
/
index.html
File metadata and controls
64 lines (57 loc) · 2.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Iftar Time Calculator</title>
<link rel="icon" type="image/webp" href="img/file-EE3cqpwnkQERoAGFFn2WPU.webp">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="header">
<h1>Iftar Time Calculator</h1>
<p>Ramadan Kareem!</p>
</div>
<!-- Warning Message with Read More -->
<div class="warning-box">
<div class="warning-title">Important Notice</div>
<div class="warning-text-container">
<div class="warning-text">
The calculated iftar time is based on <strong>mathematical sunset calculations</strong> and may differ from
observed sunset times by <strong>1-2 minutes</strong>. This discrepancy occurs due to
<strong>atmospheric refraction</strong> - where sunlight bends in the atmosphere...
<span class="additional-text">
making the sun appear higher than its actual position. According to Islamic guidelines, it's recommended
to break fast at the <em>actual visible sunset</em> following the Sunnah of Prophet Muhammad (PBUH).
Always confirm with local observations for maximum accuracy.
</span>
</div>
</div>
<button class="read-more-btn" onclick="toggleReadMore()">Read More</button>
</div>
<div class="info-card">
<p><strong>📍 Location:</strong> <span id="location">Fetching location...</span></p>
<p><strong>📅 Date:</strong> <span id="date" class="time-highlight"></span></p>
<p><strong>🌇 Sunset (utc):</strong> <span id="sunsetUTC" class="time-highlight"></span></p>
<p><strong>⏳ Sunset Bangladesh (BST):</strong> <span id="sunsetLocal" class="time-highlight"></span></p>
</div>
<a href="manual.html" class="manual-link">Manual Time Calculation</a>
</div>
<script>
function toggleReadMore() {
const container = document.querySelector('.warning-text-container');
const button = document.querySelector('.read-more-btn');
container.classList.toggle('expanded');
if (container.classList.contains('expanded')) {
button.textContent = 'Read Less';
button.style.marginTop = '12px';
} else {
button.textContent = 'Read More';
button.style.marginTop = '8px';
}
}
</script>
<script src="script.js"></script>
</body>
</html>