projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
renamed xhr.js to http_streaming.js and move hbit to externa heartbit.js file
[brisk.git]
/
web
/
heartbit.js
diff --git a/web/heartbit.js
b/web/heartbit.js
new file mode 100644
(file)
index 0000000..
d408775
--- /dev/null
+++ b/
web/heartbit.js
@@ -0,0
+1,11
@@
+function heartbit(symb)
+{
+ if ($("heartbit").innerHTML.length >= 120) {
+ $("heartbit").innerHTML = $("heartbit").innerHTML.substring(10);
+ $("heartbit").innerHTML += symb;
+ }
+ else {
+ $("heartbit").innerHTML += symb;
+ }
+}
+