Spaces:
Running
Running
Update index.html
Browse files- index.html +8 -17
index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
<html lang="ar" dir="rtl">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
|
@@ -732,34 +732,26 @@
|
|
| 732 |
}
|
| 733 |
|
| 734 |
// 3. بناء المقطع الصوتي للزاوية اليسرى وفقاً للمنطق الجديد
|
| 735 |
-
|
| 736 |
-
let cornerTextHTML;
|
| 737 |
|
| 738 |
-
// تعريف الألوان المستخدمة كـ Tailwind classes
|
| 739 |
-
const yellowClass = "text-yellow-300";
|
| 740 |
-
const redClass = "text-red-500 dark:text-red-400"; // نستخدم الأحمر لتمييز الحرف الجديد
|
| 741 |
-
|
| 742 |
// تطبيق منطق الاستثناء لحرف 'ⴰ'
|
| 743 |
if (targetLetter === 'ⴰ') {
|
| 744 |
-
//
|
| 745 |
-
|
| 746 |
} else {
|
| 747 |
-
//
|
| 748 |
-
|
| 749 |
-
const yellowPart = `ⵢⴰ`;
|
| 750 |
-
cornerTextHTML = `<span class="${yellowClass}">${yellowPart}</span><span class="${redClass}">${targetLetter}</span>`;
|
| 751 |
}
|
| 752 |
|
| 753 |
cornerElementHTML += `
|
| 754 |
<div class="absolute top-0 left-0 p-3 bg-white/20 backdrop-blur-sm rounded-tl-3xl rounded-br-3xl shadow-md text-white">
|
| 755 |
-
<h2 class="font-black text-4xl icon-shadow">
|
| 756 |
-
${
|
| 757 |
</h2>
|
| 758 |
</div>
|
| 759 |
`;
|
| 760 |
|
| 761 |
// 4. الحرف في الزاوية العلوية اليمنى (الحرف الكبير الأصلي)
|
| 762 |
-
// (هذا الجزء لا يتغير)
|
| 763 |
cornerElementHTML += `
|
| 764 |
<div class="absolute top-0 right-0 p-3 bg-white/20 backdrop-blur-sm rounded-tr-3xl rounded-bl-3xl shadow-md text-white">
|
| 765 |
<h2 class="font-black text-4xl icon-shadow">
|
|
@@ -769,7 +761,6 @@
|
|
| 769 |
`;
|
| 770 |
|
| 771 |
} else {
|
| 772 |
-
// ... (بقية منطق الفئات الأخرى)
|
| 773 |
// Logic for other categories
|
| 774 |
const cornerText = currentItem.main.length > 3 ? categoryMeta.title : currentItem.main;
|
| 775 |
cornerElementHTML = `
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
<html lang="ar" dir="rtl">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
|
|
|
| 732 |
}
|
| 733 |
|
| 734 |
// 3. بناء المقطع الصوتي للزاوية اليسرى وفقاً للمنطق الجديد
|
| 735 |
+
let cornerTextLeft;
|
|
|
|
| 736 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 737 |
// تطبيق منطق الاستثناء لحرف 'ⴰ'
|
| 738 |
if (targetLetter === 'ⴰ') {
|
| 739 |
+
// إذا كان الحرف هو ⴰ، اعرض ⵢⴰ فقط
|
| 740 |
+
cornerTextLeft = `ⵢⴰ`;
|
| 741 |
} else {
|
| 742 |
+
// لبقية الحروف، اعرض ⵢⴰ متبوعاً بالحرف (مثل ⵢⴰⴱ)
|
| 743 |
+
cornerTextLeft = `ⵢⴰ${targetLetter}`;
|
|
|
|
|
|
|
| 744 |
}
|
| 745 |
|
| 746 |
cornerElementHTML += `
|
| 747 |
<div class="absolute top-0 left-0 p-3 bg-white/20 backdrop-blur-sm rounded-tl-3xl rounded-br-3xl shadow-md text-white">
|
| 748 |
+
<h2 class="font-black text-4xl icon-shadow text-yellow-300">
|
| 749 |
+
${cornerTextLeft}
|
| 750 |
</h2>
|
| 751 |
</div>
|
| 752 |
`;
|
| 753 |
|
| 754 |
// 4. الحرف في الزاوية العلوية اليمنى (الحرف الكبير الأصلي)
|
|
|
|
| 755 |
cornerElementHTML += `
|
| 756 |
<div class="absolute top-0 right-0 p-3 bg-white/20 backdrop-blur-sm rounded-tr-3xl rounded-bl-3xl shadow-md text-white">
|
| 757 |
<h2 class="font-black text-4xl icon-shadow">
|
|
|
|
| 761 |
`;
|
| 762 |
|
| 763 |
} else {
|
|
|
|
| 764 |
// Logic for other categories
|
| 765 |
const cornerText = currentItem.main.length > 3 ? categoryMeta.title : currentItem.main;
|
| 766 |
cornerElementHTML = `
|