File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments