summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-04-14 10:44:57 +0200
committerPatrick Simianer <p@simianer.de>2015-04-14 10:44:57 +0200
commitaa97f229d6a6a1e5bc2bd133d0d39eefff888566 (patch)
tree6e9db365c0fa881fb5804366e18dbc6ce8d05696 /index.php
parentb72fcb0fec707a9c829634e24d333f36e24116ae (diff)
submit on keypress
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/index.php b/index.php
index ef1574e..7439c91 100644
--- a/index.php
+++ b/index.php
@@ -8,22 +8,32 @@
<body onload="Next()">
+<div id="wrapper">
+
<div>
<textarea id="src" name="source" cols="1" rows="1" readonly></textarea>
</div>
<div>
- <textarea id="trgt" name="target" cols="1" rows="1"></textarea>
+ <textarea id="trgt" name="target" cols="1" rows="1" onkeypress="submit(event)"></textarea>
</div>
<p>
<button id="next" type="button" onclick="Next()">Next</button>
</p>
+</div>
+
<p id="translating_status">
<strong>translating</strong> <img src="img/ajax-loader-large.gif" width="20px" />
</p>
+<p id="desc">
+Press the 'Next' to submit your post-edit and request the next segment to translate
+(or just press enter when the textarea is in focus).
+</p>
+
+
</body>
</html>