hader1890 commited on
Commit
6e62789
·
verified ·
1 Parent(s): 14e0a3d

برنامح تقوية الشبكة الوايفاي الشبكات التي موجوده عل عاتف - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +297 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Hg3
3
- emoji: 📚
4
- colorFrom: blue
5
- colorTo: purple
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: hg3
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: blue
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,297 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
15
+ }
16
+
17
+ .signal-strength {
18
+ position: relative;
19
+ height: 20px;
20
+ width: 100%;
21
+ background: #e0e0e0;
22
+ border-radius: 10px;
23
+ overflow: hidden;
24
+ }
25
+
26
+ .signal-bar {
27
+ position: absolute;
28
+ height: 100%;
29
+ background: linear-gradient(90deg, #4CAF50 0%, #2E7D32 100%);
30
+ border-radius: 10px;
31
+ transition: width 0.5s ease;
32
+ }
33
+
34
+ .network-card:hover {
35
+ transform: translateY(-5px);
36
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
37
+ }
38
+
39
+ .animate-pulse {
40
+ animation: pulse 1.5s infinite;
41
+ }
42
+
43
+ @keyframes pulse {
44
+ 0% { opacity: 0.6; }
45
+ 50% { opacity: 1; }
46
+ 100% { opacity: 0.6; }
47
+ }
48
+ </style>
49
+ </head>
50
+ <body class="min-h-screen py-8 px-4">
51
+ <div class="max-w-4xl mx-auto">
52
+ <!-- Header -->
53
+ <header class="text-center mb-10">
54
+ <h1 class="text-3xl md:text-4xl font-bold text-indigo-800 mb-2">
55
+ <i class="fas fa-wifi mr-2"></i> برنامج تقوية الشبكة الواي فاي
56
+ </h1>
57
+ <p class="text-gray-600 text-lg">تحليل الشبكات المتاحة وتحسين إشارة الواي فاي</p>
58
+ </header>
59
+
60
+ <!-- Main Card -->
61
+ <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
62
+ <div class="flex flex-col md:flex-row gap15">
63
+ <!-- WiFi Signal -->
64
+ <div class="md:w-1/2 p-4 border border-gray-200 rounded-lg mb-4 md:mb-0">
65
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">
66
+ <i class="fas fa-signal mr-2 text-blue-500"></i> قوة الإشارة الحالية
67
+ </h2>
68
+ <div class="flex items-center mb-3">
69
+ <div class="signal-strength mr-3">
70
+ <div id="currentSignal" class="signal-bar" style="width: 45%;"></div>
71
+ </div>
72
+ <span id="signalPercent" class="font-bold text-gray-700">45%</span>
73
+ </div>
74
+ <p id="signalStatus" class="text-gray-600 mb-4">إشارة ضعيفة - قد تواجه مشاكل في الاتصال</p>
75
+
76
+ <button id="boostBtn" class="w-full py-3 bg-gradient-to-r from-blue-500 to-indigo-600 text-white font-medium rounded-lg hover:from-blue-600 hover:to-indigo-700 transition-all duration-300 flex items-center justify-center">
77
+ <i class="fas fa-bolt mr-2 animate-pulse"></i> تقوية الإشارة
78
+ </button>
79
+
80
+ <div class="mt-6">
81
+ <h3 class="font-medium text-gray-700 mb-2">
82
+ <i class="fas fa-lightbulb mr-2 text-yellow-500"></i> نصائح لتحسين الإشارة:
83
+ </h3>
84
+ <ul class="list-disc pr-5 text-gray-600 space-y-1">
85
+ <li>وضع الراوتر في مكان مرتفع ومركزي</li>
86
+ <li>البعد عن مصادر التشويش مثل الميكروويف</li>
87
+ <li>تغيير قناة الواي فاي في إعدادات الراوتر</li>
88
+ <li>استخدام معزز إشارة إذا كانت المساحة كبيرة</li>
89
+ </ul>
90
+ </div>
91
+ </div>
92
+
93
+ <!-- Network Info -->
94
+ <div class="md:w-1/2 p-4 border border-gray-200 rounded-lg">
95
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">
96
+ <i class="fas fa-network-wired mr-2 text-green-500"></i> معلومات الشبكة
97
+ </h2>
98
+
99
+ <div class="space-y-3 mb-4">
100
+ <div class="flex justify-between">
101
+ <span class="text-gray-600">اسم الشبكة (SSID):</span>
102
+ <span id="ssid" class="font-medium">MyWiFi_5G</span>
103
+ </div>
104
+ <div class="flex justify-between">
105
+ <span class="text-gray-600">عنوان IP:</span>
106
+ <span id="ipAddress" class="font-medium">192.168.1.105</span>
107
+ </div>
108
+ <div class="flex justify-between">
109
+ <span class="text-gray-600">سرعة التحميل:</span>
110
+ <span id="downloadSpeed" class="font-medium">32.4 Mbps</span>
111
+ </div>
112
+ <div class="flex justify-between">
113
+ <span class="text-gray-600">سرعة الرفع:</span>
114
+ <span id="uploadSpeed" class="font-medium">8.7 Mbps</span>
115
+ </div>
116
+ <div class="flex justify-between">
117
+ <span class="text-gray-600">زمن الاستجابة:</span>
118
+ <span id="ping" class="font-medium">24 ms</span>
119
+ </div>
120
+ </div>
121
+
122
+ <button id="refreshBtn" class="w-full py-2 bg-gray-100 text-gray-700 font-medium rounded-lg hover:bg-gray-200 transition flex items-center justify-center">
123
+ <i class="fas fa-sync-alt mr-2"></i> تحديث المعلومات
124
+ </button>
125
+
126
+ <div class="mt-6">
127
+ <h3 class="font-medium text-gray-700 mb-2">
128
+ <i class="fas fa-chart-line mr-2 text-purple-500"></i> إحصاءات الاستخدام:
129
+ </h3>
130
+ <div class="h-24 flex items-end space-x-2">
131
+ <div class="flex-1 bg-blue-100 rounded-t-sm" style="height: 20%"></div>
132
+ <div class="flex-1 bg-blue-200 rounded-t-sm" style="height: 45%"></div>
133
+ <div class="flex-1 bg-blue-300 rounded-t-sm" style="height: 70%"></div>
134
+ <div class="flex-1 bg-blue-400 rounded-t-sm" style="height: 30%"></div>
135
+ <div class="flex-1 bg-blue-500 rounded-t-sm" style="height: 90%"></div>
136
+ <div class="flex-1 bg-blue-600 rounded-t-sm" style="height: 60%"></div>
137
+ <div class="flex-1 bg-blue-700 rounded-t-sm" style="height: 40%"></div>
138
+ </div>
139
+ <div class="flex justify-between text-xs text-gray-500 mt-1">
140
+ <span>الأحد</span>
141
+ <span>الإثنين</span>
142
+ <span>الثلاثاء</span>
143
+ <span>الأربعاء</span>
144
+ <span>الخميس</span>
145
+ <span>الجمعة</span>
146
+ <span>السبت</span>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ </div>
152
+
153
+ <!-- Available Networks -->
154
+ <div class="bg-white rounded-xl shadow-lg p-6">
155
+ <h2 class="text-2xl font-bold text-gray-800 mb-6">
156
+ <i class="fas fa-wifi mr-2 text-indigo-500"></i> الشبكات المتاحة
157
+ </h2>
158
+
159
+ <div class="overflow-x-auto">
160
+ <table class="min-w-full divide-y divide-gray-200">
161
+ <thead class="bg-gray-50">
162
+ <tr>
163
+ <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">اسم الشبكة</th>
164
+ <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">قوة الإشارة</th>
165
+ <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">التشفير</th>
166
+ <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">القناة</th>
167
+ <th class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الإجراء</th>
168
+ </tr>
169
+ </thead>
170
+ <tbody class="bg-white divide-y divide-gray-200" id="networksTable">
171
+ <!-- Networks will be populated here -->
172
+ </tbody>
173
+ </table>
174
+ </div>
175
+
176
+ <div class="mt-4 text-gray-500 text-sm flex items-center">
177
+ <i class="fas fa-info-circle mr-2"></i> آخر تحديث: <span id="lastUpdated">الآن</span>
178
+ </div>
179
+ </div>
180
+
181
+ <!-- Footer -->
182
+ <footer class="mt-12 text-center text-gray-500 text-sm">
183
+ <p>برنامج تقوية الشبكة الواي فاي &copy; 2023 - جميع الحقوق محفوظة</p>
184
+ </footer>
185
+ </div>
186
+
187
+ <script>
188
+ document.addEventListener('DOMContentLoaded', function() {
189
+ // Sample data for available networks
190
+ const availableNetworks = [
191
+ { name: 'HomeWiFi_5G', strength: 90, encryption: 'WPA2', channel: 36, connected: true },
192
+ { name: 'NeighborNet', strength: 65, encryption: 'WPA2', channel: 6, connected: false },
193
+ { name: 'PublicWiFi', strength: 40, encryption: 'مفتوحة', channel: 11, connected: false },
194
+ { name: 'OfficeNetwork', strength: 78, encryption: 'WPA3', channel: 149, connected: false },
195
+ { name: 'GuestWiFi', strength: 30, encryption: 'WPA2', channel: 1, connected: false }
196
+ ];
197
+
198
+ // Populate networks table
199
+ const networksTable = document.getElementById('networksTable');
200
+
201
+ availableNetworks.forEach(network => {
202
+ const row = document.createElement('tr');
203
+ row.className = network.connected ? 'bg-blue-50' : 'hover:bg-gray-50';
204
+
205
+ row.innerHTML = `
206
+ <td class="px-6 py-4 whitespace-nowrap ${network.connected ? 'font-bold text-blue-600' : 'text-gray-900'}">
207
+ <div class="flex items-center">
208
+ <i class="fas fa-wifi mr-2 ${network.connected ? 'text-blue-500' : 'text-gray-400'}"></i>
209
+ ${network.name}
210
+ </div>
211
+ </td>
212
+ <td class="px-6 py-4 whitespace-nowrap">
213
+ <div class="flex items-center">
214
+ <div class="signal-strength" style="width: 100px;">
215
+ <div class="signal-bar" style="width: ${network.strength}%;"></div>
216
+ </div>
217
+ <span class="text-sm text-gray-500 mr-2">${network.strength}%</span>
218
+ </div>
219
+ </td>
220
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
221
+ ${network.encryption === 'مفتوحة' ?
222
+ '<span class="px-2 py-1 bg-red-100 text-red-800 rounded-full text-xs">مفتوحة</span>' :
223
+ '<span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">'+network.encryption+'</span>'}
224
+ </td>
225
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
226
+ ${network.channel}
227
+ </td>
228
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
229
+ ${network.connected ?
230
+ '<button class="text-blue-600 hover:text-blue-900 mr-3">تغيير</button>' :
231
+ '<button class="text-indigo-600 hover:text-indigo-900 mr-3">اتصال</button>'}
232
+ </td>
233
+ `;
234
+
235
+ networksTable.appendChild(row);
236
+ });
237
+
238
+ // Boost button functionality
239
+ const boostBtn = document.getElementById('boostBtn');
240
+ const currentSignal = document.getElementById('currentSignal');
241
+ const signalPercent = document.getElementById('signalPercent');
242
+ const signalStatus = document.getElementById('signalStatus');
243
+
244
+ boostBtn.addEventListener('click', function() {
245
+ // Simulate boosting
246
+ boostBtn.disabled = true;
247
+ boostBtn.innerHTML = '<i class="fas fa-cog fa-spin mr-2"></i> جاري تحسين الإشارة...';
248
+
249
+ setTimeout(() => {
250
+ const newStrength = Math.min(100, Math.floor(Math.random() * 30) + 55);
251
+ currentSignal.style.width = newStrength + '%';
252
+ signalPercent.textContent = newStrength + '%';
253
+
254
+ if (newStrength > 75) {
255
+ signalStatus.textContent = 'إشارة ممتازة - اتصال سريع ومستقر';
256
+ signalStatus.className = 'text-green-600 mb-4';
257
+ } else if (newStrength > 50) {
258
+ signalStatus.textContent = 'إشارة جيدة - اتصال مستقر';
259
+ signalStatus.className = 'text-blue-600 mb-4';
260
+ } else {
261
+ signalStatus.textContent = 'إشارة ضعيفة - قد تواجه مشاكل في الاتصال';
262
+ signalStatus.className = 'text-orange-600 mb-4';
263
+ }
264
+
265
+ // Pulse animation for feedback
266
+ currentSignal.classList.add('animate-pulse');
267
+ setTimeout(() => {
268
+ currentSignal.classList.remove('animate-pulse');
269
+ }, 1000);
270
+
271
+ boostBtn.disabled = false;
272
+ boostBtn.innerHTML = '<i class="fas fa-bolt mr-2 animate-pulse"></i> تقوية الإشارة';
273
+ }, 2000);
274
+ });
275
+
276
+ // Refresh button functionality
277
+ const refreshBtn = document.getElementById('refreshBtn');
278
+ const lastUpdated = document.getElementById('lastUpdated');
279
+
280
+ refreshBtn.addEventListener('click', function() {
281
+ refreshBtn.disabled = true;
282
+ refreshBtn.innerHTML = '<i class="fas fa-sync-alt fa-spin mr-2"></i> جاري التحديث...';
283
+
284
+ // Update timestamp
285
+ const now = new Date();
286
+ const timeString = now.toLocaleTimeString('ar-EG');
287
+ lastUpdated.textContent = timeString;
288
+
289
+ setTimeout(() => {
290
+ refreshBtn.disabled = false;
291
+ refreshBtn.innerHTML = '<i class="fas fa-sync-alt mr-2"></i> تحديث المعلومات';
292
+ }, 1500);
293
+ });
294
+ });
295
+ </script>
296
+ <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=hader1890/hg3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
297
+ </html>