mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 21:42:19 +03:00
27 lines
780 B
JavaScript
27 lines
780 B
JavaScript
// 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 ();
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|