joermd commited on
Commit
5643379
·
verified ·
1 Parent(s): bf7e722

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +12 -13
index.html CHANGED
@@ -3,13 +3,13 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>نظام المقارنة والتحليل المتقدم - شركة موندو لينجوا</title>
7
  <!-- استيراد Tailwind CSS, FontAwesome وMammoth -->
8
  <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
9
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mammoth/1.6.0/mammoth.browser.min.js"></script>
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
11
  <style>
12
- /* الحركات والتأثيرات */
13
  @keyframes gradient {
14
  0% { background-position: 0% 50%; }
15
  50% { background-position: 100% 50%; }
@@ -53,7 +53,7 @@
53
  font-weight: bold;
54
  }
55
 
56
- /* تنسيق الفقرات وترقيمها */
57
  .line-item {
58
  margin-bottom: 1rem;
59
  padding: 0.5rem;
@@ -79,7 +79,6 @@
79
  transform: translateY(-3px);
80
  }
81
  .icon { margin-left: 0.5rem; }
82
- /* أيقونات رفع الملفات على اليمين */
83
  .upload-label {
84
  display: flex;
85
  flex-direction: row-reverse;
@@ -94,7 +93,7 @@
94
  <header class="bg-gradient-to-r from-indigo-800 via-purple-800 to-pink-800 animate-gradient text-white py-12 mb-12 shadow-2xl">
95
  <div class="max-w-6xl mx-auto px-4 text-center">
96
  <h1 class="text-6xl font-extrabold mb-4 animate-scale">
97
- نظام المقارنة والتحليل المتقدم <i class="fas fa-chart-line icon"></i>
98
  </h1>
99
  <p class="text-2xl opacity-90">
100
  تحليل دقيق يشمل النصوص المفقودة، الأرقام/التواريخ، وفهم الاختصارات
@@ -104,7 +103,7 @@
104
 
105
  <!-- المحتوى الرئيسي -->
106
  <main class="max-w-7xl mx-auto px-4 space-y-10">
107
- <!-- قسم رفع الملفات -->
108
  <div class="card card-hover">
109
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-3 mb-6">
110
  <i class="fas fa-file-upload icon text-indigo-600"></i> تحميل الملفات
@@ -135,7 +134,7 @@
135
  </div>
136
  </div>
137
 
138
- <!-- قسم إدخال النصوص يدويًا -->
139
  <div class="card card-hover">
140
  <div class="space-y-8">
141
  <!-- النص المصدر -->
@@ -155,13 +154,13 @@
155
  </div>
156
  </div>
157
 
158
- <!-- قسم المصادر الإضافية -->
159
  <div class="card card-hover">
160
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-3 mb-6">
161
  <i class="fas fa-book-open icon text-green-600"></i> مصادر إضافية
162
  </h2>
163
  <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
164
- <!-- رفع ملف المصادر الإضافية -->
165
  <div class="group border-2 border-dashed border-green-300 rounded-xl p-10 text-center bg-green-50 hover:bg-green-100 transition-colors duration-300">
166
  <label class="cursor-pointer block upload-label">
167
  <input type="file" id="sourceExtraFile" accept=".docx,.pdf" class="hidden">
@@ -187,7 +186,7 @@
187
  </div>
188
  </button>
189
 
190
- <!-- قسم نتائج التحليل والمقارنة -->
191
  <div id="resultSection" class="card hidden">
192
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-4 mb-6">
193
  <i class="fas fa-search icon text-green-600"></i> نتائج التحليل والمقارنة
@@ -209,7 +208,7 @@
209
  </div>
210
  </div>
211
 
212
- <!-- قسم الشرح التفصيلي للاختلافات -->
213
  <div id="explanationBox" class="card hidden">
214
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-4 mb-6">
215
  <i class="fas fa-info-circle icon text-green-600"></i> شرح الاختلافات
@@ -268,7 +267,7 @@
268
  return text.substring(0, index).split("\n").length;
269
  };
270
 
271
- // تظليل الاختلافات في النص المصدر بناءً على نتائج التحليل
272
  const applyHighlights = (originalText, analysisOutput) => {
273
  let highlightedText = originalText;
274
  let match;
@@ -494,7 +493,7 @@
494
  document.getElementById('targetTextReview').innerHTML = splitIntoLines(targetText);
495
  document.getElementById('explanationText').innerHTML = `<p class="text-xl">النصوص متطابقة ولا يوجد اختلاف يجب الإشارة إليه.</p>`;
496
  } else {
497
- // تطبيق التعليم فقط على النص المصدر
498
  const sourceHighlighted = applyHighlights(sourceText, analysisOutput);
499
  document.getElementById('sourceTextReview').innerHTML = splitIntoLines(sourceHighlighted);
500
  // عرض النص الهدف بدون تعليم
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>منصة مراجعة النصوص والترجمات - شركة موندو لينجوا</title>
7
  <!-- استيراد Tailwind CSS, FontAwesome وMammoth -->
8
  <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
9
  <script src="https://cdnjs.cloudflare.com/ajax/libs/mammoth/1.6.0/mammoth.browser.min.js"></script>
10
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
11
  <style>
12
+ /* تأثيرات الحركة والتنسيقات */
13
  @keyframes gradient {
14
  0% { background-position: 0% 50%; }
15
  50% { background-position: 100% 50%; }
 
53
  font-weight: bold;
54
  }
55
 
56
+ /* تقسيم الفقرات وترقيمها */
57
  .line-item {
58
  margin-bottom: 1rem;
59
  padding: 0.5rem;
 
79
  transform: translateY(-3px);
80
  }
81
  .icon { margin-left: 0.5rem; }
 
82
  .upload-label {
83
  display: flex;
84
  flex-direction: row-reverse;
 
93
  <header class="bg-gradient-to-r from-indigo-800 via-purple-800 to-pink-800 animate-gradient text-white py-12 mb-12 shadow-2xl">
94
  <div class="max-w-6xl mx-auto px-4 text-center">
95
  <h1 class="text-6xl font-extrabold mb-4 animate-scale">
96
+ منصة مراجعة النصوص والترجمات <i class="fas fa-chart-line icon"></i>
97
  </h1>
98
  <p class="text-2xl opacity-90">
99
  تحليل دقيق يشمل النصوص المفقودة، الأرقام/التواريخ، وفهم الاختصارات
 
103
 
104
  <!-- المحتوى الرئيسي -->
105
  <main class="max-w-7xl mx-auto px-4 space-y-10">
106
+ <!-- رفع الملفات -->
107
  <div class="card card-hover">
108
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-3 mb-6">
109
  <i class="fas fa-file-upload icon text-indigo-600"></i> تحميل الملفات
 
134
  </div>
135
  </div>
136
 
137
+ <!-- إدخال النصوص يدويًا -->
138
  <div class="card card-hover">
139
  <div class="space-y-8">
140
  <!-- النص المصدر -->
 
154
  </div>
155
  </div>
156
 
157
+ <!-- المصادر الإضافية -->
158
  <div class="card card-hover">
159
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-3 mb-6">
160
  <i class="fas fa-book-open icon text-green-600"></i> مصادر إضافية
161
  </h2>
162
  <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
163
+ <!-- رفع ملف المصادر -->
164
  <div class="group border-2 border-dashed border-green-300 rounded-xl p-10 text-center bg-green-50 hover:bg-green-100 transition-colors duration-300">
165
  <label class="cursor-pointer block upload-label">
166
  <input type="file" id="sourceExtraFile" accept=".docx,.pdf" class="hidden">
 
186
  </div>
187
  </button>
188
 
189
+ <!-- عرض نتائج التحليل -->
190
  <div id="resultSection" class="card hidden">
191
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-4 mb-6">
192
  <i class="fas fa-search icon text-green-600"></i> نتائج التحليل والمقارنة
 
208
  </div>
209
  </div>
210
 
211
+ <!-- شرح الاختلافات بالتفصيل -->
212
  <div id="explanationBox" class="card hidden">
213
  <h2 class="text-3xl font-bold text-gray-800 border-b pb-4 mb-6">
214
  <i class="fas fa-info-circle icon text-green-600"></i> شرح الاختلافات
 
267
  return text.substring(0, index).split("\n").length;
268
  };
269
 
270
+ // تطبيق التظليل على النص المصدر بناءً على نتائج التحليل
271
  const applyHighlights = (originalText, analysisOutput) => {
272
  let highlightedText = originalText;
273
  let match;
 
493
  document.getElementById('targetTextReview').innerHTML = splitIntoLines(targetText);
494
  document.getElementById('explanationText').innerHTML = `<p class="text-xl">النصوص متطابقة ولا يوجد اختلاف يجب الإشارة إليه.</p>`;
495
  } else {
496
+ // تطبيق التظليل على النص المصدر فقط
497
  const sourceHighlighted = applyHighlights(sourceText, analysisOutput);
498
  document.getElementById('sourceTextReview').innerHTML = splitIntoLines(sourceHighlighted);
499
  // عرض النص الهدف بدون تعليم