From: Matteo Nastasi (mop) Date: Mon, 15 Jan 2007 12:52:04 +0000 (+0000) Subject: loop infinito per gestire il logout violento e funzione per verificare gli ingombri X-Git-Tag: 3.0.0~379 X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=commitdiff_plain;h=041ad76b646377ac5d09f244fa0f524547b1a942 loop infinito per gestire il logout violento e funzione per verificare gli ingombri --- diff --git a/web/commons.js b/web/commons.js index 041b552..18b89c8 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++; @@ -700,7 +700,7 @@ function onunload_cb () { if (res == true) { the_end = true; act_shutdown(); - for (i = 0 ; i < 1000000 ; i++) + while (1) u++; } else { @@ -716,3 +716,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 = ""; + for (i = 0 ; i < inpe ; i++) { + stand += ""; + if ((i+1) % 4 == 0) { + stand += ""; + } + } + stand += ""; + $("standup").innerHTML = stand; + + $("esco").innerHTML = ""; +}
"+nome+"