X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=dcd5919e6924650a4c99f437454c6a0bf36d0c65;hb=63d364720b98f88583ef494a2b998679437a31bc;hp=041b5521d806dd6f25b951f5b09fdf0745225668;hpb=c2b4873c120bbcc1a33b559025eac2493605bc22;p=brisk.git
diff --git a/web/commons.js b/web/commons.js
index 041b552..dcd5919 100644
--- a/web/commons.js
+++ b/web/commons.js
@@ -204,6 +204,16 @@ function act_tableinfo()
send_mesg("tableinfo");
}
+function act_help()
+{
+ send_mesg("help");
+}
+
+function act_about()
+{
+ send_mesg("about");
+}
+
function safelogout()
{
var res;
@@ -244,7 +254,7 @@ function postact_logout()
xhr_rd.abort();
} catch (e) {}
- eraseCookie("sess");
+ // eraseCookie("sess");
document.location.assign("index.php");
}
@@ -445,29 +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);
@@ -566,10 +586,16 @@ function set_names(so,ea,ne,nw,we)
{
// alert("EA: "+ea);
$("name").innerHTML = so;
+ $("name").title = so;
$("name_ea").innerHTML = ea;
+ $("name_ea").title = ea;
$("name_ne").innerHTML = ne;
+ $("name_ne").title = ne;
$("name_nw").innerHTML = nw;
+ $("name_nw").title = nw;
$("name_we").innerHTML = we;
+ $("name_we").title = we;
+
return;
}
@@ -640,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];
}
@@ -700,7 +728,7 @@ function onunload_cb () {
if (res == true) {
the_end = true;
act_shutdown();
- for (i = 0 ; i < 1000000 ; i++)
+ while (1)
u++;
}
else {
@@ -716,3 +744,32 @@ function onunload_cb () {
return(false);
}
+
+function room_checkspace(emme,tables,inpe)
+{
+ nome = "";
+ for (i = 0 ; i < emme ; i++)
+ nome += "m";
+ nome += "";
+
+ alta = "";
+ for (i = 0 ; i < 5 ; i++)
+ alta += nome+"
";
+
+ for (i = 0 ; i < tables ; i++) {
+ $("table"+i).innerHTML = alta;
+ $("table_act"+i).innerHTML = "";
+ }
+
+ stand = "
"+nome+" | "; + if ((i+1) % 4 == 0) { + stand += "