Skip to content

Commit fda5314

Browse files
Update lang.html
1 parent c7a2cc0 commit fda5314

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

lang.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,23 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Lang</title>
7+
<script type="text/javascript">
8+
function getValue() {
9+
// Sélectionner l'élément input et récupérer sa valeur
10+
var input = document.getElementById("in").value;
11+
// Afficher la valeur
12+
var URL = "https://ecologiccode-github-io.translate.goog/?_x_tr_sl=fr&_x_tr_tl="+input+"&_x_tr_hl="+input+"&_x_tr_pto=wapp";
13+
location.href = URL;
14+
}
15+
</script>
716
</head>
817
<body>
9-
<button onClick="location.href='https://ecologiccode-github-io.translate.goog/?_x_tr_sl=fr&_x_tr_tl=en&_x_tr_hl=fr&_x_tr_pto=wapp'">English</button>
18+
<button onClick="location.href='https://ecologiccode-github-io.translate.goog/?_x_tr_sl=fr&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp'">English</button>
19+
<button onClick="location.href='https://ecologiccode-github-io.translate.goog/?_x_tr_sl=fr&_x_tr_tl=uk&_x_tr_hl=uk&_x_tr_pto=wapp'">Ukrainian(українська)</button>
20+
<h1>Other ?</h1>
21+
<p>English = en, Ukrainian = uk...
22+
<input type="text" placeholder="Entrez une valeur ici" id="in">
23+
<button type="button" onclick="getValue();">Go</button>
24+
</p>
1025
</body>
1126
</html>

0 commit comments

Comments
 (0)