Spaces:
Running
Running
Manual changes saved
Browse files- index.html +42 -33
index.html
CHANGED
|
@@ -735,39 +735,48 @@ function showPdfPurchase(title, desc) {
|
|
| 735 |
function updateModalContent(title, desc, price, number) {
|
| 736 |
document.getElementById('serviceTitle').textContent = title;
|
| 737 |
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 771 |
}
|
| 772 |
|
| 773 |
// Language toggle placeholder
|
|
|
|
| 735 |
function updateModalContent(title, desc, price, number) {
|
| 736 |
document.getElementById('serviceTitle').textContent = title;
|
| 737 |
|
| 738 |
+
if (price) {
|
| 739 |
+
document.getElementById('serviceDescription').innerHTML = `
|
| 740 |
+
<p class="mb-4">${desc}</p>
|
| 741 |
+
<div class="bg-gray-100 p-4 rounded-lg mb-4">
|
| 742 |
+
<p class="font-medium text-center">طرق الدفع:</p>
|
| 743 |
+
<p class="text-center my-2">الدفع عن طريق الرقم</p>
|
| 744 |
+
<p class="text-center font-bold text-lg">${number}</p>
|
| 745 |
+
<p class="text-center my-2">أو مسح رمز الدفع</p>
|
| 746 |
+
<img src="qr-code.jpg" alt="QR Code" class="w-32 h-32 mx-auto my-2">
|
| 747 |
+
<p class="text-center font-medium">سعر الخدمة: ${price}</p>
|
| 748 |
+
<p class="text-center text-sm">إرسال إيصال الدفع بعد التحويل</p>
|
| 749 |
+
</div>
|
| 750 |
+
<div class="text-center space-y-2">
|
| 751 |
+
<a href="https://wa.me/968${number}?text=${encodeURIComponent(
|
| 752 |
+
`أريد حجز خدمة ${title} وقد قمت بالدفع ${price} على الرقم ${number} يرجى التأكيد`
|
| 753 |
+
)}" class="btn-primary w-full text-center py-3 mt-2 block">
|
| 754 |
+
<i class="fab fa-whatsapp mr-2"></i> إرسال الإيصال عبر واتساب
|
| 755 |
+
</a>
|
| 756 |
+
<a href="https://huggingface.co/spaces/Alkhinai/pinkpulse-health-guides"
|
| 757 |
+
target="_blank"
|
| 758 |
+
class="btn-outline w-full text-center py-3 mt-2 block">
|
| 759 |
+
<i class="fas fa-shopping-cart mr-2"></i> اطلب الآن
|
| 760 |
+
</a>
|
| 761 |
+
</div>
|
| 762 |
+
`;
|
| 763 |
+
} else {
|
| 764 |
+
document.getElementById('serviceDescription').innerHTML = `
|
| 765 |
+
<p class="mb-4">${desc}</p>
|
| 766 |
+
<div class="text-center space-y-2">
|
| 767 |
+
<a href="https://wa.me/968${number}"
|
| 768 |
+
class="btn-primary w-full text-center py-3 mt-4 block">
|
| 769 |
+
<i class="fab fa-whatsapp mr-2"></i> تواصل عبر واتساب
|
| 770 |
+
</a>
|
| 771 |
+
<a href="https://huggingface.co/spaces/Alkhinai/pinkpulse-health-guides"
|
| 772 |
+
target="_blank"
|
| 773 |
+
class="btn-outline w-full text-center py-3 mt-2 block">
|
| 774 |
+
<i class="fas fa-shopping-cart mr-2"></i> اطلب الآن
|
| 775 |
+
</a>
|
| 776 |
+
</div>
|
| 777 |
+
`;
|
| 778 |
+
}
|
| 779 |
+
|
| 780 |
}
|
| 781 |
|
| 782 |
// Language toggle placeholder
|