Spaces:
Running
Running
<!DOCTYPE html> <html lang="ar" dir="rtl"> <head> <meta charset="UTF-8"> <title>بوابة الدفع</title> <style> body { font-family: Arial, sans-serif; background-color: #f8f9fa; direction: rtl; padding: 40px; max-width: 600px; margin: auto; } h2 { color: #333; } label { display: block; margin-top: 15px; font-weight: bold; } input, select, textarea, button { width: 100%; padding: 10px; margin-top: 5px; border-radius: 5px; border: 1px solid #ccc; } button { margin-top: 20px; cursor: pointer; } .btn-primary { background-color: #007bff; color: white; border: none; } .btn-secondary { background-color: #6c757d; color: white; border: none; } </style> </head> <body> <h2>بوابة الدفع</h2> <form id="paymentForm"> <label>طريقة الدفع:</label> <select name="paymentMethod" required> <option value="visa">فيزا</option> <option value="mastercard">ماستر كارد</option> <option value="mada">مدى</option> </select> <label>رقم البطاقة:</label> <input type="text" name="cardNumber" placeholder="1234 5678 9012 3456" required> <label>تاريخ الانتهاء:</label> <input type="month" name="expiryDate" required> <label>رمز الأمان (CVV):</label> <input type="text" name="cvv" placeholder="123" required> <label>المحركات:</label> <input type="text" name="engineInfo" placeholder="مثال: محرك كهربائي"> <label>نص الزبون:</label> <textarea name="customerNote" placeholder="ملاحظات من العميل..."></textarea> <label>سبب الحفظ:</label> <input type="text" name="saveReason" placeholder="مثال: للمراجعة لاحقاً"> <button type="submit" class="btn-primary">حفظ</button> <button type="button" class="btn-secondary" onclick="reviewOnly()">مراجعة فقط</button> </form> <script> const form = document.getElementById('paymentForm'); form.addEventListener('submit', function(e) { e.preventDefault(); alert('تم حفظ البيانات بنجاح (تم التنفيذ)'); // يمكنك هنا إرسال البيانات إلى الخادم باستخدام fetch أو AJAX }); function reviewOnly() { alert('تم الحفظ للمراجعة فقط (بدون تنفيذ الدفع)'); } </script> </body> </html> - Initial Deployment
Browse files- README.md +7 -5
- index.html +272 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: rayan545454
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,272 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ar" dir="rtl">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>بوابة الدفع الإلكتروني</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Tajawal', sans-serif;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.card-input {
|
| 17 |
+
background-image: url("data:image/svg+xml,%3Csvg width='24' height='16' viewBox='0 0 24 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 0H3C1.34315 0 0 1.34315 0 3V13C0 14.6569 1.34315 16 3 16H21C22.6569 16 24 14.6569 24 13V3C24 1.34315 22.6569 0 21 0Z' fill='%23E5E7EB'/%3E%3Cpath d='M16 5C16 6.10457 15.1046 7 14 7C12.8954 7 12 6.10457 12 5C12 3.89543 12.8954 3 14 3C15.1046 3 16 3.89543 16 5Z' fill='%239CA3AF'/%3E%3Cpath d='M4 8H20' stroke='%239CA3AF' stroke-width='2'/%3E%3C/svg%3E");
|
| 18 |
+
background-repeat: no-repeat;
|
| 19 |
+
background-position: right 0.75rem center;
|
| 20 |
+
background-size: 24px 16px;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.card-input.visa {
|
| 24 |
+
background-image: url("data:image/svg+xml,%3Csvg width='24' height='16' viewBox='0 0 24 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 0H3C1.34315 0 0 1.34315 0 3V13C0 14.6569 1.34315 16 3 16H21C22.6569 16 24 14.6569 24 13V3C24 1.34315 22.6569 0 21 0Z' fill='%231A1F71'/%3E%3Cpath d='M16 5C16 6.10457 15.1046 7 14 7C12.8954 7 12 6.10457 12 5C12 3.89543 12.8954 3 14 3C15.1046 3 16 3.89543 16 5Z' fill='%23F7B600'/%3E%3Cpath d='M4 8H20' stroke='%23F7B600' stroke-width='2'/%3E%3C/svg%3E");
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.card-input.mastercard {
|
| 28 |
+
background-image: url("data:image/svg+xml,%3Csvg width='24' height='16' viewBox='0 0 24 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 0H3C1.34315 0 0 1.34315 0 3V13C0 14.6569 1.34315 16 3 16H21C22.6569 16 24 14.6569 24 13V3C24 1.34315 22.6569 0 21 0Z' fill='%23001F5E'/%3E%3Cpath d='M16 5C16 6.10457 15.1046 7 14 7C12.8954 7 12 6.10457 12 5C12 3.89543 12.8954 3 14 3C15.1046 3 16 3.89543 16 5Z' fill='%23EB001B'/%3E%3Cpath d='M4 8H20' stroke='%23EB001B' stroke-width='2'/%3E%3C/svg%3E");
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.card-input.mada {
|
| 32 |
+
background-image: url("data:image/svg+xml,%3Csvg width='24' height='16' viewBox='0 0 24 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 0H3C1.34315 0 0 1.34315 0 3V13C0 14.6569 1.34315 16 3 16H21C22.6569 16 24 14.6569 24 13V3C24 1.34315 22.6569 0 21 0Z' fill='%23005248'/%3E%3Cpath d='M16 5C16 6.10457 15.1046 7 14 7C12.8954 7 12 6.10457 12 5C12 3.89543 12.8954 3 14 3C15.1046 3 16 3.89543 16 5Z' fill='%23FFFFFF'/%3E%3Cpath d='M4 8H20' stroke='%23FFFFFF' stroke-width='2'/%3E%3C/svg%3E");
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.animate-spin {
|
| 36 |
+
animation: spin 1s linear infinite;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
@keyframes spin {
|
| 40 |
+
from {
|
| 41 |
+
transform: rotate(0deg);
|
| 42 |
+
}
|
| 43 |
+
to {
|
| 44 |
+
transform: rotate(360deg);
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.toast {
|
| 49 |
+
animation: fadeIn 0.3s, fadeOut 0.5s 2.5s;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
@keyframes fadeIn {
|
| 53 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 54 |
+
to { opacity: 1; transform: translateY(0); }
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
@keyframes fadeOut {
|
| 58 |
+
from { opacity: 1; transform: translateY(0); }
|
| 59 |
+
to { opacity: 0; transform: translateY(-20px); }
|
| 60 |
+
}
|
| 61 |
+
</style>
|
| 62 |
+
</head>
|
| 63 |
+
<body class="bg-gray-50 min-h-screen flex items-center justify-center p-4">
|
| 64 |
+
<div class="w-full max-w-md">
|
| 65 |
+
<!-- Header with logo -->
|
| 66 |
+
<div class="flex items-center justify-center mb-8">
|
| 67 |
+
<div class="bg-blue-600 text-white p-3 rounded-lg shadow-lg">
|
| 68 |
+
<i class="fas fa-credit-card text-2xl"></i>
|
| 69 |
+
</div>
|
| 70 |
+
<h1 class="text-2xl font-bold text-gray-800 mr-3">بوابة الدفع الإلكتروني</h1>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<!-- Payment Card -->
|
| 74 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
| 75 |
+
<!-- Card Header -->
|
| 76 |
+
<div class="bg-blue-600 py-3 px-4 text-white">
|
| 77 |
+
<h2 class="font-bold text-lg">أكمل عملية الدفع</h2>
|
| 78 |
+
<p class="text-sm opacity-90">أدخل معلومات بطاقتك للدفع الآمن</p>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<!-- Card Body -->
|
| 82 |
+
<form id="paymentForm" class="p-6">
|
| 83 |
+
<!-- Payment Method -->
|
| 84 |
+
<div class="mb-6">
|
| 85 |
+
<label class="block text-gray-700 font-medium mb-2">طريقة الدفع</label>
|
| 86 |
+
<div class="relative">
|
| 87 |
+
<select name="paymentMethod" required
|
| 88 |
+
class="block appearance-none w-full bg-gray-100 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded-lg leading-tight focus:outline-none focus:bg-white focus:border-blue-500 transition duration-200">
|
| 89 |
+
<option value="visa">فيزا</option>
|
| 90 |
+
<option value="mastercard">ماستر كارد</option>
|
| 91 |
+
<option value="mada">مدى</option>
|
| 92 |
+
</select>
|
| 93 |
+
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center px-2 text-gray-700">
|
| 94 |
+
<i class="fas fa-chevron-down"></i>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<!-- Card Number -->
|
| 100 |
+
<div class="mb-6">
|
| 101 |
+
<label class="block text-gray-700 font-medium mb-2">رقم البطاقة</label>
|
| 102 |
+
<input type="text" name="cardNumber" placeholder="1234 5678 9012 3456" required
|
| 103 |
+
class="card-input w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200">
|
| 104 |
+
</div>
|
| 105 |
+
|
| 106 |
+
<!-- Expiry and CVV -->
|
| 107 |
+
<div class="grid grid-cols-2 gap-4 mb-6">
|
| 108 |
+
<div>
|
| 109 |
+
<label class="block text-gray-700 font-medium mb-2">تاريخ الانتهاء</label>
|
| 110 |
+
<input type="month" name="expiryDate" required
|
| 111 |
+
class="w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200">
|
| 112 |
+
</div>
|
| 113 |
+
<div>
|
| 114 |
+
<label class="block text-gray-700 font-medium mb-2">رمز الأمان (CVV)</label>
|
| 115 |
+
<div class="relative">
|
| 116 |
+
<input type="text" name="cvv" placeholder="123" required
|
| 117 |
+
class="w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200">
|
| 118 |
+
<div class="absolute inset-y-0 left-0 flex items-center pl-3 cursor-pointer" onclick="toggleCVVHelp()">
|
| 119 |
+
<i class="fas fa-question-circle text-gray-400 hover:text-blue-500"></i>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<!-- Additional Information -->
|
| 126 |
+
<div class="mb-6">
|
| 127 |
+
<label class="block text-gray-700 font-medium mb-2">المحركات</label>
|
| 128 |
+
<input type="text" name="engineInfo" placeholder="مثال: محرك كهربائي"
|
| 129 |
+
class="w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200">
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<div class="mb-6">
|
| 133 |
+
<label class="block text-gray-700 font-medium mb-2">ملاحظات العميل</label>
|
| 134 |
+
<textarea name="customerNote" placeholder="ملاحظات من العميل..."
|
| 135 |
+
class="w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200 h-24"></textarea>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div class="mb-8">
|
| 139 |
+
<label class="block text-gray-700 font-medium mb-2">سبب الحفظ</label>
|
| 140 |
+
<input type="text" name="saveReason" placeholder="مثال: للمراجعة لاحقاً"
|
| 141 |
+
class="w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200">
|
| 142 |
+
</div>
|
| 143 |
+
|
| 144 |
+
<!-- Buttons -->
|
| 145 |
+
<div class="grid grid-cols-2 gap-4">
|
| 146 |
+
<button type="submit" id="submitBtn"
|
| 147 |
+
class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 flex items-center justify-center">
|
| 148 |
+
<span id="submitText">حفظ الدفع</span>
|
| 149 |
+
<i id="submitIcon" class="fas fa-save mr-2"></i>
|
| 150 |
+
</button>
|
| 151 |
+
|
| 152 |
+
<button type="button" onclick="reviewOnly()"
|
| 153 |
+
class="bg-gray-600 hover:bg-gray-700 text-white font-bold py-3 px-4 rounded-lg transition duration-200 flex items-center justify-center">
|
| 154 |
+
<span>مراجعة فقط</span>
|
| 155 |
+
<i class="fas fa-eye mr-2"></i>
|
| 156 |
+
</button>
|
| 157 |
+
</div>
|
| 158 |
+
</form>
|
| 159 |
+
</div>
|
| 160 |
+
|
| 161 |
+
<!-- Security Badges -->
|
| 162 |
+
<div class="flex items-center justify-center mt-6 space-x-4 space-x-reverse">
|
| 163 |
+
<div class="text-gray-500 text-sm flex items-center">
|
| 164 |
+
<i class="fas fa-lock text-green-500 mr-1"></i>
|
| 165 |
+
<span>دفع آمن</span>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="text-gray-500 text-sm flex items-center">
|
| 168 |
+
<i class="fas fa-shield-alt text-blue-500 mr-1"></i>
|
| 169 |
+
<span>مشفّر</span>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<!-- CVV Help Modal -->
|
| 175 |
+
<div id="cvvHelpModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 hidden">
|
| 176 |
+
<div class="bg-white rounded-lg p-6 max-w-sm w-full">
|
| 177 |
+
<div class="flex justify-between items-center mb-4">
|
| 178 |
+
<h3 class="font-bold text-lg">ما هو رمز الأمان (CVV)؟</h3>
|
| 179 |
+
<button onclick="toggleCVVHelp()" class="text-gray-500 hover:text-gray-700">
|
| 180 |
+
<i class="fas fa-times"></i>
|
| 181 |
+
</button>
|
| 182 |
+
</div>
|
| 183 |
+
<div class="mb-4">
|
| 184 |
+
<p class="text-gray-700 mb-3">رمز الأمان هو رمز مكون من 3 أو 4 أرقام موجود على ظهر بطاقتك الائتمانية.</p>
|
| 185 |
+
<div class="flex justify-center">
|
| 186 |
+
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120' viewBox='0 0 200 120'%3E%3Crect width='200' height='120' fill='%23f3f4f6' rx='8'/%3E%3Crect x='20' y='20' width='160' height='80' fill='%23e5e7eb' rx='4'/%3E%3Crect x='120' y='50' width='60' height='20' fill='%23d1d5db'/%3E%3Ctext x='150' y='65' font-family='Arial' font-size='12' text-anchor='middle' fill='%236b7280'%3ECVV%3C/text%3E%3C/svg%3E"
|
| 187 |
+
alt="CVV Location" class="rounded">
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
<button onclick="toggleCVVHelp()" class="w-full bg-blue-600 text-white py-2 rounded-lg hover:bg-blue-700 transition duration-200">
|
| 191 |
+
فهمت، شكرًا
|
| 192 |
+
</button>
|
| 193 |
+
</div>
|
| 194 |
+
</div>
|
| 195 |
+
|
| 196 |
+
<!-- Toast Notification -->
|
| 197 |
+
<div id="toast" class="fixed bottom-4 left-4 right-4 flex justify-center hidden">
|
| 198 |
+
<div class="toast bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg flex items-center max-w-md">
|
| 199 |
+
<i class="fas fa-check-circle mr-2"></i>
|
| 200 |
+
<span id="toastMessage"></span>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
|
| 204 |
+
<script>
|
| 205 |
+
// Update card icon based on payment method
|
| 206 |
+
const paymentMethodSelect = document.querySelector('select[name="paymentMethod"]');
|
| 207 |
+
const cardNumberInput = document.querySelector('input[name="cardNumber"]');
|
| 208 |
+
|
| 209 |
+
paymentMethodSelect.addEventListener('change', function() {
|
| 210 |
+
cardNumberInput.className = `card-input ${this.value} w-full py-3 px-4 border border-gray-200 rounded-lg focus:outline-none focus:border-blue-500 transition duration-200`;
|
| 211 |
+
});
|
| 212 |
+
|
| 213 |
+
// Format card number
|
| 214 |
+
cardNumberInput.addEventListener('input', function(e) {
|
| 215 |
+
let value = e.target.value.replace(/\s+/g, '');
|
| 216 |
+
if (value.length > 0) {
|
| 217 |
+
value = value.match(new RegExp('.{1,4}', 'g')).join(' ');
|
| 218 |
+
}
|
| 219 |
+
e.target.value = value;
|
| 220 |
+
});
|
| 221 |
+
|
| 222 |
+
// Toggle CVV help modal
|
| 223 |
+
function toggleCVVHelp() {
|
| 224 |
+
const modal = document.getElementById('cvvHelpModal');
|
| 225 |
+
modal.classList.toggle('hidden');
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
// Form submission
|
| 229 |
+
const form = document.getElementById('paymentForm');
|
| 230 |
+
const submitBtn = document.getElementById('submitBtn');
|
| 231 |
+
const submitText = document.getElementById('submitText');
|
| 232 |
+
const submitIcon = document.getElementById('submitIcon');
|
| 233 |
+
|
| 234 |
+
form.addEventListener('submit', function(e) {
|
| 235 |
+
e.preventDefault();
|
| 236 |
+
|
| 237 |
+
// Show loading state
|
| 238 |
+
submitBtn.disabled = true;
|
| 239 |
+
submitText.textContent = 'جاري المعالجة...';
|
| 240 |
+
submitIcon.className = 'fas fa-circle-notch animate-spin mr-2';
|
| 241 |
+
|
| 242 |
+
// Simulate API call
|
| 243 |
+
setTimeout(() => {
|
| 244 |
+
showToast('تم حفظ البيانات بنجاح (تم التنفيذ)');
|
| 245 |
+
|
| 246 |
+
// Reset form
|
| 247 |
+
submitBtn.disabled = false;
|
| 248 |
+
submitText.textContent = 'حفظ الدفع';
|
| 249 |
+
submitIcon.className = 'fas fa-save mr-2';
|
| 250 |
+
}, 2000);
|
| 251 |
+
});
|
| 252 |
+
|
| 253 |
+
// Review only function
|
| 254 |
+
function reviewOnly() {
|
| 255 |
+
showToast('تم الحفظ للمراجعة فقط (بدون تنفيذ الدفع)');
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
// Show toast notification
|
| 259 |
+
function showToast(message) {
|
| 260 |
+
const toast = document.getElementById('toast');
|
| 261 |
+
const toastMessage = document.getElementById('toastMessage');
|
| 262 |
+
|
| 263 |
+
toastMessage.textContent = message;
|
| 264 |
+
toast.classList.remove('hidden');
|
| 265 |
+
|
| 266 |
+
setTimeout(() => {
|
| 267 |
+
toast.classList.add('hidden');
|
| 268 |
+
}, 3000);
|
| 269 |
+
}
|
| 270 |
+
</script>
|
| 271 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Rayan545454/rayan545454" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 272 |
+
</html>
|