Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Translator</title>
<link rel="stylesheet" href="css/style.css">
<script src="js/script.js"></script>
</head>
<body onload="initLanguageSelect()">
<h2>A Simple Translator</h2>
<div class="row">
<div class="column column-40"><select id="source_language"></select></div>
<div class="column column-40"><select id="target_language"></select></div>
<div class="column column-20"><button type="button" id="translate_button" onclick="translateText()">Translate</button></div>
</div>
<div class="row">
<div class="column column-50"><textarea id="input"></textarea></div>
<div class="column column-50"><textarea id="translated_text" readonly></textarea></div>
</div>
<div class="row">
<div class="column">Powered by Yandex.Translate</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment