X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2Fbriskin5.js;h=ffe6c8b14ff814b85be8f83290945d4a0c0e550d;hb=2df71753e1e8eeb36d37ac21eba24df8f25a8d32;hp=d571b75f8d52cb4b791e4120a9ae38ecbc40d4eb;hpb=70234232cbab5617dcae7a3719b7d7a75f63cf62;p=brisk.git diff --git a/web/briskin5/briskin5.js b/web/briskin5/briskin5.js index d571b75..ffe6c8b 100644 --- a/web/briskin5/briskin5.js +++ b/web/briskin5/briskin5.js @@ -1,7 +1,7 @@ /* * brisk - briskin5.js * - * Copyright (C) 2006-2011 Matteo Nastasi + * Copyright (C) 2006-2012 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -115,7 +115,7 @@ function dispose_asta(idx, pnt, nopoint) btn.style.left = asta_xarr[i % 3]; btn.style.top = parseInt(i / 3) * 50 + 24; btn.src = "img/astalascio"+lng+".png"; - btn.style.visibility = "visible"; + btn.style.visibility = ""; btn.onclick = function () { safelascio(); }; } else { @@ -210,7 +210,7 @@ function table_init() { show_astat(-2,-2,-2,-2,-2); set_iscalling(-1); - for (i=0 ; i < 8 ; i++) { + for (i=0 ; i < CARD_HAND ; i++) { Drag.init($("card" + i), card_mouseup_cb); for (e = 0 ; e < PLAYERS_N ; e++) $("card"+sux[e]+i).style.visibility = "hidden"; @@ -220,7 +220,7 @@ function table_init() { $("takes"+sux[i]).style.visibility = "hidden"; } - for (i = 0 ; i < 8 ; i++) { + for (i=0 ; i < CARD_HAND ; i++) { cards_pos[i] = i; cards_ea_pos[i] = i; cards_ne_pos[i] = i; @@ -266,7 +266,9 @@ function act_reload() { window.onunload = null; window.onbeforeunload = null; - document.location.reload(); + // alert(document.location.toString()); + document.location.assign("index.php"); + // document.location.reload(); } function set_names(so,ea,ne,nw,we)