Spaces:
Running
Running
Update static/script.js
Browse files- static/script.js +7 -7
static/script.js
CHANGED
|
@@ -134,10 +134,10 @@ fileInput.addEventListener('change', function(event) {
|
|
| 134 |
<div class="upload-container">
|
| 135 |
<div class="file-drop-zone" id="fileDropZone">
|
| 136 |
<label for="fileInput" class="file-upload-label">
|
| 137 |
-
<img src="up.png" id="
|
| 138 |
-
<span class="drop-text" id="
|
| 139 |
</label>
|
| 140 |
-
<input type="file" id="
|
| 141 |
</div>
|
| 142 |
|
| 143 |
<div class="action-container">
|
|
@@ -263,9 +263,9 @@ fileInput.addEventListener('change', function(event) {
|
|
| 263 |
|
| 264 |
// Ajout des écouteurs APRES que le HTML soit injecté
|
| 265 |
document.getElementById("translateBtn").addEventListener("click", uploadForTranslation);
|
| 266 |
-
const fileInput = document.getElementById("
|
| 267 |
-
const dropText = document.getElementById("
|
| 268 |
-
const uploadIcon = document.getElementById("
|
| 269 |
|
| 270 |
dropText.addEventListener("click", function (event) {
|
| 271 |
event.preventDefault();
|
|
@@ -454,7 +454,7 @@ fileInput.addEventListener('change', function(event) {
|
|
| 454 |
|
| 455 |
<div class="action-container">
|
| 456 |
|
| 457 |
-
<select id="
|
| 458 |
<option >Select type</option>
|
| 459 |
<option value="histplot"class="a">Histogramme</option>
|
| 460 |
<option value="scatterplot"class="a">Nuage de points</option>
|
|
|
|
| 134 |
<div class="upload-container">
|
| 135 |
<div class="file-drop-zone" id="fileDropZone">
|
| 136 |
<label for="fileInput" class="file-upload-label">
|
| 137 |
+
<img src="up.png" id="uploadIc" class="upload-icon" alt="Upload">
|
| 138 |
+
<span class="drop-text" id="drText">Déposez votre fichier ici ou cliquez pour parcourir</span>
|
| 139 |
</label>
|
| 140 |
+
<input type="file" id="fi" class="file-input" accept=".doc,.docx,.xls,.xlsx,.pdf,.ppt,.pptx" hidden>
|
| 141 |
</div>
|
| 142 |
|
| 143 |
<div class="action-container">
|
|
|
|
| 263 |
|
| 264 |
// Ajout des écouteurs APRES que le HTML soit injecté
|
| 265 |
document.getElementById("translateBtn").addEventListener("click", uploadForTranslation);
|
| 266 |
+
const fileInput = document.getElementById("fi");
|
| 267 |
+
const dropText = document.getElementById("drText");
|
| 268 |
+
const uploadIcon = document.getElementById("uploadIc");
|
| 269 |
|
| 270 |
dropText.addEventListener("click", function (event) {
|
| 271 |
event.preventDefault();
|
|
|
|
| 454 |
|
| 455 |
<div class="action-container">
|
| 456 |
|
| 457 |
+
<select id="languageSele" class="language-dropdown">
|
| 458 |
<option >Select type</option>
|
| 459 |
<option value="histplot"class="a">Histogramme</option>
|
| 460 |
<option value="scatterplot"class="a">Nuage de points</option>
|