throw Error('setInterval Error\nInvalid function type');
};
};
+
+ /*Copy the default setTimeout behavior*/
+ var nativeSetTimeout = window.setTimeout;
+ window.setTimeout = function(fn,ms) {
+ var param = [];
+ if(arguments.length <= 2) {
+ return nativeSetTimeout(fn,ms);
+ }
+ else {
+ for(var i=2;i<arguments.length;i+=1) {
+ param[i-2] = arguments[i];
+ }
+ }
+
+ if(typeof(fn)=='function') {
+
+ return (function (fn,ms,param) {
+ var fo = function () {
+ fn.apply(window,param);
+ };
+ return nativeSetTimeout(fo,ms);
+ })(fn,ms,param);
+ }
+ else if(typeof(fn)=='string')
+ {
+ return nativeSetTimeout(fn,ms);
+ }
+ else
+ {
+ throw Error('setTimeout Error\nInvalid function type');
+ };
+ };
+
})()
// var card_pos = RANGE 0 <= x < cards_ea_n
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++;
send_mesg("tableinfo");
}
+function act_help()
+{
+ send_mesg("help");
+}
+
+function act_about()
+{
+ send_mesg("about");
+}
+
function safelogout()
{
var res;
xhr_rd.abort();
} catch (e) {}
- eraseCookie("sess");
+ // eraseCookie("sess");
document.location.assign("index.php");
}
$("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);
{
// 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;
}
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];
}