X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Froom.js;h=ff7255f6748ba10595b767d1331325ca245747bc;hb=be047939b855f179f5028f01fed371c4ac4fb235;hp=85c927589336e2f6c0e0f3c42078deb5f6e2ddcb;hpb=e18c2d271172bc19f1c999cc9498989c3eb87800;p=brisk.git
diff --git a/web/room.js b/web/room.js
index 85c9275..ff7255f 100644
--- a/web/room.js
+++ b/web/room.js
@@ -1,8 +1,36 @@
+/*
+ * brisk - room.js
+ *
+ * Copyright (C) 2006-2009 Matteo Nastasi
+ * mailto: nastasi@alternativeoutput.it
+ * matteo.nastasi@milug.org
+ * web: http://www.alternativeoutput.it
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details. You should have received a
+ * copy of the GNU General Public License along with this program; if
+ * not, write to the Free Software Foundation, Inc, 59 Temple Place -
+ * Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
+
+
/*
data = [ [ flags, name ], ... ]
*/
+var l_list_all = 0x00;
+var l_list_auth = 0x01;
+var l_list_isol = 0x02;
+
function state_add(flags)
{
var content = "";
@@ -11,34 +39,35 @@ function state_add(flags)
if ((flags & 0xf00) != 0) {
st = flags & 0xf00;
+ // MLANG 4,12,16,20,24,28
switch (st) {
case 0x100:
name = "st_pau.png";
- tit = "sono in pausa";
+ tit = (g_lang == 'en' ? "I'm doing a break" : "sono in pausa");
break;
case 0x200:
name = "st_out.png";
- tit = "sono fuori";
+ tit = (g_lang == 'en' ? "I'm away" : "sono fuori");
break;
case 0x300:
name = "st_dog.png";
- tit = "sono a spasso col cane";
+ tit = (g_lang == 'en' ? "Dog time" : "sono a spasso col cane");
break;
case 0x400:
name = "st_eat.png";
- tit = "sto mangiando";
+ tit = (g_lang == 'en' ? "I'm eating" : "sto mangiando");
break;
case 0x500:
name = "st_wrk.png";
- tit = "sono a lavoro";
+ tit = (g_lang == 'en' ? "I'm working" : "sono a lavoro");
break;
case 0x600:
name = "st_smk.png";
- tit = "sto fumando una sigaretta (e facendomi venire il cancro)";
+ tit = (g_lang == 'en' ? "I'm smoking a sigarett (and keeping a cancer)" : "sto fumando una sigaretta (e facendomi venire il cancro)");
break;
case 0x700:
name = "st_eye.png";
- tit = "sono presente!";
+ tit = (g_lang == 'en' ? "I'm here!" : "sono presente!");
break;
default:
break;
@@ -208,15 +237,20 @@ function j_stand_cont(data)
// if (standup_data_old == null) {
content = '
';
- for (i = 0 ; i < data.length ; i++) {
+ for (i = 0, ii = 0 ; ii < data.length ; ii++) {
+ if (g_listen & l_list_isol && ((data[ii][0] & 0x02) == 0)) {
+ continue;
+ }
if ((i % 4) == 0)
content += '