|
Server IP : 217.21.85.138 / Your IP : 216.73.216.103 Web Server : LiteSpeed System : Linux in-mum-web906.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u915722082 ( 915722082) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u915722082/.nvm/../public_html/sbm/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Google Translate Auto Language</title>
<style>
body {
font-family: Arial, sans-serif;
max-height: 90vh;
background: linear-gradient(135deg, #000000 0%, #201c24 100%);
color: white;
}
.container {
max-width: 800px;
margin: auto;
background: rgba(255,255,255,0.1);
padding: 30px;
border-radius: 15px;
text-align: center;
}
/* Hide the Google Translate dropdown (optional for production) */
.goog-te-combo {
display: none !important;
}
.goog-te-banner-frame.skiptranslate,
.goog-logo-link,
.goog-te-gadget span {
display: none !important;
}
body {
top: 0px !important;
}
</style>
</head>
<body>
<div class="container">
<div id="google_translate_element"></div>
<h1>🌍 Multi-Language Website</h1>
<p>This is a demo of Google Translate with automatic language detection based on location.</p>
</div>
<!-- Google Translate Setup -->
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'en,es,zh-CN,ru',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
autoDisplay: false
}, 'google_translate_element');
}
</script>
<!-- Load Google Translate API -->
<script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</body>
</html>