This repository has been archived on 2020-02-20. You can view files and clone it, but cannot push or open issues or pull requests.
polytranslatia/index.html
2020-02-20 13:08:13 +01:00

36 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Poliatranslatia</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<h1>Poliatranslatia</h1>
<h3>Easily make your own language file for the Polytopia by Midjiwan.</h3>
<form action="/" method="POST">
<label for="sourceUrl">Source JSON:</label><br>
<input name="sourceUrl" id="sourceUrl" type="text" placeholder="URL to source JSON" required="true"><br>
<button id="useDefault">Use default en_US</button><br><br>
<label for="target">Target Language:</label><br>
<input type="target" name="target" id="target" required="true"><br>
<button type="submit">Submit</button>
</form>
<script>
$('#useDefault').on('click', function(e) {
e.preventDefault();
$('#sourceUrl').val("http://midjiwan.com/lang/en_US.json");
});
</script>
<footer>
Made by McArn<br>
Powered by <a href="http://translate.yandex.com/">Yandex.Translate</a>
</footer>
</body>
</html>