-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
97 lines (95 loc) · 4.71 KB
/
Copy pathoffline.html
File metadata and controls
97 lines (95 loc) · 4.71 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hajji Helper — Offline</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&family=Noto+Sans+Bengali:wght@400;700&family=Inter:wght@400;600;700&display=swap" onload="this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&family=Noto+Sans+Bengali:wght@400;700&family=Inter:wght@400;600;700&display=swap"></noscript>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<header class="app-header">
<h1>Hajji Helper</h1>
<span class="sync-status">Offline</span>
</header>
<main class="card-list" role="list">
<div class="flashcard" aria-expanded="true">
<button class="flashcard-header" aria-expanded="true">
<span class="bangla-title" lang="bn">আমি হারিয়ে গেছি</span>
<svg class="chevron" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M5 7.5L10 12.5L15 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="flashcard-body">
<div class="flashcard-section">
<div class="flashcard-section-label">Arabic</div>
<div class="arabic-text" dir="rtl" lang="ar">أنا تائه</div>
</div>
<div class="flashcard-section">
<div class="flashcard-section-label">English</div>
<div class="english-text">I am lost</div>
</div>
</div>
</div>
<div class="flashcard" aria-expanded="false">
<button class="flashcard-header" aria-expanded="false">
<span class="bangla-title" lang="bn">টয়লেট কোথায়?</span>
<svg class="chevron" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M5 7.5L10 12.5L15 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="flashcard-body">
<div class="flashcard-section">
<div class="flashcard-section-label">Arabic</div>
<div class="arabic-text" dir="rtl" lang="ar">أين المرحاض؟</div>
</div>
<div class="flashcard-section">
<div class="flashcard-section-label">English</div>
<div class="english-text">Where is the toilet?</div>
</div>
</div>
</div>
<div class="flashcard" aria-expanded="false">
<button class="flashcard-header" aria-expanded="false">
<span class="bangla-title" lang="bn">আমার খাবার ও পানি দরকার</span>
<svg class="chevron" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M5 7.5L10 12.5L15 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="flashcard-body">
<div class="flashcard-section">
<div class="flashcard-section-label">Arabic</div>
<div class="arabic-text" dir="rtl" lang="ar">أحتاج طعاماً وماءً</div>
</div>
<div class="flashcard-section">
<div class="flashcard-section-label">English</div>
<div class="english-text">I need food and water</div>
</div>
</div>
</div>
<div class="flashcard" aria-expanded="false">
<button class="flashcard-header" aria-expanded="false">
<span class="bangla-title" lang="bn">আমি অসুস্থ</span>
<svg class="chevron" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M5 7.5L10 12.5L15 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="flashcard-body">
<div class="flashcard-section">
<div class="flashcard-section-label">Arabic</div>
<div class="arabic-text" dir="rtl" lang="ar">أنا مريض</div>
</div>
<div class="flashcard-section">
<div class="flashcard-section-label">English</div>
<div class="english-text">I am sick</div>
</div>
</div>
</div>
</main>
<script>
document.querySelectorAll('.flashcard-header').forEach(function(btn) {
btn.addEventListener('click', function() {
var card = btn.parentElement;
var expanded = card.getAttribute('aria-expanded') === 'true';
card.setAttribute('aria-expanded', String(!expanded));
btn.setAttribute('aria-expanded', String(!expanded));
});
});
</script>
</body>
</html>