-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
105 lines (102 loc) · 3.61 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"
></script>
<link rel="stylesheet" href="style.css" />
<title>AI TransGPT | By ፚ Ꭷ Ꮢ Ꭷ ❥</title>
</head>
<body>
<div class="mode">
<label class="toggle" for="dark-mode-btn">
<div class="toggle-track">
<input type="checkbox" class="toggle-checkbox" id="dark-mode-btn" />
<span class="toggle-thumb"></span>
<img src="images/sun.png" alt="" />
<img src="images/moon.png" alt="" />
</div>
</label>
</div>
<div class="container">
<div class="card input-wrapper">
<div class="from">
<span class="heading">From :</span>
<div class="dropdown-container" id="input-language">
<div class="dropdown-toggle">
<ion-icon name="globe-outline"></ion-icon>
<span class="selected" data-value="auto">Auto Detect</span>
<ion-icon name="chevron-down-outline"></ion-icon>
</div>
<ul class="dropdown-menu">
<li class="option active">DropDown Menu Item 1</li>
<li class="option">DropDown Menu Item 2</li>
</ul>
</div>
</div>
<div class="text-area">
<textarea
id="input-text"
cols="30"
rows="10"
placeholder="Enter your text here"
></textarea>
<div class="chars"><span id="input-chars">0</span> / 5000</div>
</div>
<div class="card-bottom">
<p>Or choose your document (.txt file only)!</p>
<label for="upload-document">
<span id="upload-title">Choose File</span>
<ion-icon name="cloud-upload-outline"></ion-icon>
<input type="file" id="upload-document" hidden />
</label>
</div>
</div>
<div class="center">
<div class="swap-position">
<ion-icon name="swap-horizontal-outline"></ion-icon>
</div>
</div>
<div class="card output-wrapper">
<div class="to">
<span class="heading">To :</span>
<div class="dropdown-container" id="output-language">
<div class="dropdown-toggle">
<ion-icon name="globe-outline"></ion-icon>
<span class="selected" data-value="en">Englsih</span>
<ion-icon name="chevron-down-outline"></ion-icon>
</div>
<ul class="dropdown-menu">
<li class="option active">DropDown Menu Item 1</li>
<li class="option">DropDown Menu Item 2</li>
</ul>
</div>
</div>
<textarea
id="output-text"
cols="30"
rows="10"
placeholder="Translated text will appear here"
disabled
></textarea>
<div class="card-bottom">
<p>Download as a document!</p>
<button id="download-btn">
<span>Download</span>
<ion-icon name="cloud-download-outline"></ion-icon>
</button>
</div>
</div>
</div>
<script src="languages.js"></script>
<script src="script.js"></script>
</body>
</html>