From 3129ebd825db4136ae8fc1c49d7ed4d6340f8504 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 29 Oct 2015 13:53:37 +0100 Subject: cosmetics & help --- help.inc.php | 20 +++++++++++++++++--- index.php | 14 ++++++++++---- interface.php | 14 ++++++++------ js/common.js | 7 ++++--- js/lfpe.js | 12 ++++++++---- static/main.css | 14 ++++++++++---- 6 files changed, 57 insertions(+), 24 deletions(-) diff --git a/help.inc.php b/help.inc.php index dc60adf..1278e5f 100644 --- a/help.inc.php +++ b/help.inc.php @@ -1,3 +1,17 @@ -

Press the 'Next' button to submit your post-edit and to request the next segment for translation. -Alternatively, just press enter when you finished the post-edit and the 'Target' text area is in focus. Warning: Past post-edits can not be altered. The session can be stopped at any time and continued later; However, if you have to pause your session, wait until the activity notification disappears and then press 'Pause', as we are collecting timing information. You may also just reload this site and re-request the next segment upon your return. Please only use one browser window at once. Going back to earlier examples is not possible, please take great care when interacting with the system.
-The interface was only tested with Firefox 31.

+

Press the 'Next' button to submit your post-edit and to request the next segment for post-edition. +Alternatively, in the textual interface, you may just press return when you finished the post-edit ('Target' text area is in focus).

+

The session can be stopped at any time and continued later; However, if you have to pause your session, wait until the activity notification disappears and then press 'Pause', as we are collecting timing information. You may also just reload this site and re-request the next segment.

+

Please only use a single browser window at once. Going back to earlier examples is not possible, please take great care when interacting with the system.

+ +

Instructions for graphical interface:

+ + +

The interface was tested with Firefox 31 and 38.

+ diff --git a/index.php b/index.php index 20cb704..11a6839 100644 --- a/index.php +++ b/index.php @@ -2,8 +2,8 @@ Post-editing application - - + + @@ -11,11 +11,17 @@
- Please enter your session key: + Please enter your session key: +     Session type: + +    
-
+

Beta test: - + +

@@ -48,14 +48,14 @@
- + Working, please wait for next segment
-Session overview +

Session overview

raw_source_segments as $s) { if ($i <= $db->progress) { $translation = $db->post_edits_raw[$i]; } - echo ""; + echo ""; $i += 1; } ?> @@ -83,7 +83,7 @@ foreach($db->raw_source_segments as $s) { - + +

^

+ diff --git a/js/common.js b/js/common.js index 11dcdba..560f63d 100644 --- a/js/common.js +++ b/js/common.js @@ -20,12 +20,13 @@ function removeClass(node, className) * * */ -function toggleDisplay(node) +function toggleDisplay(id) { + node = $(id); if (node.style.display=='none') { - node.style.display = 'block'; + node.fadeIn(); } else { - node.style.display = 'none'; + node.fadeOut(); } return false; diff --git a/js/lfpe.js b/js/lfpe.js index 1cf88bf..4ec6062 100644 --- a/js/lfpe.js +++ b/js/lfpe.js @@ -89,7 +89,8 @@ function working() var last_post_edit = document.getElementById("last_post_edit"); // show 'working' message - status.style.display = "block"; + //status.style.display = "block"; + $("#status").fadeToggle(); // disable button and textarea button.setAttribute("disabled", "disabled"); @@ -115,7 +116,8 @@ function not_working() var last_post_edit = document.getElementById("last_post_edit"); // hide 'working' message - status.style.display = "none"; + //status.style.display = "none"; + $("#status").fadeToggle(); // enable buttons document.getElementById("next").removeAttribute("disabled"); @@ -188,7 +190,8 @@ function Next() var l = document.getElementById("oov_fields").children.length; for (var i=0; i
".($i+1).".".$s."".$translation."
".($i+1).".".$s."".$translation."