X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Fcommons.js;h=33bb8eb066e48eb54ec1234f74d54ad0a26842fc;hb=1a1f16006e9892945f76c19eb3f57e29bb5cc8f1;hp=041b5521d806dd6f25b951f5b09fdf0745225668;hpb=c2b4873c120bbcc1a33b559025eac2493605bc22;p=brisk.git
diff --git a/web/commons.js b/web/commons.js
index 041b552..33bb8eb 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++;
@@ -244,7 +244,7 @@ function postact_logout()
xhr_rd.abort();
} catch (e) {}
- eraseCookie("sess");
+ // eraseCookie("sess");
document.location.assign("index.php");
}
@@ -457,6 +457,7 @@ function notify(st, ancestor, text, tout, butt)
clo = document.createElement("input");
clo.type = "submit";
+ clo.className = "button";
clo.value = butt;
clo.obj = this;
clo.onclick = this.input_hide;
@@ -566,10 +567,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;
}
@@ -700,7 +707,7 @@ function onunload_cb () {
if (res == true) {
the_end = true;
act_shutdown();
- for (i = 0 ; i < 1000000 ; i++)
+ while (1)
u++;
}
else {
@@ -716,3 +723,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 += "