projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a2be12
)
aggiunta funz. di heartbit
author
Matteo Nastasi (mop)
<nastasi@alternativeoutput.it>
Sun, 1 Apr 2007 08:08:35 +0000
(08:08 +0000)
committer
Matteo Nastasi (mop)
<nastasi@alternativeoutput.it>
Sun, 1 Apr 2007 08:08:35 +0000
(08:08 +0000)
web/xhr.js
patch
|
blob
|
history
diff --git
a/web/xhr.js
b/web/xhr.js
index
ca1a2a0
..
3cbfe67
100644
(file)
--- a/
web/xhr.js
+++ b/
web/xhr.js
@@
-33,6
+33,14
@@
var the_end = false;
var ct = 0;
var watchdog = 0;
var ct = 0;
var watchdog = 0;
+function hbit(symb)
+{
+ if ($("heartbit").innerHTML.length >= 40)
+ $("heartbit").innerHTML = symb;
+ else
+ $("heartbit").innerHTML += symb;
+}
+
function xhr_rd_cb(xhr_rd)
{
var ret;
function xhr_rd_cb(xhr_rd)
{
var ret;
@@
-91,9
+99,7
@@
function xhr_rd_poll(sess)
$("sandbox").innerHTML = zug;
/* heartbit log */
$("sandbox").innerHTML = zug;
/* heartbit log */
- $("heartbit").innerHTML += "_";
- if ($("heartbit").innerHTML.length == 20)
- $("heartbit").innerHTML = "_";
+ hbit("_");
do {
again = 0;
do {
again = 0;
@@
-108,6
+114,8
@@
function xhr_rd_poll(sess)
singlecomm = gst.comms.shift();
// alert("EXE"+gugu);
// $("xhrdeltalog").innerHTML = "EVALL: "+singlecomm.replace("<", "<", "g"); +"<br>";
singlecomm = gst.comms.shift();
// alert("EXE"+gugu);
// $("xhrdeltalog").innerHTML = "EVALL: "+singlecomm.replace("<", "<", "g"); +"<br>";
+ hbit("+");
+
eval(singlecomm);
again = 1;
}
eval(singlecomm);
again = 1;
}
@@
-132,9
+140,7
@@
function xhr_rd_poll(sess)
watchdog = 0;
setTimeout(xhr_rd_poll, tout, sess);
watchdog = 0;
setTimeout(xhr_rd_poll, tout, sess);
- $("heartbit").innerHTML += "-";
- if ($("heartbit").innerHTML.length == 20)
- $("heartbit").innerHTML = "-";
+ // hbit(".");
}
return;
}
return;
@@
-159,6
+165,8
@@
function xhr_rd_poll(sess)
var delta = 0;
var match_lines = /^_*$/;
var delta = 0;
var match_lines = /^_*$/;
+ hbit("/\\");
+
// check for the same command group
if (xhr_rd_old_n != xhr_rd_cur_n) {
xhr_rd_old_n = xhr_rd_cur_n;
// check for the same command group
if (xhr_rd_old_n != xhr_rd_cur_n) {
xhr_rd_old_n = xhr_rd_cur_n;
@@
-223,9
+231,7
@@
function xhr_rd_poll(sess)
if (the_end != true) {
setTimeout(xhr_rd_poll, tout, sess);
if (the_end != true) {
setTimeout(xhr_rd_poll, tout, sess);
- $("heartbit").innerHTML += "-";
- if ($("heartbit").innerHTML.length == 20)
- $("heartbit").innerHTML = "-";
+ // hbit(".");
}
return;
}
return;