KIIR2A commited on
Commit
8ea8b58
·
verified ·
1 Parent(s): ddf5bff

Make the website functional so I can access it to view the videos and PDFs.

Browse files
Files changed (3) hide show
  1. index.html +12 -12
  2. module +86 -0
  3. pdf +126 -0
index.html CHANGED
@@ -117,10 +117,10 @@
117
  <a href="https://youtube.com/playlist?list=PLHv_18PNzsypUfqnQBBvI-P4MCXDut1ZH" target="_blank" class="text-fegred hover:text-red-400 flex items-center">
118
  <i data-feather="video" class="w-4 h-4 mr-1"></i> سلسلة 2
119
  </a>
120
- <a href="#" class="text-fegwhite hover:text-gray-300 flex items-center">
121
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
122
  </a>
123
- </div>
124
  <div class="flex justify-between items-center">
125
  <div class="flex space-x-2">
126
  <span class="bg-gray-100 px-2 py-1 rounded text-xs flex items-center">
@@ -130,8 +130,8 @@
130
  <i data-feather="video" class="w-3 h-3 mr-1"></i> فيديو
131
  </span>
132
  </div>
133
- <button class="text-fegred hover:text-red-700 text-sm font-medium">عرض المادة</button>
134
- </div>
135
  </div>
136
  </div>
137
  <!-- Module 2 -->
@@ -164,10 +164,10 @@
164
  <h3 class="font-bold text-lg mb-2">Statistique Descriptive - الإحصاء الوصفي</h3>
165
  <p class="text-gray-300 text-sm mb-4">Méthodes statistiques pour l'analyse des données</p>
166
  <div class="space-y-2">
167
- <a href="#" class="text-fegwhite hover:text-gray-300 flex items-center">
168
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
169
  </a>
170
- <a href="#" class="text-fegred hover:text-red-400 flex items-center">
171
  <i data-feather="video" class="w-4 h-4 mr-1"></i> فيديو
172
  </a>
173
  </div>
@@ -185,10 +185,10 @@
185
  <a href="https://youtube.com/playlist?list=PLACAjAPLo-gd4CBbW4B0gn3hfnbEUosVr" target="_blank" class="text-fegred hover:text-red-400 flex items-center">
186
  <i data-feather="video" class="w-4 h-4 mr-1"></i> سلسلة دروس
187
  </a>
188
- <a href="#" class="text-fegwhite hover:text-gray-300 flex items-center">
189
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
190
  </a>
191
- </div>
192
  </div>
193
  </div>
194
  <!-- Module 5 -->
@@ -208,8 +208,8 @@
208
  <i data-feather="video" class="w-3 h-3 mr-1"></i> فيديو
209
  </span>
210
  </div>
211
- <button class="text-fegred hover:text-red-700 text-sm font-medium">عرض المادة</button>
212
- </div>
213
  </div>
214
  </div>=
215
  <!-- Module 6 -->
@@ -224,10 +224,10 @@
224
  <a href="https://youtube.com/playlist?list=PLdSOG2rLOiowc8hVymXW1qPd2rWGQK03X" target="_blank" class="text-fegred hover:text-red-400 flex items-center">
225
  <i data-feather="video" class="w-4 h-4 mr-1"></i> سلسلة دروس
226
  </a>
227
- <a href="#" class="text-fegwhite hover:text-gray-300 flex items-center">
228
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
229
  </a>
230
- </div>
231
  </div>
232
  </div>
233
  <!-- Module 7 -->
 
117
  <a href="https://youtube.com/playlist?list=PLHv_18PNzsypUfqnQBBvI-P4MCXDut1ZH" target="_blank" class="text-fegred hover:text-red-400 flex items-center">
118
  <i data-feather="video" class="w-4 h-4 mr-1"></i> سلسلة 2
119
  </a>
120
+ <a href="/pdf/microeconomie.pdf" class="text-fegwhite hover:text-gray-300 flex items-center" target="_blank">
121
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
122
  </a>
123
+ </div>
124
  <div class="flex justify-between items-center">
125
  <div class="flex space-x-2">
126
  <span class="bg-gray-100 px-2 py-1 rounded text-xs flex items-center">
 
130
  <i data-feather="video" class="w-3 h-3 mr-1"></i> فيديو
131
  </span>
132
  </div>
133
+ <a href="/module/microeconomie" class="text-fegred hover:text-red-700 text-sm font-medium">عرض المادة</a>
134
+ </div>
135
  </div>
136
  </div>
137
  <!-- Module 2 -->
 
164
  <h3 class="font-bold text-lg mb-2">Statistique Descriptive - الإحصاء الوصفي</h3>
165
  <p class="text-gray-300 text-sm mb-4">Méthodes statistiques pour l'analyse des données</p>
166
  <div class="space-y-2">
167
+ <a href="/pdf/statistique.pdf" class="text-fegwhite hover:text-gray-300 flex items-center" target="_blank">
168
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
169
  </a>
170
+ <a href="#" class="text-fegred hover:text-red-400 flex items-center">
171
  <i data-feather="video" class="w-4 h-4 mr-1"></i> فيديو
172
  </a>
173
  </div>
 
185
  <a href="https://youtube.com/playlist?list=PLACAjAPLo-gd4CBbW4B0gn3hfnbEUosVr" target="_blank" class="text-fegred hover:text-red-400 flex items-center">
186
  <i data-feather="video" class="w-4 h-4 mr-1"></i> سلسلة دروس
187
  </a>
188
+ <a href="/pdf/mathematiques.pdf" class="text-fegwhite hover:text-gray-300 flex items-center" target="_blank">
189
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
190
  </a>
191
+ </div>
192
  </div>
193
  </div>
194
  <!-- Module 5 -->
 
208
  <i data-feather="video" class="w-3 h-3 mr-1"></i> فيديو
209
  </span>
210
  </div>
211
+ <a href="/module/informatique" class="text-fegred hover:text-red-700 text-sm font-medium">عرض المادة</a>
212
+ </div>
213
  </div>
214
  </div>=
215
  <!-- Module 6 -->
 
224
  <a href="https://youtube.com/playlist?list=PLdSOG2rLOiowc8hVymXW1qPd2rWGQK03X" target="_blank" class="text-fegred hover:text-red-400 flex items-center">
225
  <i data-feather="video" class="w-4 h-4 mr-1"></i> سلسلة دروس
226
  </a>
227
+ <a href="/pdf/droit.pdf" class="text-fegwhite hover:text-gray-300 flex items-center" target="_blank">
228
  <i data-feather="file-text" class="w-4 h-4 mr-1"></i> تحميل PDF
229
  </a>
230
+ </div>
231
  </div>
232
  </div>
233
  <!-- Module 7 -->
module ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Module Details | FEG</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ </head>
11
+ <body class="bg-gray-100">
12
+ <div class="container mx-auto px-4 py-8">
13
+ <div class="bg-white p-6 rounded-lg shadow-md">
14
+ <h1 class="text-2xl font-bold text-fegblack mb-4" id="module-title">Module Details</h1>
15
+
16
+ <div class="mb-6">
17
+ <h2 class="text-xl font-semibold mb-2">المواد التعليمية</h2>
18
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
19
+ <div class="bg-gray-50 p-4 rounded border border-gray-200">
20
+ <h3 class="font-medium mb-2 flex items-center">
21
+ <i data-feather="file-text" class="w-4 h-4 mr-2"></i> المحاضرات النظرية
22
+ </h3>
23
+ <ul class="space-y-2">
24
+ <li><a href="#" class="text-fegred hover:text-red-700">المحاضرة 1 - مقدمة في المادة</a></li>
25
+ <li><a href="#" class="text-fegred hover:text-red-700">المحاضرة 2 - المفاهيم الأساسية</a></li>
26
+ <li><a href="#" class="text-fegred hover:text-red-700">المحاضرة 3 - التطبيقات العملية</a></li>
27
+ </ul>
28
+ </div>
29
+ <div class="bg-gray-50 p-4 rounded border border-gray-200">
30
+ <h3 class="font-medium mb-2 flex items-center">
31
+ <i data-feather="video" class="w-4 h-4 mr-2"></i> الدروس المصورة
32
+ </h3>
33
+ <ul class="space-y-2">
34
+ <li><a href="https://youtube.com" target="_blank" class="text-fegred hover:text-red-700">الفيديو 1 - المقدمة</a></li>
35
+ <li><a href="https://youtube.com" target="_blank" class="text-fegred hover:text-red-700">الفيديو 2 - الشرح النظري</a></li>
36
+ <li><a href="https://youtube.com" target="_blank" class="text-fegred hover:text-red-700">الفيديو 3 - التمارين</a></li>
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ </div>
41
+
42
+ <div class="mb-6">
43
+ <h2 class="text-xl font-semibold mb-2">التمارين والتطبيقات</h2>
44
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
45
+ <a href="#" class="bg-gray-50 p-4 rounded border border-gray-200 hover:bg-gray-100">
46
+ <h3 class="font-medium mb-2 flex items-center text-fegred">
47
+ <i data-feather="file-text" class="w-4 h-4 mr-2"></i> سلسلة التمارين 1
48
+ </h3>
49
+ <p class="text-sm text-gray-600">تمارين حول المفاهيم الأساسية</p>
50
+ </a>
51
+ <a href="#" class="bg-gray-50 p-4 rounded border border-gray-200 hover:bg-gray-100">
52
+ <h3 class="font-medium mb-2 flex items-center text-fegred">
53
+ <i data-feather="file-text" class="w-4 h-4 mr-2"></i> سلسلة التمارين 2
54
+ </h3>
55
+ <p class="text-sm text-gray-600">تمارين التطبيق</p>
56
+ </a>
57
+ <a href="#" class="bg-gray-50 p-4 rounded border border-gray-200 hover:bg-gray-100">
58
+ <h3 class="font-medium mb-2 flex items-center text-fegred">
59
+ <i data-feather="file-text" class="w-4 h-4 mr-2"></i> امتحانات سابقة
60
+ </h3>
61
+ <p class="text-sm text-gray-600">نماذج الامتحانات</p>
62
+ </a>
63
+ </div>
64
+ </div>
65
+
66
+ <div class="flex justify-between items-center mt-6">
67
+ <a href="/" class="text-fegred hover:text-red-700 flex items-center">
68
+ <i data-feather="arrow-right" class="mr-1"></i> العودة إلى الصفحة الرئيسية
69
+ </a>
70
+ <button class="bg-fegred text-white px-4 py-2 rounded hover:bg-red-700 flex items-center">
71
+ <i data-feather="download" class="mr-1"></i> تحميل جميع المواد
72
+ </button>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ <script>
78
+ feather.replace();
79
+
80
+ // Get module name from URL
81
+ const urlParams = new URLSearchParams(window.location.search);
82
+ const moduleName = urlParams.get('name') || 'Microéconomie';
83
+ document.getElementById('module-title').textContent = moduleName;
84
+ </script>
85
+ </body>
86
+ </html>
pdf ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>PDF Viewer | FEG</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@3.4.120/build/pdf.min.js"></script>
11
+ <style>
12
+ #pdf-container {
13
+ height: 80vh;
14
+ overflow: auto;
15
+ border: 1px solid #ccc;
16
+ margin: 20px 0;
17
+ }
18
+ </style>
19
+ </head>
20
+ <body class="bg-gray-100">
21
+ <div class="container mx-auto px-4 py-8">
22
+ <div class="bg-white p-6 rounded-lg shadow-md">
23
+ <h1 class="text-2xl font-bold text-fegblack mb-4" id="pdf-title">Loading PDF...</h1>
24
+ <div id="pdf-container"></div>
25
+ <div class="flex justify-between mt-4">
26
+ <button id="prev-page" class="bg-fegred text-white px-4 py-2 rounded hover:bg-red-700">
27
+ <i data-feather="arrow-right"></i> الصفحة السابقة
28
+ </button>
29
+ <span id="page-info" class="text-gray-700">Page 1 of 1</span>
30
+ <button id="next-page" class="bg-fegred text-white px-4 py-2 rounded hover:bg-red-700">
31
+ الصفحة التالية <i data-feather="arrow-left"></i>
32
+ </button>
33
+ </div>
34
+ <div class="mt-4">
35
+ <a href="/" class="text-fegred hover:text-red-700 flex items-center">
36
+ <i data-feather="arrow-right" class="mr-1"></i> العودة إلى الصفحة الرئيسية
37
+ </a>
38
+ </div>
39
+ </div>
40
+ </div>
41
+
42
+ <script>
43
+ feather.replace();
44
+
45
+ // Get PDF filename from URL
46
+ const urlParams = new URLSearchParams(window.location.search);
47
+ const pdfFile = urlParams.get('file') || 'microeconomie.pdf';
48
+ document.getElementById('pdf-title').textContent = pdfFile.replace('.pdf', '');
49
+
50
+ // Initialize PDF.js
51
+ pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdn.jsdelivr.net/npm/pdfjs-dist@3.4.120/build/pdf.worker.min.js';
52
+
53
+ let pdfDoc = null,
54
+ pageNum = 1,
55
+ pageRendering = false,
56
+ pageNumPending = null,
57
+ scale = 1.5;
58
+
59
+ function renderPage(num) {
60
+ pageRendering = true;
61
+ pdfDoc.getPage(num).then(function(page) {
62
+ const viewport = page.getViewport({ scale: scale });
63
+ const canvas = document.createElement('canvas');
64
+ const context = canvas.getContext('2d');
65
+ canvas.height = viewport.height;
66
+ canvas.width = viewport.width;
67
+
68
+ const renderContext = {
69
+ canvasContext: context,
70
+ viewport: viewport
71
+ };
72
+
73
+ const renderTask = page.render(renderContext);
74
+
75
+ renderTask.promise.then(function() {
76
+ const pdfContainer = document.getElementById('pdf-container');
77
+ pdfContainer.innerHTML = '';
78
+ pdfContainer.appendChild(canvas);
79
+
80
+ document.getElementById('page-info').textContent =
81
+ `الصفحة ${num} من ${pdfDoc.numPages}`;
82
+
83
+ pageRendering = false;
84
+ if (pageNumPending !== null) {
85
+ renderPage(pageNumPending);
86
+ pageNumPending = null;
87
+ }
88
+ });
89
+ });
90
+ }
91
+
92
+ function queueRenderPage(num) {
93
+ if (pageRendering) {
94
+ pageNumPending = num;
95
+ } else {
96
+ renderPage(num);
97
+ }
98
+ }
99
+
100
+ function onPrevPage() {
101
+ if (pageNum <= 1) return;
102
+ pageNum--;
103
+ queueRenderPage(pageNum);
104
+ }
105
+
106
+ function onNextPage() {
107
+ if (pageNum >= pdfDoc.numPages) return;
108
+ pageNum++;
109
+ queueRenderPage(pageNum);
110
+ }
111
+
112
+ // Load PDF
113
+ pdfjsLib.getDocument(`/pdf/${pdfFile}`).promise.then(function(pdf) {
114
+ pdfDoc = pdf;
115
+ renderPage(1);
116
+ }).catch(function(error) {
117
+ document.getElementById('pdf-container').innerHTML =
118
+ `<div class="text-center py-8 text-red-500">خطأ في تحميل ملف PDF: ${error.message}</div>`;
119
+ });
120
+
121
+ // Button event listeners
122
+ document.getElementById('prev-page').addEventListener('click', onPrevPage);
123
+ document.getElementById('next-page').addEventListener('click', onNextPage);
124
+ </script>
125
+ </body>
126
+ </html>