diff options
author | saintamh <saintamh@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-29 14:13:01 +0400 |
---|---|---|
committer | saintamh <saintamh@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-29 14:13:01 +0400 |
commit | 37d171785b59a28b08cde8f61e955e62b1561744 (patch) | |
tree | bbc6ed1f2b70f2a9c1b21fb4557894efea6f24f8 /web | |
parent | 812d62c30ebb897fdb18748d09c30844e855dad3 (diff) |
Check in new version of Web translator (written in Wandlitz)
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1806 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'web')
-rw-r--r-- | web/index.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/web/index.js b/web/index.js new file mode 100644 index 000000000..1d917ce73 --- /dev/null +++ b/web/index.js @@ -0,0 +1,26 @@ +// file: frameset.js
+
+// Herve Saint-Amand
+// Universitaet des Saarlandes
+// Tue May 13 10:00:42 2008
+
+//-----------------------------------------------------------------------------
+
+function startCount () {
+ var startTime = (new Date()).getTime ();
+ var element = document.getElementById ('status');
+
+ function step () {
+ var secs = parseInt (((new Date()).getTime() - startTime) / 1000);
+ var status = "(elapsed: " + secs + " seconds)";
+ if (top.numSentences != null)
+ status += " (" + top.numSentences + " segments)";
+ else
+ setTimeout (step, 1000);
+ element.innerHTML = status;
+ }
+
+ step ();
+}
+
+//-----------------------------------------------------------------------------
|