wasmdashai commited on
Commit
65ea011
·
verified ·
1 Parent(s): bcb4259

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +268 -19
index.html CHANGED
@@ -1,19 +1,268 @@
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
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
16
+ background: linear-gradient(135deg, #1a2a6c, #4a148c);
17
+ color: #fff;
18
+ height: 100vh;
19
+ overflow: hidden;
20
+ }
21
+
22
+ .header {
23
+ background: rgba(0, 0, 0, 0.7);
24
+ padding: 15px 20px;
25
+ display: flex;
26
+ justify-content: space-between;
27
+ align-items: center;
28
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
29
+ backdrop-filter: blur(10px);
30
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
31
+ }
32
+
33
+ .logo {
34
+ font-size: 24px;
35
+ font-weight: bold;
36
+ background: linear-gradient(90deg, #ff8a00, #e52e71);
37
+ -webkit-background-clip: text;
38
+ background-clip: text;
39
+ color: transparent;
40
+ }
41
+
42
+ .controls {
43
+ display: flex;
44
+ gap: 10px;
45
+ }
46
+
47
+ .btn {
48
+ background: rgba(255, 255, 255, 0.1);
49
+ border: 1px solid rgba(255, 255, 255, 0.2);
50
+ color: white;
51
+ padding: 8px 16px;
52
+ border-radius: 6px;
53
+ cursor: pointer;
54
+ transition: all 0.3s ease;
55
+ font-size: 14px;
56
+ }
57
+
58
+ .btn:hover {
59
+ background: rgba(255, 255, 255, 0.2);
60
+ transform: translateY(-2px);
61
+ }
62
+
63
+ .btn-primary {
64
+ background: linear-gradient(90deg, #ff8a00, #e52e71);
65
+ border: none;
66
+ }
67
+
68
+ .container {
69
+ display: flex;
70
+ height: calc(100vh - 70px);
71
+ }
72
+
73
+ .iframe-container {
74
+ flex: 1;
75
+ padding: 15px;
76
+ background: rgba(0, 0, 0, 0.5);
77
+ }
78
+
79
+ .iframe-wrapper {
80
+ width: 100%;
81
+ height: 100%;
82
+ border-radius: 12px;
83
+ overflow: hidden;
84
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
85
+ border: 1px solid rgba(255, 255, 255, 0.1);
86
+ }
87
+
88
+ iframe {
89
+ width: 100%;
90
+ height: 100%;
91
+ border: none;
92
+ background-color: white;
93
+ }
94
+
95
+ .info-panel {
96
+ width: 300px;
97
+ background: rgba(0, 0, 0, 0.6);
98
+ padding: 20px;
99
+ overflow-y: auto;
100
+ border-left: 1px solid rgba(255, 255, 255, 0.1);
101
+ }
102
+
103
+ .info-title {
104
+ font-size: 18px;
105
+ margin-bottom: 15px;
106
+ color: #ff8a00;
107
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
108
+ padding-bottom: 8px;
109
+ }
110
+
111
+ .info-text {
112
+ line-height: 1.6;
113
+ margin-bottom: 15px;
114
+ color: #ddd;
115
+ }
116
+
117
+ .features {
118
+ list-style: none;
119
+ margin-top: 15px;
120
+ }
121
+
122
+ .features li {
123
+ padding: 8px 0;
124
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
125
+ display: flex;
126
+ align-items: center;
127
+ }
128
+
129
+ .features li:before {
130
+ content: "✓";
131
+ color: #4CAF50;
132
+ margin-left: 10px;
133
+ font-weight: bold;
134
+ }
135
+
136
+ .loading {
137
+ display: flex;
138
+ justify-content: center;
139
+ align-items: center;
140
+ height: 100%;
141
+ font-size: 18px;
142
+ color: #aaa;
143
+ }
144
+
145
+ .status-bar {
146
+ background: rgba(0, 0, 0, 0.7);
147
+ padding: 8px 15px;
148
+ font-size: 14px;
149
+ display: flex;
150
+ justify-content: space-between;
151
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
152
+ }
153
+
154
+ @media (max-width: 768px) {
155
+ .container {
156
+ flex-direction: column;
157
+ }
158
+
159
+ .info-panel {
160
+ width: 100%;
161
+ height: 250px;
162
+ border-left: none;
163
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
164
+ }
165
+
166
+ .header {
167
+ flex-direction: column;
168
+ gap: 10px;
169
+ text-align: center;
170
+ }
171
+ }
172
+ </style>
173
+ </head>
174
+ <body>
175
+ <div class="header">
176
+ <div class="logo">المساعد السعودي الذكي</div>
177
+ <div class="controls">
178
+ <button class="btn" onclick="refreshFrame()">🔄 تحديث</button>
179
+ <button class="btn" onclick="openFullscreen()">📺 ملء الشاشة</button>
180
+ <button class="btn btn-primary" onclick="openOriginal()">🌐 فتح في نافذة جديدة</button>
181
+ </div>
182
+ </div>
183
+
184
+ <div class="container">
185
+ <div class="iframe-container">
186
+ <div class="iframe-wrapper">
187
+ <iframe id="mainFrame" src="https://rebot2.lahjai.net" title="المساعد السعودي"></iframe>
188
+ </div>
189
+ </div>
190
+
191
+ <div class="info-panel">
192
+ <div class="info-title">معلومات عن المساعد</div>
193
+ <div class="info-text">
194
+ هذا الإطار يعرض المساعد السعودي الذكي الذي يعمل باللهجة السعودية. يمكنك التفاعل مع المساعد مباشرة من خلال هذا الإطار.
195
+ </div>
196
+ <div class="info-text">
197
+ <strong>كيفية الاستخدام:</strong>
198
+ <ul class="features">
199
+ <li>أدخل مفتاح LAHJA للبدء</li>
200
+ <li>تفاعل مع المساعد باللهجة السعودية</li>
201
+ <li>استخدم الأزرار أعلاه للتحكم في العرض</li>
202
+ <li>يمكنك تحديث الصفحة أو فتحها في نافذة جديدة</li>
203
+ </ul>
204
+ </div>
205
+ <div class="info-text">
206
+ <strong>ملاحظة:</strong> إذا ظهرت صفحة فارغة، قد تكون هناك قيود على عرض الموقع عبر الإطارات من قبل الخادم المصدر.
207
+ </div>
208
+ </div>
209
+ </div>
210
+
211
+ <div class="status-bar">
212
+ <div id="urlStatus">جارٍ تحميل: https://rebot2.lahjai.net</div>
213
+ <div id="frameStatus">الإطار نشط وجاهز للاستخدام</div>
214
+ </div>
215
+
216
+ <script>
217
+ const iframe = document.getElementById('mainFrame');
218
+
219
+ // تحديث الإطار
220
+ function refreshFrame() {
221
+ iframe.src = iframe.src;
222
+ document.getElementById('frameStatus').textContent = 'جارٍ التحديث...';
223
+ setTimeout(() => {
224
+ document.getElementById('frameStatus').textContent = 'تم التحديث بنجاح';
225
+ }, 1500);
226
+ }
227
+
228
+ // فتح في وضع ملء الشاشة
229
+ function openFullscreen() {
230
+ const iframeContainer = document.querySelector('.iframe-container');
231
+
232
+ if (iframeContainer.requestFullscreen) {
233
+ iframeContainer.requestFullscreen();
234
+ } else if (iframeContainer.webkitRequestFullscreen) {
235
+ iframeContainer.webkitRequestFullscreen();
236
+ } else if (iframeContainer.msRequestFullscreen) {
237
+ iframeContainer.msRequestFullscreen();
238
+ }
239
+
240
+ document.getElementById('frameStatus').textContent = 'وضع ملء الشاشة نشط';
241
+ }
242
+
243
+ // فتح في نافذة جديدة
244
+ function openOriginal() {
245
+ window.open('https://rebot2.lahjai.net', '_blank');
246
+ }
247
+
248
+ // تحديث حالة التحمير
249
+ iframe.onload = function() {
250
+ document.getElementById('frameStatus').textContent = 'تم التحميل بنجاح';
251
+ };
252
+
253
+ iframe.onerror = function() {
254
+ document.getElementById('frameStatus').textContent = 'حدث خطأ في التحميل';
255
+ };
256
+
257
+ // إضافة تأثير عند تحميل الصفحة
258
+ window.onload = function() {
259
+ document.body.style.opacity = '0';
260
+ document.body.style.transition = 'opacity 0.5s ease';
261
+
262
+ setTimeout(() => {
263
+ document.body.style.opacity = '1';
264
+ }, 100);
265
+ };
266
+ </script>
267
+ </body>
268
+ </html>