Docfile commited on
Commit
6aefc0d
·
verified ·
1 Parent(s): 7112e4b

Upload maj.html

Browse files
Files changed (1) hide show
  1. templates/maj.html +9 -61
templates/maj.html CHANGED
@@ -3,13 +3,10 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Mariam | Solution Mathématique</title> <!-- Titre modifié -->
7
  <!-- Tailwind CSS -->
8
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
9
 
10
- <!-- Bibliothèque html2pdf -->
11
- <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
12
-
13
  <!-- Configuration MathJax -->
14
  <script>
15
  window.MathJax = {
@@ -58,20 +55,7 @@
58
  background: #2563eb;
59
  }
60
 
61
- .download-button {
62
- background: #10b981;
63
- color: white;
64
- transition: background-color 0.2s ease;
65
- padding: 0.5rem 1rem;
66
- border-radius: 0.5rem;
67
- display: inline-flex;
68
- align-items: center;
69
- gap: 0.5rem;
70
- font-weight: 500;
71
- }
72
- .download-button:hover {
73
- background: #059669;
74
- }
75
 
76
  .loader {
77
  width: 48px;
@@ -133,15 +117,12 @@
133
  overflow-x: auto;
134
  }
135
 
136
- @media print {
137
- .no-print {
138
- display: none;
139
- }
140
- }
141
  .performance-warning {
142
  color: red;
143
  font-weight: bold;
144
- font-size: 1.2em; /* Augmente la taille de la police */
145
  margin-top: 10px;
146
  margin-bottom: 25px;
147
  text-align: center;
@@ -151,11 +132,10 @@
151
  <body class="p-4">
152
  <div class="max-w-4xl mx-auto">
153
  <header class="p-6 text-center mb-8">
154
- <h1 class="text-4xl font-bold text-blue-600">Mariam</h1> <!-- Titre modifié -->
155
  <p class="text-gray-600">Solution Mathématique/Physique/Chimie Intelligente</p>
156
- <!-- Message d'avertissement -->
157
  <p class="performance-warning">
158
- Vous utilisez actuellement les modèles/performances moyens.
159
  </p>
160
  </header>
161
 
@@ -201,12 +181,7 @@
201
  <div class="border-t pt-6">
202
  <div class="flex justify-between items-center mb-4">
203
  <h3 class="text-xl font-bold text-gray-800">Solution</h3>
204
- <button id="downloadPdf" class="download-button no-print">
205
- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
206
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
207
- </svg>
208
- Télécharger PDF
209
- </button>
210
  </div>
211
  <div id="answerContent" class="text-gray-700 table-responsive"></div>
212
  </div>
@@ -235,34 +210,7 @@
235
  let currentMode = null;
236
  let updateTimeout = null;
237
 
238
- const generatePDF = async () => {
239
- const element = document.getElementById('answerContent');
240
-
241
- const opt = {
242
- margin: [10, 10],
243
- filename: 'solution-mathematique.pdf',
244
- image: { type: 'jpeg', quality: 0.98 },
245
- html2canvas: {
246
- scale: 2,
247
- useCORS: true,
248
- logging: false
249
- },
250
- jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
251
- };
252
-
253
- if (window.MathJax) {
254
- await MathJax.typesetPromise([element]);
255
- }
256
-
257
- try {
258
- await html2pdf().set(opt).from(element).save();
259
- } catch (error) {
260
- console.error('Erreur lors de la génération du PDF:', error);
261
- alert('Une erreur est survenue lors de la génération du PDF.');
262
- }
263
- };
264
-
265
- document.getElementById('downloadPdf').addEventListener('click', generatePDF);
266
 
267
  const updateTimestamp = () => {
268
  if (startTime) {
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Mariam | Solution Mathématique</title>
7
  <!-- Tailwind CSS -->
8
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
9
 
 
 
 
10
  <!-- Configuration MathJax -->
11
  <script>
12
  window.MathJax = {
 
55
  background: #2563eb;
56
  }
57
 
58
+ /* Suppression du style du bouton de téléchargement */
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  .loader {
61
  width: 48px;
 
117
  overflow-x: auto;
118
  }
119
 
120
+ /* Suppression du style pour l'impression */
121
+
 
 
 
122
  .performance-warning {
123
  color: red;
124
  font-weight: bold;
125
+ font-size: 1.2em;
126
  margin-top: 10px;
127
  margin-bottom: 25px;
128
  text-align: center;
 
132
  <body class="p-4">
133
  <div class="max-w-4xl mx-auto">
134
  <header class="p-6 text-center mb-8">
135
+ <h1 class="text-4xl font-bold text-blue-600">Mariam</h1>
136
  <p class="text-gray-600">Solution Mathématique/Physique/Chimie Intelligente</p>
 
137
  <p class="performance-warning">
138
+ Vous utilisez actuellement les modèles/performances moyens. Accédez à des performances supérieures avec un abonnement premium !
139
  </p>
140
  </header>
141
 
 
181
  <div class="border-t pt-6">
182
  <div class="flex justify-between items-center mb-4">
183
  <h3 class="text-xl font-bold text-gray-800">Solution</h3>
184
+ <!-- Suppression du bouton de téléchargement -->
 
 
 
 
 
185
  </div>
186
  <div id="answerContent" class="text-gray-700 table-responsive"></div>
187
  </div>
 
210
  let currentMode = null;
211
  let updateTimeout = null;
212
 
213
+ // Suppression de la fonction generatePDF et de son appel
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
 
215
  const updateTimestamp = () => {
216
  if (startTime) {