summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--index.php18
-rw-r--r--interface.php4
-rw-r--r--lfpe.css2
-rwxr-xr-xutil/run_server5
5 files changed, 25 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index b46fb42..9515d11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
*.out
*.err
+out.*
diff --git a/index.php b/index.php
index 96478dd..477602f 100644
--- a/index.php
+++ b/index.php
@@ -11,10 +11,26 @@
<?php include("header.php"); ?>
<form method="get" action="interface.php">
- Please enter your session key: <input type="text" name="key" />
+ Please enter your session key: <input type="text" id="key" name="key" />
<input type="submit" value="Submit" />
</form>
+<div class="small" style="margin-top:10em">
+<p>Beta test:
+<select class="small">
+ <option value="beta_test_A" onclick="document.getElementById('key').value=this.value;">A</option>
+ <option value="beta_test_A_sparse" onclick="document.getElementById('key').value=this.value;">A (sparse)</option>
+ <option value="beta_test_B" onclick="document.getElementById('key').value=this.value;">B</option>
+ <option value="beta_test_B_sparse" onclick="document.getElementById('key').value=this.value;">B (sparse)</option>
+ <option value="beta_test_C" onclick="document.getElementById('key').value=this.value;">C</option>
+ <option value="beta_test_C_sparse" onclick="document.getElementById('key').value=this.value;">C (sparse)</option>
+ <option value="beta_test_D" onclick="document.getElementById('key').value=this.value;">D</option>
+ <option value="beta_test_D_sparse" onclick="document.getElementById('key').value=this.value;">D (sparse)</option>
+ <option value="tiny_test" onclick="document.getElementById('key').value=this.value;">toy example</option>
+</select>
+</p>
+</div>
+
<?php include("footer.php"); ?>
diff --git a/interface.php b/interface.php
index d1f3f72..30a44b1 100644
--- a/interface.php
+++ b/interface.php
@@ -57,7 +57,9 @@ foreach($a->raw_source_segments as $s) {
<div id="help">
<strong>Help</strong><br />
<p>Press the 'Next' to submit your post-edit and to request the next segment to translate
-(or just press enter when the 'Target' textarea is in focus).</p>
+(or just press enter when the 'Target' textarea is in focus). You can stop your session at any time and continue it later; The 'Pause'
+button has currently no function. Please only use <em>one</em> browser window at once.<br/>
+The interface was tested with Firefox 31.</p>
<p class="xtrasmall">Support: <a href="mailto://simianer &auml;t cl.uni-heidelberg.de">Mail</a></p>
<p class="xtrasmall">Session: #<?php echo $_GET["key"]; ?> | <a href="http://coltrane.cl.uni-heidelberg.de:<?php echo $a->port; ?>/debug" target="_blank">Debug</a></p>
</div>
diff --git a/lfpe.css b/lfpe.css
index 5c29042..3fc0a2c 100644
--- a/lfpe.css
+++ b/lfpe.css
@@ -63,7 +63,7 @@ img#cl {
div#help {
margin-top: 2em;
font-size: .8em;
- width: 40%;
+ width: 70%;
color: #ccc;
text-align: justify
}
diff --git a/util/run_server b/util/run_server
index b983425..ca86554 100755
--- a/util/run_server
+++ b/util/run_server
@@ -4,7 +4,8 @@ export LD_LIBRARY_PATH=/fast_scratch/simianer/lfpe/lib/nanomsg-0.5-beta/lib:$LD_
export PYTHONPATH=/fast_scratch/simianer/lfpe/lib/python:$PYTHONPATH
export GEM_PATH=/fast_scratch/simianer/lfpe/lib/ruby/:$GEM_PATH
UTIL=/fast_scratch/simianer/lfpe/lfpe/util
-SESSION=tiny_test
+SESSION=$1
DIR=/fast_scratch/simianer/lfpe/sessions/$SESSION
-clear;$UTIL/kill;$UTIL/kill;$UTIL/kill;rm $DIR/work/lockfile; cp $DIR/data.json.original $DIR/data.json; $UTIL/../server.rb $DIR/conf.rb
+#clear;$UTIL/kill;$UTIL/kill;$UTIL/kill;
+rm $DIR/work/lockfile; cp $DIR/data.json.original $DIR/data.json; $UTIL/../server.rb $DIR/conf.rb