joermd commited on
Commit
deb85aa
·
verified ·
1 Parent(s): 0e4c5ec

Update reg.html

Browse files
Files changed (1) hide show
  1. reg.html +38 -31
reg.html CHANGED
@@ -22,6 +22,8 @@
22
  body {
23
  font-family: "Tajawal", sans-serif;
24
  background: var(--background-light);
 
 
25
  }
26
 
27
  /* الشريط الجانبي */
@@ -51,6 +53,7 @@
51
  transition: all 0.3s ease;
52
  border-radius: 0.5rem;
53
  margin: 0.25rem 0.5rem;
 
54
  }
55
  .nav-link:hover {
56
  background: #f3f4f6;
@@ -82,6 +85,7 @@
82
  font-weight: 500;
83
  width: 100%;
84
  text-align: center;
 
85
  }
86
  .action-button:hover {
87
  background: var(--primary-hover);
@@ -117,10 +121,11 @@
117
  }
118
  /* تنسيق مميز لنتائج خريطة التفكير */
119
  .mind-map-output {
120
- background: #e0f7fa;
121
  padding: 1rem;
122
  border: 2px dashed #00acc1;
123
  border-radius: 1rem;
 
124
  }
125
  /* تنسيق قسم إنشاء العقود */
126
  .split-screen {
@@ -190,7 +195,7 @@
190
  @media (max-width: 768px) {
191
  .sidebar { transform: translateX(100%); }
192
  .sidebar.open { transform: translateX(0); }
193
- .main-content { margin-right: 0; }
194
  .split-screen { grid-template-columns: 1fr; }
195
  }
196
  </style>
@@ -213,42 +218,38 @@
213
  </div>
214
  </div>
215
  <nav class="space-y-1">
216
- <a href="#" class="nav-link active" data-section="home">
217
  <i class="fas fa-home ml-3"></i>
218
  <span>الرئيسية</span>
219
- </a>
220
- <a href="#" class="nav-link" data-section="analysis">
221
  <i class="fas fa-balance-scale ml-3"></i>
222
  <span>التحليل القانوني</span>
223
- </a>
224
- <a href="#" class="nav-link" data-section="mindMap">
225
  <i class="fas fa-project-diagram ml-3"></i>
226
  <span>خريطة التفكير</span>
227
- </a>
228
- <a href="#" class="nav-link" data-section="search">
229
  <i class="fas fa-search ml-3"></i>
230
  <span>البحث القانوني</span>
231
- </a>
232
- <a href="#" class="nav-link" data-section="documents">
233
  <i class="fas fa-file-alt ml-3"></i>
234
  <span>المستندات</span>
235
- </a>
236
- <a href="#" class="nav-link" data-section="translation">
237
  <i class="fas fa-language ml-3"></i>
238
  <span>الترجمة القانونية</span>
239
- </a>
240
- <a href="#" class="nav-link" data-section="consultation">
241
  <i class="fas fa-comments ml-3"></i>
242
  <span>استشارة قانونية</span>
243
- </a>
244
- <a href="admin.html" class="nav-link">
245
- <i class="fas fa-cogs ml-3"></i>
246
- <span>الأعمال الإدارية</span>
247
- </a>
248
- <a href="#" class="nav-link" data-section="precedents">
249
  <i class="fas fa-gavel ml-3"></i>
250
  <span>الأحكام والسوابق</span>
251
- </a>
252
  </nav>
253
  </div>
254
  </aside>
@@ -281,7 +282,7 @@
281
  <i class="fas fa-project-diagram text-3xl mb-4 text-blue-600"></i>
282
  <h3 class="text-xl font-bold text-gray-800 mb-3">خريطة التفكير</h3>
283
  <p class="text-gray-600 mb-4">
284
- نظم قضية بشكل احترافي باستخدام خطوات منهجية قوية
285
  </p>
286
  <button class="action-button" onclick="showSection('mindMap')">إنشاء خريطة التفكير</button>
287
  </div>
@@ -291,7 +292,7 @@
291
  <i class="fas fa-search text-3xl mb-4 text-blue-600"></i>
292
  <h3 class="text-xl font-bold text-gray-800 mb-3">البحث القانوني</h3>
293
  <p class="text-gray-600 mb-4">
294
- بحث متقدم في السوابق والقضايا المشابهة
295
  </p>
296
  <button class="action-button" onclick="showSection('search')">ابدأ البحث</button>
297
  </div>
@@ -360,7 +361,7 @@
360
  <section id="mindMap" class="section hidden">
361
  <h2 class="text-3xl font-bold text-gray-800 mb-4">خريطة التفكير القانونية</h2>
362
  <p class="mb-4 text-gray-700">
363
- أدخل الأفكار والخيوط المتعددة لتنظيم القضية بطريقة احترافية باستخدام خطوات مشهورة (مثل تحليل SWOT و5 خطوات تحليل الأسباب الجذرية).
364
  </p>
365
  <div id="mindMapFields">
366
  <div class="mb-4">
@@ -385,7 +386,7 @@
385
  <section id="search" class="section hidden">
386
  <h2 class="text-3xl font-bold text-gray-800 mb-8">البحث القانوني</h2>
387
  <div class="input-group bg-white rounded p-6 shadow">
388
- <textarea class="w-full p-3 border rounded" placeholder="اكتب استعلام البحث القانوني..."></textarea>
389
  <button class="action-button mt-4" onclick="handleSubmit('search')">بحث</button>
390
  <div id="searchResult" class="mt-4 response-container"></div>
391
  </div>
@@ -520,7 +521,7 @@
520
  </main>
521
 
522
  <!-- تذييل الصفحة -->
523
- <footer class="text-center py-4 text-gray-600">
524
  © Copyright 2025・<span class="font-bold">FASTPRO</span>・All rights reserved.
525
  </footer>
526
 
@@ -529,7 +530,7 @@
529
  // استخدام API كما كان سابقاً
530
  const API_URL = 'https://g2mgow5tgbxsjy-7777.proxy.runpod.net/proxy/8000/chat';
531
 
532
- // دالة للحصول على البادئة (prompt prefix) بناءً على القسم
533
  function getPromptPrefix(section) {
534
  switch(section) {
535
  case 'analysis':
@@ -539,7 +540,7 @@
539
  case 'mindMap':
540
  return 'قم بإنشاء خريطة ذهنية لحل القضية باستخدام تقنية تونى بوزان الشهيرة: ';
541
  case 'search':
542
- return 'ابحث عن معلومات قانونية حول: ';
543
  case 'translation':
544
  return 'قم بترجمة هذا النص القانوني: ';
545
  case 'consultation':
@@ -554,7 +555,13 @@
554
  link.addEventListener("click", (e) => {
555
  e.preventDefault();
556
  const section = e.currentTarget.getAttribute("data-section");
557
- if(section) showSection(section);
 
 
 
 
 
 
558
  });
559
  });
560
 
@@ -853,7 +860,7 @@ ${formData.contractTerms}
853
  }
854
  const resultDiv = document.getElementById("mindMapResult");
855
  const prompt = getPromptPrefix("mindMap") + "\n" + collectedText +
856
- "\nاستخدم منهجيات قوية مثل تحليل SWOT و5 خطوات تحليل الأسباب الجذرية والنظر في البدائل القانونية لتنظيم القضية بشكل احترافي.";
857
  resultDiv.innerHTML = '<div class="loading-spinner"></div>';
858
  fetch(API_URL, {
859
  method: "POST",
 
22
  body {
23
  font-family: "Tajawal", sans-serif;
24
  background: var(--background-light);
25
+ margin: 0;
26
+ padding-bottom: 60px; /* مساحة للتذييل */
27
  }
28
 
29
  /* الشريط الجانبي */
 
53
  transition: all 0.3s ease;
54
  border-radius: 0.5rem;
55
  margin: 0.25rem 0.5rem;
56
+ cursor: pointer;
57
  }
58
  .nav-link:hover {
59
  background: #f3f4f6;
 
85
  font-weight: 500;
86
  width: 100%;
87
  text-align: center;
88
+ cursor: pointer;
89
  }
90
  .action-button:hover {
91
  background: var(--primary-hover);
 
121
  }
122
  /* تنسيق مميز لنتائج خريطة التفكير */
123
  .mind-map-output {
124
+ background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
125
  padding: 1rem;
126
  border: 2px dashed #00acc1;
127
  border-radius: 1rem;
128
+ font-size: 1.1rem;
129
  }
130
  /* تنسيق قسم إنشاء العقود */
131
  .split-screen {
 
195
  @media (max-width: 768px) {
196
  .sidebar { transform: translateX(100%); }
197
  .sidebar.open { transform: translateX(0); }
198
+ .main-content { margin-right: 0; padding: 1rem; }
199
  .split-screen { grid-template-columns: 1fr; }
200
  }
201
  </style>
 
218
  </div>
219
  </div>
220
  <nav class="space-y-1">
221
+ <div class="nav-link active" data-section="home">
222
  <i class="fas fa-home ml-3"></i>
223
  <span>الرئيسية</span>
224
+ </div>
225
+ <div class="nav-link" data-section="analysis">
226
  <i class="fas fa-balance-scale ml-3"></i>
227
  <span>التحليل القانوني</span>
228
+ </div>
229
+ <div class="nav-link" data-section="mindMap">
230
  <i class="fas fa-project-diagram ml-3"></i>
231
  <span>خريطة التفكير</span>
232
+ </div>
233
+ <div class="nav-link" data-section="search">
234
  <i class="fas fa-search ml-3"></i>
235
  <span>البحث القانوني</span>
236
+ </div>
237
+ <div class="nav-link" data-section="documents">
238
  <i class="fas fa-file-alt ml-3"></i>
239
  <span>المستندات</span>
240
+ </div>
241
+ <div class="nav-link" data-section="translation">
242
  <i class="fas fa-language ml-3"></i>
243
  <span>الترجمة القانونية</span>
244
+ </div>
245
+ <div class="nav-link" data-section="consultation">
246
  <i class="fas fa-comments ml-3"></i>
247
  <span>استشارة قانونية</span>
248
+ </div>
249
+ <div class="nav-link" data-section="precedents">
 
 
 
 
250
  <i class="fas fa-gavel ml-3"></i>
251
  <span>الأحكام والسوابق</span>
252
+ </div>
253
  </nav>
254
  </div>
255
  </aside>
 
282
  <i class="fas fa-project-diagram text-3xl mb-4 text-blue-600"></i>
283
  <h3 class="text-xl font-bold text-gray-800 mb-3">خريطة التفكير</h3>
284
  <p class="text-gray-600 mb-4">
285
+ نظم قضية بشكل احترافي باستخدام خطوات منهجية قوية تساعدك على التفكير مع النموذج
286
  </p>
287
  <button class="action-button" onclick="showSection('mindMap')">إنشاء خريطة التفكير</button>
288
  </div>
 
292
  <i class="fas fa-search text-3xl mb-4 text-blue-600"></i>
293
  <h3 class="text-xl font-bold text-gray-800 mb-3">البحث القانوني</h3>
294
  <p class="text-gray-600 mb-4">
295
+ ابحث عن معلومات قانونية مع برومبت ثابت يشمل منصات: منصة1، منصة2، منصة3
296
  </p>
297
  <button class="action-button" onclick="showSection('search')">ابدأ البحث</button>
298
  </div>
 
361
  <section id="mindMap" class="section hidden">
362
  <h2 class="text-3xl font-bold text-gray-800 mb-4">خريطة التفكير القانونية</h2>
363
  <p class="mb-4 text-gray-700">
364
+ أدخل الأفكار والخيوط المتعددة لتنظيم القضية بطريقة إبداعية باستخدام منهجيات قوية مثل تحليل SWOT و5 خطوات لتحليل الأسباب الجذرية. ساعد نفسك في التفكير مع النموذج.
365
  </p>
366
  <div id="mindMapFields">
367
  <div class="mb-4">
 
386
  <section id="search" class="section hidden">
387
  <h2 class="text-3xl font-bold text-gray-800 mb-8">البحث القانوني</h2>
388
  <div class="input-group bg-white rounded p-6 shadow">
389
+ <textarea class="w-full p-3 border rounded" placeholder="اكتب استعلام البحث القانوني..." ></textarea>
390
  <button class="action-button mt-4" onclick="handleSubmit('search')">بحث</button>
391
  <div id="searchResult" class="mt-4 response-container"></div>
392
  </div>
 
521
  </main>
522
 
523
  <!-- تذييل الصفحة -->
524
+ <footer class="text-center py-4 text-gray-600 fixed bottom-0 left-0 w-full bg-white border-t">
525
  © Copyright 2025・<span class="font-bold">FASTPRO</span>・All rights reserved.
526
  </footer>
527
 
 
530
  // استخدام API كما كان سابقاً
531
  const API_URL = 'https://g2mgow5tgbxsjy-7777.proxy.runpod.net/proxy/8000/chat';
532
 
533
+ // دالة الحصول على البادئة (prompt prefix) بناءً على القسم مع برومبت ثابت للبحث
534
  function getPromptPrefix(section) {
535
  switch(section) {
536
  case 'analysis':
 
540
  case 'mindMap':
541
  return 'قم بإنشاء خريطة ذهنية لحل القضية باستخدام تقنية تونى بوزان الشهيرة: ';
542
  case 'search':
543
+ return 'ابحث عن معلومات قانونية حول: [منصات: منصة1، منصة2، منصة3] ';
544
  case 'translation':
545
  return 'قم بترجمة هذا النص القانوني: ';
546
  case 'consultation':
 
555
  link.addEventListener("click", (e) => {
556
  e.preventDefault();
557
  const section = e.currentTarget.getAttribute("data-section");
558
+ if(section) {
559
+ showSection(section);
560
+ // إخفاء الشريط الجانبي على الأجهزة المحمولة بعد النقر
561
+ if(window.innerWidth < 768) {
562
+ document.querySelector(".sidebar").classList.remove("open");
563
+ }
564
+ }
565
  });
566
  });
567
 
 
860
  }
861
  const resultDiv = document.getElementById("mindMapResult");
862
  const prompt = getPromptPrefix("mindMap") + "\n" + collectedText +
863
+ "\nاستخدم منهجيات قوية مثل تحليل SWOT و5 خطوات لتحليل الأسباب الجذرية مع النظر في البدائل القانونية لتنظيم القضية بشكل احترافي.";
864
  resultDiv.innerHTML = '<div class="loading-spinner"></div>';
865
  fetch(API_URL, {
866
  method: "POST",