From a29b90cba17c4ef5b03b505195410c6287cab774 Mon Sep 17 00:00:00 2001
From: Patrick Simianer 
Date: Fri, 26 Jun 2015 15:20:55 +0200
Subject: interface
---
 footer.php    |  9 ++++++
 header.php    | 10 +++++++
 index.php     | 82 ++++++------------------------------------------------
 interface.php | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lfpe.css      | 21 ++++++++++----
 lfpe.js       |  6 ++--
 6 files changed, 135 insertions(+), 82 deletions(-)
 create mode 100644 footer.php
 create mode 100644 header.php
 create mode 100644 interface.php
diff --git a/footer.php b/footer.php
new file mode 100644
index 0000000..32fd415
--- /dev/null
+++ b/footer.php
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/header.php b/header.php
new file mode 100644
index 0000000..d7b84eb
--- /dev/null
+++ b/header.php
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/index.php b/index.php
index 3505eda..96478dd 100644
--- a/index.php
+++ b/index.php
@@ -1,88 +1,22 @@
 
 
   
-  
Post-editing application (key:  
+  
Post-editing application 
   
   
 
 
-
+
 
-
-
+
 
-
-
-
+
 
-
-
-
-  Source: 
-   
-
-  Target: 
-   
-
-
+
 
-
-
-  
Pause 
-  
Start/Continue 
-  
Working  
-
-
-
-
-
-
Document overview 
-
-raw_source_segments as $s) {
-  if ($i <= $a->progress) {
-    echo "".($i+1).". ".$s." ".$a->post_edits_raw[$i]." ".($i+1).". ".$s." 
-
-
-
-
-
-Help 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 
 
 
diff --git a/interface.php b/interface.php
new file mode 100644
index 0000000..3505eda
--- /dev/null
+++ b/interface.php
@@ -0,0 +1,89 @@
+
+
+  
+  
Post-editing application (key:  
+  
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  Source: 
+   
+
+  Target: 
+   
+
+
+
+
+
+  
Pause 
+  
Start/Continue 
+  
Working  
+
+
+
+
+
+
Document overview 
+
+raw_source_segments as $s) {
+  if ($i <= $a->progress) {
+    echo "".($i+1).". ".$s." ".$a->post_edits_raw[$i]." ".($i+1).". ".$s." 
+
+
+
+
+
+Help 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lfpe.css b/lfpe.css
index 2f9b4c3..5c29042 100644
--- a/lfpe.css
+++ b/lfpe.css
@@ -4,8 +4,8 @@ html {
 }
 
 textarea {
-  font-size: 20px;
-  width: 100%
+  font-size: 2em;
+  width:     100%
 }
 
 button {
@@ -16,6 +16,8 @@ button {
 }
 
 .bold { font-weight:bold }
+.small { font-size:.8em }
+.xtrasmall { font-size:.6em }
 
 div#wrapper {
   margin:  2em;
@@ -29,7 +31,8 @@ span#status {
 }
 
 /* Document overview */
-table#overview { font-size:80% }
+div#overview_wrapper { margin-top:1em }
+table#overview { font-size:.8em }
 table#overview td.seg_text { width: 45% }
 table#overview td { border-bottom: 1px solid #000 }
 /* /Document overview */
@@ -44,7 +47,10 @@ p#footer {
 }
 
 /* Header */
-div#header { margin-bottom: 2em }
+div#header {
+  margin-bottom: 2em;
+  text-align:right
+}
 img#uni {}
 img#cl {
   margin-bottom:20px;
@@ -54,12 +60,15 @@ img#cl {
 /* /Header */
 
 /* Help */
-p#help {
+div#help {
+  margin-top: 2em;
   font-size:  .8em;
   width:      40%;
   color:      #ccc;
   text-align: justify
 }
-p#help:hover { color: #000 }
+div#help a { color:#ccc }
+div#help:hover { color: #000 }
+div#help:hover a { color: #000 }
 /* /Help */
 
diff --git a/lfpe.js b/lfpe.js
index 83257c1..49db94d 100644
--- a/lfpe.js
+++ b/lfpe.js
@@ -5,6 +5,7 @@ function init()
   document.getElementById("source").value = "";
   document.getElementById("current_seg_id").value = "";
   document.getElementById("paused").value = "";
+  document.getElementById("next").removeAttribute("disabled");
 
   return false;
 }
@@ -61,7 +62,8 @@ function Next()
   button.setAttribute("disabled", "disabled");
   target_textarea.setAttribute("disabled", "disabled");
 
-  var base_url = "http://coltrane.cl.uni-heidelberg.de:60666"; // FIXME: variable
+  var port = document.getElementById("port").value;
+  var base_url = "http://coltrane.cl.uni-heidelberg.de:"+port;
 
   var key = document.getElementById("key").value;
   next_url = base_url+"/next?key="+key;
@@ -140,7 +142,7 @@ function Next()
       source.value = src;
 
       // confirm to server
-      var xhr_confirm = CreateCORSRequest('get', "http://coltrane.cl.uni-heidelberg.de:60666/confirm");
+      var xhr_confirm = CreateCORSRequest('get', base_url+"/confirm");
       xhr_confirm.send(); // FIXME: handle errors
     }
   };
-- 
cgit v1.2.3