X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=2eb5e01401ab01d173e595a9800fb6e261fb5d5d;hb=8866b31f28b69c5dd2857960ddeea08bcb9725d5;hp=26e15819727f1cc8b3347743757c4870efecba78;hpb=399b2e251dfa539d95e81bd3a20b47f114d9a5e2;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 26e1581..2eb5e01 100644 --- a/web/commons.js +++ b/web/commons.js @@ -309,11 +309,6 @@ function act_shutdown() c++; } -function act_preout() -{ - act_logout(); -} - function postact_logout() { // alert("postact_logout"); @@ -467,10 +462,12 @@ function dispose_asta(idx, pnt, nopoint) btn = $("asta"+i); if (i < idx) { btn.src = "img/astapasso"+(pnt >= 0 ? "" : "_ro")+".png"; + btn.style.cursor = (pnt >= 0 ? "pointer" : "default"); pass = -1; } else { btn.src = "img/asta"+i+(pnt >= 0 ? "" : "_ro")+".png"; + btn.style.cursor = (pnt >= 0 ? "pointer" : "default"); pass = i; } if (i < 19) @@ -478,15 +475,15 @@ function dispose_asta(idx, pnt, nopoint) else btn.style.left = asta_xarr[(i+1) % 3]; - btn.style.top = parseInt(i / 3) * 50+1; + btn.style.top = parseInt(i / 3) * 50 + (i == 9 ? 0 : 1); if (pnt >= 0) { eval("btn.onclick = function () { act_asta("+pass+",61); }"); - btn.style.hover_cursor = "pointer"; + btn.style.cursor = "pointer"; } else { btn.onclick = null; - btn.style.hover_cursor = ""; + btn.style.cursor = "default"; } } @@ -504,14 +501,14 @@ function dispose_asta(idx, pnt, nopoint) btn.style.left = asta_xarr[i % 3]; btn.style.top = 25 + parseInt(i / 3) * 50 - 1; btn.src = "img/astaptsub"+(pnt >= 0 ? "" : "_ro")+".png"; - // btn.style.visibility = "visible"; + btn.style.cursor = (pnt >= 0 ? "pointer" : "default"); if (pnt >= 0) { btn.onclick = function () { act_asta(9,$("astapt").value); }; - // btn.stylehover.cursor = "pointer"; + btn.style.cursor = "pointer"; } else { btn.onclick = null; - // btn.stylehover.cursor = ""; + btn.style.cursor = "default"; } i+=1; @@ -520,13 +517,12 @@ function dispose_asta(idx, pnt, nopoint) btn.style.left = asta_xarr[i % 3]; btn.style.top = parseInt(i / 3) * 50; btn.src = "img/astapashalf"+(pnt >= 0 ? "" : "_ro")+".png"; + btn.style.cursor = (pnt >= 0 ? "pointer" : "default"); if (pnt >= 0) { btn.onclick = function () { act_asta(-1,0); }; - // btn.stylehover.cursor = "pointer"; } else { btn.onclick = null; - // btn.stylehover.cursor = ""; } btn = $("astalascio"); @@ -541,13 +537,12 @@ function dispose_asta(idx, pnt, nopoint) btn.style.left = asta_xarr[i % 3]; btn.style.top = parseInt(i / 3) * 50;; btn.src = "img/astapasso"+(pnt >= 0 ? "" : "_ro")+".png"; + btn.style.cursor = (pnt >= 0 ? "pointer" : "default"); if (pnt >= 0) { btn.onclick = function () { act_asta(-1,0); }; - // btn.stylehover.cursor = "pointer"; } else { btn.onclick = null; - // btn.stylehover.cursor = ""; } btn = $("astalascio"); @@ -558,6 +553,13 @@ function dispose_asta(idx, pnt, nopoint) $("asta").style.visibility = "visible"; } +function asta_pnt_set(pnt) +{ + btn = $("astapt"); + var rpnt = (pnt < 0 ? -pnt : pnt); + btn.value = (rpnt < 61 ? 61 : (rpnt > 120 ? 120 : rpnt)); +} + function hide_asta() { $("asta").style.visibility = "hidden"; @@ -592,6 +594,7 @@ function notify(st, text, tout, butt, w, h) box.innerHTML = text; box.style.zIndex = 200; box.style.width = w+"px"; + box.style.marginLeft = -parseInt(w/2)+"px"; box.style.height = h+"px"; box.appendChild(clodiv); box.style.visibility = "visible"; @@ -881,7 +884,7 @@ function room_checkspace(emme,tables,inpe) stand = ""; for (i = 0 ; i < inpe ; i++) { - stand += ""; + stand += ""; if ((i+1) % 4 == 0) { stand += ""; } @@ -889,7 +892,7 @@ function room_checkspace(emme,tables,inpe) stand += ""; $("standup").innerHTML = stand; - $("esco").innerHTML = ""; + $("esco").innerHTML = ""; } function playsound(tag, sound) {
"+nome+""+nome+"