projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UNIQUE constraint added to login and email fields
[brisk.git]
/
web
/
briskin5
/
briskin5.js
diff --git
a/web/briskin5/briskin5.js
b/web/briskin5/briskin5.js
index
c49f913
..
d471964
100644
(file)
--- a/
web/briskin5/briskin5.js
+++ b/
web/briskin5/briskin5.js
@@
-1,7
+1,7
@@
/*
* brisk - briskin5.js
*
/*
* brisk - briskin5.js
*
- * Copyright (C) 2006-20
08
Matteo Nastasi
+ * Copyright (C) 2006-20
11
Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
@@
-19,10
+19,11
@@
* not, write to the Free Software Foundation, Inc, 59 Temple Place -
* Suite 330, Boston, MA 02111-1307, USA.
*
* not, write to the Free Software Foundation, Inc, 59 Temple Place -
* Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id$
- *
*/
*/
+var mlang_briskin5 = { 'is_calling' : { 'it' : ' sta chiamando',
+ 'en' : ' is calling' } }
+
function background_set()
{
$("bg").style.backgroundImage = 'url("img/brisk_table_sand'+table_pos+'.jpg")';
function background_set()
{
$("bg").style.backgroundImage = 'url("img/brisk_table_sand'+table_pos+'.jpg")';
@@
-207,6
+208,8
@@
function table_init() {
$("asta").style.visibility = "hidden";
$("caller").style.visibility = "hidden";
show_astat(-2,-2,-2,-2,-2);
$("asta").style.visibility = "hidden";
$("caller").style.visibility = "hidden";
show_astat(-2,-2,-2,-2,-2);
+ set_iscalling(-1);
+
for (i=0 ; i < 8 ; i++) {
Drag.init($("card" + i), card_mouseup_cb);
for (e = 0 ; e < PLAYERS_N ; e++)
for (i=0 ; i < 8 ; i++) {
Drag.init($("card" + i), card_mouseup_cb);
for (e = 0 ; e < PLAYERS_N ; e++)
@@
-268,7
+271,7
@@
function act_reload()
function set_names(so,ea,ne,nw,we)
{
function set_names(so,ea,ne,nw,we)
{
-
// alert("EA: "+ea
);
+
// alert("SET NAME"
);
$("name").innerHTML = italizer(so);
$("name").title = unescapeHTML(so[1]);
$("name_ea").innerHTML = italizer(ea);
$("name").innerHTML = italizer(so);
$("name").title = unescapeHTML(so[1]);
$("name_ea").innerHTML = italizer(ea);
@@
-280,9
+283,22
@@
function set_names(so,ea,ne,nw,we)
$("name_we").innerHTML = italizer(we);
$("name_we").title = unescapeHTML(we[1]);
$("name_we").innerHTML = italizer(we);
$("name_we").title = unescapeHTML(we[1]);
+ for (i = 0 ; i < PLAYERS_N ; i++)
+ $("name"+astat_suffix[i]).title_orig = $("name"+astat_suffix[i]).title;
+
return;
}
return;
}
+function set_iscalling(idx)
+{
+ var i;
+
+ for (i = 0 ; i < PLAYERS_N ; i++) {
+ $("name"+astat_suffix[i]).className = "pubinfo"+astat_suffix[i]+(i == idx ? "_iscalling" : "");
+ $("name"+astat_suffix[i]).title = $("name"+astat_suffix[i]).title_orig + (i == idx ? mlang_briskin5['is_calling'][g_lang] : "");
+ }
+}
+
function preferences_init()
{
var rd;
function preferences_init()
{
var rd;
@@
-299,7
+315,7
@@
function preferences_init()
function preferences_update()
{
var ret;
function preferences_update()
{
var ret;
- createCookie("CO_bin5_pref_ring_endauct", ($('preferences').ring_endauct ? "true" : "false"), 24*3650, cookiepath
+"/briskin5"
);
+ createCookie("CO_bin5_pref_ring_endauct", ($('preferences').ring_endauct ? "true" : "false"), 24*3650, cookiepath);
ret = server_request('mesg', 'preferences_update');
}
ret = server_request('mesg', 'preferences_update');
}