function set_names(so,ea,ne,nw,we)
{
// alert("SET NAME");
- $("name").innerHTML = user_decorator(so);
+ $("name").innerHTML = user_decorator(so, false);
$("name").title = unescapeHTML(so[1]);
- $("name_ea").innerHTML = user_decorator(ea);
+ $("name_ea").innerHTML = user_decorator(ea, false);
$("name_ea").title = unescapeHTML(ea[1]);
- $("name_ne").innerHTML = user_decorator(ne);
+ $("name_ne").innerHTML = user_decorator(ne, false);
$("name_ne").title = unescapeHTML(ne[1]);
- $("name_nw").innerHTML = user_decorator(nw);
+ $("name_nw").innerHTML = user_decorator(nw, false);
$("name_nw").title = unescapeHTML(nw[1]);
- $("name_we").innerHTML = user_decorator(we);
+ $("name_we").innerHTML = user_decorator(we, false);
$("name_we").title = unescapeHTML(we[1]);
for (i = 0 ; i < PLAYERS_N ; i++)
/*
* brisk - commons.js
*
- * Copyright (C) 2006-2012 Matteo Nastasi
+ * Copyright (C) 2006-2015 Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
})()
-function addEvent(obj,type,fn)
+function addEvent(obj, type, fn)
{
if (obj.addEventListener) {
obj.addEventListener( type, fn, false);
var CHATT_MAXLINES = 40;
-function user_decorator(user)
+function user_decorator(user, is_real)
{
var name, i, sp = "", cl = "";
var flags = user[0] & 0x03 | ((user[0] & 0x0c0000) >> 16);
}
if (flags != 0)
- name = "<span class='" + cl + "'><span>"+user[1]+"</span></span>";
+ name = "<span class='" + cl + "'><span class='" +
+ (is_real && (flags & 0xfffffe) ? "id_usr" : "") +
+ "'>"+user[1]+"</span></span>";
else
name = user[1];
var content = "";
var val_el;
- content = user_decorator(el);
+ content = user_decorator(el, true);
content += state_add(el[0],(typeof(el[2]) != 'undefined' ? el[2] : null));
return (content);
var flags;
var isauth;
var bolder = [ (data[0] | 1), data[1] ];
- name = user_decorator(bolder);
+ name = user_decorator(bolder, false);
if ($("txt").scrollTop + parseInt(getStyle($("txt"),"height", "height")) - $("txt").scrollHeight >= 0)
must_scroll = true;