Spaces:
Running
Running
Update reg.html
Browse files
reg.html
CHANGED
@@ -249,11 +249,6 @@
|
|
249 |
<i class="fas fa-gavel ml-3"></i>
|
250 |
<span>الأحكام والسوابق</span>
|
251 |
</a>
|
252 |
-
<!-- إضافة رابط قسم نشر فاست برو -->
|
253 |
-
<a href="#" class="nav-link" data-section="fastpro">
|
254 |
-
<i class="fas fa-newspaper ml-3"></i>
|
255 |
-
<span>نشر فاست برو</span>
|
256 |
-
</a>
|
257 |
</nav>
|
258 |
</div>
|
259 |
</aside>
|
@@ -278,7 +273,6 @@
|
|
278 |
<p class="text-gray-600 mb-4">
|
279 |
تحليل متكامل للقضايا والمستندات القانونية باستخدام الذكاء الاصطناعي
|
280 |
</p>
|
281 |
-
<!-- تغيير الزر لتوجيه المستخدم للقسم -->
|
282 |
<button class="action-button" onclick="showSection('analysis')">ابدأ التحليل</button>
|
283 |
</div>
|
284 |
</div>
|
@@ -287,7 +281,7 @@
|
|
287 |
<i class="fas fa-project-diagram text-3xl mb-4 text-blue-600"></i>
|
288 |
<h3 class="text-xl font-bold text-gray-800 mb-3">خريطة التفكير</h3>
|
289 |
<p class="text-gray-600 mb-4">
|
290 |
-
|
291 |
</p>
|
292 |
<button class="action-button" onclick="showSection('mindMap')">إنشاء خريطة التفكير</button>
|
293 |
</div>
|
@@ -366,13 +360,25 @@
|
|
366 |
<section id="mindMap" class="section hidden">
|
367 |
<h2 class="text-3xl font-bold text-gray-800 mb-4">خريطة التفكير القانونية</h2>
|
368 |
<p class="mb-4 text-gray-700">
|
369 |
-
|
370 |
</p>
|
371 |
-
<div
|
372 |
-
|
373 |
-
|
374 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
375 |
</div>
|
|
|
|
|
|
|
376 |
</section>
|
377 |
|
378 |
<!-- قسم البحث القانوني -->
|
@@ -511,19 +517,13 @@
|
|
511 |
</div>
|
512 |
</div>
|
513 |
</section>
|
514 |
-
|
515 |
-
<!-- قسم نشر فاست برو -->
|
516 |
-
<section id="fastpro" class="section hidden">
|
517 |
-
<h2 class="text-3xl font-bold text-gray-800 mb-8">نشر من شركة فاست برو</h2>
|
518 |
-
<div class="input-group bg-white rounded p-6 shadow">
|
519 |
-
<input type="text" id="postTitle" class="w-full p-3 border rounded mb-4" placeholder="عنوان المنشور" />
|
520 |
-
<textarea id="postContent" class="w-full p-3 border rounded" placeholder="محتوى المنشور..."></textarea>
|
521 |
-
<button class="action-button mt-4" onclick="handlePost()">نشر المنشور</button>
|
522 |
-
</div>
|
523 |
-
<div id="postResult" class="mt-4 response-container"></div>
|
524 |
-
</section>
|
525 |
</main>
|
526 |
|
|
|
|
|
|
|
|
|
|
|
527 |
<!-- سكربتات الموقع -->
|
528 |
<script>
|
529 |
// استخدام API كما كان سابقاً
|
@@ -827,23 +827,47 @@ ${formData.contractTerms}
|
|
827 |
doc.save("analysis.pdf");
|
828 |
});
|
829 |
|
830 |
-
// وظيفة
|
831 |
-
function
|
832 |
-
const
|
833 |
-
const
|
834 |
-
|
835 |
-
|
836 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
837 |
return;
|
838 |
}
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
847 |
}
|
848 |
|
849 |
// تهيئة الصفحة بالعرض الافتراضي للقسم "home"
|
|
|
249 |
<i class="fas fa-gavel ml-3"></i>
|
250 |
<span>الأحكام والسوابق</span>
|
251 |
</a>
|
|
|
|
|
|
|
|
|
|
|
252 |
</nav>
|
253 |
</div>
|
254 |
</aside>
|
|
|
273 |
<p class="text-gray-600 mb-4">
|
274 |
تحليل متكامل للقضايا والمستندات القانونية باستخدام الذكاء الاصطناعي
|
275 |
</p>
|
|
|
276 |
<button class="action-button" onclick="showSection('analysis')">ابدأ التحليل</button>
|
277 |
</div>
|
278 |
</div>
|
|
|
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>
|
|
|
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">
|
367 |
+
<label class="block text-gray-700 font-bold mb-2">الفكرة الرئيسية:</label>
|
368 |
+
<input type="text" class="w-full p-3 border rounded" placeholder="اكتب الفكرة الرئيسية للقضية" />
|
369 |
+
</div>
|
370 |
+
<div class="mb-4">
|
371 |
+
<label class="block text-gray-700 font-bold mb-2">الأساس القانوني:</label>
|
372 |
+
<input type="text" class="w-full p-3 border rounded" placeholder="اكتب الأساس القانوني" />
|
373 |
+
</div>
|
374 |
+
<div class="mb-4">
|
375 |
+
<label class="block text-gray-700 font-bold mb-2">النقاط الرئيسية:</label>
|
376 |
+
<input type="text" class="w-full p-3 border rounded" placeholder="اكتب النقاط الرئيسية" />
|
377 |
+
</div>
|
378 |
</div>
|
379 |
+
<button id="addMindMapField" class="action-button mt-4">إضافة خط جديد</button>
|
380 |
+
<button class="action-button mt-4" onclick="handleMindMap()">إنشاء خريطة التفكير</button>
|
381 |
+
<div id="mindMapResult" class="mt-4 response-container mind-map-output"></div>
|
382 |
</section>
|
383 |
|
384 |
<!-- قسم البحث القانوني -->
|
|
|
517 |
</div>
|
518 |
</div>
|
519 |
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
527 |
<!-- سكربتات الموقع -->
|
528 |
<script>
|
529 |
// استخدام API كما كان سابقاً
|
|
|
827 |
doc.save("analysis.pdf");
|
828 |
});
|
829 |
|
830 |
+
// وظيفة إضافة حقل جديد في قسم خريطة التفكير
|
831 |
+
document.getElementById("addMindMapField").addEventListener("click", function() {
|
832 |
+
const container = document.getElementById("mindMapFields");
|
833 |
+
const newFieldDiv = document.createElement("div");
|
834 |
+
newFieldDiv.className = "mb-4";
|
835 |
+
newFieldDiv.innerHTML = `<label class="block text-gray-700 font-bold mb-2">خط جديد:</label>
|
836 |
+
<input type="text" class="w-full p-3 border rounded" placeholder="اكتب فكرة جديدة" />`;
|
837 |
+
container.appendChild(newFieldDiv);
|
838 |
+
});
|
839 |
+
|
840 |
+
// وظيفة إنشاء خريطة التفكير باستخدام الحقول المتعددة
|
841 |
+
function handleMindMap() {
|
842 |
+
const inputs = document.querySelectorAll("#mindMapFields input");
|
843 |
+
let collectedText = "";
|
844 |
+
inputs.forEach((input, index) => {
|
845 |
+
const value = input.value.trim();
|
846 |
+
if(value) {
|
847 |
+
collectedText += `الخيط ${index + 1}: ${value}\n`;
|
848 |
+
}
|
849 |
+
});
|
850 |
+
if (!collectedText.trim()) {
|
851 |
+
alert("الرجاء إدخال بعض الأفكار لإنشاء خريطة التفكير");
|
852 |
return;
|
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",
|
860 |
+
headers: { "Content-Type": "application/json" },
|
861 |
+
body: JSON.stringify({ message: prompt, history: [] })
|
862 |
+
})
|
863 |
+
.then(response => response.json())
|
864 |
+
.then(data => {
|
865 |
+
resultDiv.innerHTML = data.response || "";
|
866 |
+
})
|
867 |
+
.catch(error => {
|
868 |
+
console.error("Error:", error);
|
869 |
+
resultDiv.innerHTML = '<div class="text-red-500">حدث خطأ. يرجى المحاولة مرة أخرى.</div>';
|
870 |
+
});
|
871 |
}
|
872 |
|
873 |
// تهيئة الصفحة بالعرض الافتراضي للقسم "home"
|