X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=dcd5919e6924650a4c99f437454c6a0bf36d0c65;hb=63d364720b98f88583ef494a2b998679437a31bc;hp=5079a8b9f0c9859b622966f34e26b3183db310ad;hpb=6509e1f0cbd966ed218626908b69796ded418fb6;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 5079a8b..dcd5919 100644 --- a/web/commons.js +++ b/web/commons.js @@ -90,7 +90,7 @@ function reset_images() function update_images() { - // $("imgct").innerHTML = "Immagini caricate "+g_preload_imgsz_arr[g_imgct]+"%."; + $("imgct").innerHTML = "Immagini caricate "+g_preload_imgsz_arr[g_imgct]+"%."; if (g_imgct < g_preload_img_arr.length) setTimeout(preload_images, 100, g_preload_img_arr, g_imgct); g_imgct++; @@ -209,6 +209,11 @@ function act_help() send_mesg("help"); } +function act_about() +{ + send_mesg("about"); +} + function safelogout() { var res; @@ -450,31 +455,39 @@ function hide_asta() $("asta").style.visibility = "hidden"; } -function notify(st, ancestor, text, tout, butt) + +function notify(st, text, tout, butt, w, h) { var clo, box; var t = this; this.st = st; - this.ancestor = ancestor; + this.ancestor = document.body; this.st.st_loc_new++; clo = document.createElement("input"); clo.type = "submit"; clo.className = "button"; + clo.style.bottom = "4px"; clo.value = butt; clo.obj = this; clo.onclick = this.input_hide; + + clodiv = document.createElement("div"); + clodiv.className = "notify_clo"; + clodiv.appendChild(clo); box = document.createElement("div"); box.className = "notify"; box.innerHTML = text; box.style.zIndex = 200; - box.appendChild(clo); + box.style.width = w+"px"; + box.style.height = h+"px"; + box.appendChild(clodiv); box.style.visibility = "visible"; - + this.notitag = box; this.ancestor.appendChild(box); @@ -653,13 +666,15 @@ function table_init() { var chatt_lines = new Array(); var chatt_lines_n = 0; +var CHATT_MAXLINES = 40; + /* PRO CHATT */ function chatt_sub(name,str) { // alert("ARRIVA NAME: "+ name + " STR:"+str); - if (chatt_lines_n == 20) { + if (chatt_lines_n == CHATT_MAXLINES) { $("txt").innerHTML = ""; - for (i = 0 ; i < 19 ; i++) { + for (i = 0 ; i < (CHATT_MAXLINES - 1) ; i++) { chatt_lines[i] = chatt_lines[i+1]; $("txt").innerHTML += chatt_lines[i]; }