namaz vakitlerine seçilen şehir bilgisi eklendi.
This commit is contained in:
@@ -157,7 +157,10 @@ async function loadDesktopKazaProgress(container, pb) {
|
|||||||
const totalCompleted = Math.max(0, grandInitialTotal - grandCurrentDebtTotal);
|
const totalCompleted = Math.max(0, grandInitialTotal - grandCurrentDebtTotal);
|
||||||
const pct =
|
const pct =
|
||||||
grandInitialTotal > 0
|
grandInitialTotal > 0
|
||||||
? Math.min(100, Math.max(0, Math.round((totalCompleted / grandInitialTotal) * 100)))
|
? Math.min(
|
||||||
|
100,
|
||||||
|
Math.max(0, Math.round((totalCompleted / grandInitialTotal) * 100)),
|
||||||
|
)
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
const bar = container.querySelector("#desktopKazaBar");
|
const bar = container.querySelector("#desktopKazaBar");
|
||||||
@@ -214,7 +217,7 @@ async function loadImsakiye(container, selectedCity) {
|
|||||||
|
|
||||||
widget.innerHTML = `
|
widget.innerHTML = `
|
||||||
<div class="flex items-center justify-between mb-2">
|
<div class="flex items-center justify-between mb-2">
|
||||||
<span class="text-xs font-semibold text-orange-400">🕌 NAMAZ VAKİTLERİ</span>
|
<span class="text-xs font-semibold text-orange-400">🕌 NAMAZ VAKİTLERİ ${selectedCity}</span>
|
||||||
<span class="text-[10px] bg-indigo-500/20 text-indigo-300 border border-indigo-500/30 px-2 py-0.5 rounded-full">Şu an: ${times.currentPrayer?.name}</span>
|
<span class="text-[10px] bg-indigo-500/20 text-indigo-300 border border-indigo-500/30 px-2 py-0.5 rounded-full">Şu an: ${times.currentPrayer?.name}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 gap-2 text-xs">
|
<div class="grid grid-cols-2 gap-2 text-xs">
|
||||||
@@ -226,4 +229,4 @@ async function loadImsakiye(container, selectedCity) {
|
|||||||
<div class="p-2 rounded-xl ${activeKey === "isha" ? "bg-emerald-500/20 border border-emerald-500/40 text-emerald-300 font-bold" : "bg-slate-900/40 text-slate-300"}">Yatsı: ${times.isha}</div>
|
<div class="p-2 rounded-xl ${activeKey === "isha" ? "bg-emerald-500/20 border border-emerald-500/40 text-emerald-300 font-bold" : "bg-slate-900/40 text-slate-300"}">Yatsı: ${times.isha}</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user