Spaces:
Sleeping
Sleeping
HTML
Browse files- static/index.html +56 -21
static/index.html
CHANGED
|
@@ -9,6 +9,40 @@
|
|
| 9 |
input, button, select { margin: 10px; padding: 10px; }
|
| 10 |
#result { margin-top: 20px; font-weight: bold; white-space: pre-wrap; }
|
| 11 |
img { max-width: 100%; margin-top: 20px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
</style>
|
| 13 |
</head>
|
| 14 |
<body>
|
|
@@ -26,27 +60,28 @@
|
|
| 26 |
<p id="imageResult">Aucune interprétation disponible</p>
|
| 27 |
<img id="uploadedImage" style="display: none;">
|
| 28 |
|
| 29 |
-
|
| 30 |
-
<
|
| 31 |
-
|
| 32 |
-
<label for="
|
| 33 |
-
<
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
</
|
| 39 |
-
|
| 40 |
-
<
|
| 41 |
-
<
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
<
|
| 48 |
-
<
|
| 49 |
-
<
|
|
|
|
| 50 |
|
| 51 |
|
| 52 |
<script src="app.js"></script>
|
|
|
|
| 9 |
input, button, select { margin: 10px; padding: 10px; }
|
| 10 |
#result { margin-top: 20px; font-weight: bold; white-space: pre-wrap; }
|
| 11 |
img { max-width: 100%; margin-top: 20px; }
|
| 12 |
+
#translateContainer {
|
| 13 |
+
border: 2px solid #ddd;
|
| 14 |
+
padding: 20px;
|
| 15 |
+
border-radius: 10px;
|
| 16 |
+
width: 50%;
|
| 17 |
+
margin: auto;
|
| 18 |
+
background-color: #f9f9f9;
|
| 19 |
+
}
|
| 20 |
+
input[type="file"] {
|
| 21 |
+
margin: 10px 0;
|
| 22 |
+
}
|
| 23 |
+
button {
|
| 24 |
+
padding: 10px 15px;
|
| 25 |
+
font-size: 16px;
|
| 26 |
+
cursor: pointer;
|
| 27 |
+
border: none;
|
| 28 |
+
border-radius: 5px;
|
| 29 |
+
background-color: #007bff;
|
| 30 |
+
color: white;
|
| 31 |
+
}
|
| 32 |
+
button:hover {
|
| 33 |
+
background-color: #0056b3;
|
| 34 |
+
}
|
| 35 |
+
#translateResult {
|
| 36 |
+
margin-top: 20px;
|
| 37 |
+
font-weight: bold;
|
| 38 |
+
color: #333;
|
| 39 |
+
}
|
| 40 |
+
#loading {
|
| 41 |
+
display: none;
|
| 42 |
+
font-size: 16px;
|
| 43 |
+
color: #ff6600;
|
| 44 |
+
font-weight: bold;
|
| 45 |
+
}
|
| 46 |
</style>
|
| 47 |
</head>
|
| 48 |
<body>
|
|
|
|
| 60 |
<p id="imageResult">Aucune interprétation disponible</p>
|
| 61 |
<img id="uploadedImage" style="display: none;">
|
| 62 |
|
| 63 |
+
<div id="translateContainer">
|
| 64 |
+
<h3>🌍 Traduction de Documents</h3>
|
| 65 |
+
|
| 66 |
+
<label for="translateFile">Sélectionnez un fichier :</label>
|
| 67 |
+
<input type="file" id="translateFile" accept=".pdf,.docx,.pptx,.xlsx">
|
| 68 |
+
|
| 69 |
+
<br>
|
| 70 |
+
<label for="targetLanguageSelect">Langue cible :</label>
|
| 71 |
+
<select id="targetLanguageSelect">
|
| 72 |
+
<option value="fr">Français</option>
|
| 73 |
+
<option value="en">Anglais</option>
|
| 74 |
+
<option value="es">Espagnol</option>
|
| 75 |
+
<option value="de">Allemand</option>
|
| 76 |
+
</select>
|
| 77 |
+
|
| 78 |
+
<br>
|
| 79 |
+
<button onclick="uploadTranslation()">📤 Traduire</button>
|
| 80 |
+
|
| 81 |
+
<p id="loading">⏳ Traduction en cours...</p>
|
| 82 |
+
<p id="translateResult">Aucune traduction disponible</p>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
|
| 86 |
|
| 87 |
<script src="app.js"></script>
|