fix missing bold for your account item
[brisk.git] / web / xynt-streaming-ifra.js
1 var ctx_new      = "";
2 var ctx_old_len  = 0;
3 var last_clean   = 0;
4 var script_clean = -1;
5
6 function push(s) {
7     var i;
8
9     // window.parent.console.log('push('+s+');');
10     for (i = last_clean ; i < script_clean ; i++) {
11         if (typeof($('hs'+i)) != 'undefined' && $('hs'+i) != null) {
12             document.body.removeChild($('hs'+i));
13             // if (typeof(CollectGarbage) == "function") {
14             // CollectGarbage();
15             // }
16
17             last_clean = i;
18         }
19         else {
20             // window.parent.console.log('ifra: hs'+i+" NOT FOUND");
21         }
22     }
23     // FIXME: remove this barbarian log
24     // window.parent.console.log("ifra: ctx_new.length: "+ctx_new.length+"  ctx_old_len: "+ctx_old_len);
25     if (ctx_new.length == ctx_old_len && ctx_old_len > 0) {
26         // FIXME: remove this barbarian log
27         // window.parent.console.log("ifra: NOW clean");
28         // alert("cleanna");
29         ctx_new = "";
30         ctx_old_len = 0;
31     }
32     if (s != null) {
33         ctx_new = ctx_new + "@BEGIN@" + s + "@END@";
34         // FIXME: remove this barbarian log
35         // window.parent.console.log("ifra: CTX_NEW: ["+ctx_new+"]");
36         
37     }
38     else {
39         ctx_new = ctx_new + "_";
40     }
41     return;
42 }