Spaces:
Runtime error
Runtime error
Create index.html
Browse files- index.html +34 -0
index.html
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Text Translation</title>
|
| 7 |
+
<link rel="stylesheet" href="styles.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
<h1>Text Translation</h1>
|
| 12 |
+
<div class="input-container">
|
| 13 |
+
<label for="text-input">Enter the text to translate:</label>
|
| 14 |
+
<textarea id="text-input" rows="5" cols="50"></textarea>
|
| 15 |
+
</div>
|
| 16 |
+
<div class="input-container">
|
| 17 |
+
<label for="language-select">Target Language:</label>
|
| 18 |
+
<select id="language-select">
|
| 19 |
+
<option value="en">English</option>
|
| 20 |
+
<option value="fr">French</option>
|
| 21 |
+
<option value="es">Spanish</option>
|
| 22 |
+
<option value="de">German</option>
|
| 23 |
+
<option value="it">Italian</option>
|
| 24 |
+
</select>
|
| 25 |
+
</div>
|
| 26 |
+
<div class="output-container">
|
| 27 |
+
<label for="translated-text">Translated Text:</label>
|
| 28 |
+
<textarea id="translated-text" rows="5" cols="50" readonly></textarea>
|
| 29 |
+
</div>
|
| 30 |
+
<button id="translate-button">Translate</button>
|
| 31 |
+
</div>
|
| 32 |
+
<script src="script.js"></script>
|
| 33 |
+
</body>
|
| 34 |
+
</html>
|