-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (84 loc) · 3.3 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
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="ii-CN">
<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">
<meta name="description" content="Translator App built using Google Translate API. Translates texts to 130+ languages. Simple and user-friendly. PWA Web Apps.">
<meta name="robots" content="index, nofollow, max-image-preview:standard " />
<meta name="googlebot" content="index" />
<meta content="translate" name="google"/>
<meta name="author" content="Henry Ani (Henry-3551)">
<meta name="theme-color" content="rgba(20,20,20,0.9)">
<meta property="og:image" content="icon-512.png">
<title>Translate app</title>
<script src="app.js" defer></script>
<link rel="manifest" href="manifest.json" crossorigin="use-credentials"/>
<link rel="canonical" href="https://henry-3551.github.io/DH-Translator/"/>
<link rel="icon" href="logo-icon.png" />
<!-- HTML -->
<!-- Custom Styles -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="style.css">
</head>
<body id="body">
<div id="header">
<img id="logo" src="logo.png" alt="logo.png">
</div>
<div class="banner" oncontextmenu="return false">
<div class="widgets">
<button id="light">Light</button>
<button id="dark">Dark</button>
</div>
<img id="banner-image" src="banner.jpg" alt="banner.jpg">
</div>
<main>
<div class="video" oncontextmenu="return false">
<video src="video.mp4" poster="" autoplay muted loop>
</div>
<section>
<div class="translation-box" oncontextmenu="return true">
<div class="box-edit">
<button id="btn1" onclick="doThis()">Clear
<i class="material-icons">
refresh
</i>
</button>
<button id="btn2">
Paste
<i class="material-icons">
content_paste_go
</i>
</button>
</div>
<div id="input-heading"><p>Enter sentence here...👇👇👇</p></div>
<textarea id="input" autocomplete="true"> </textarea>
<div id="text-output">
<p id="hide" class="hidden">Show translated sentence here...</p>
<p id="output"></p>
</div>
</div>
<div>
<button onclick="getValue()" oncontextmenu="return false">
<img id="img1" src="move_to.png" alt="">
</button>
<button class="tooltip" id="copy-text" onclick="copyText()">
<img src="copied.png" class="tooltip-content" alt="Copied" />
<img id="img2" src="copy.png" alt="Copy">
</button>
</div>
</section>
<div id="google_translate_element" style="background: white; padding: 15px; border-radius: 10px;"></div>
<!-- function which will translate the web page using google translator -->
</main>
<button class="add-button">
<img src="logo-icon.png" alt="logo-icon.png">
<h4>Add DH Translator to Home screen</h4>
</button>
<!-- Script code for google translator API -->
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>
<!-- Project -->
<script src="translate.js"></script>
</body>
</html>