X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=2495cb69f2af60cec515b49b796147efe3728478;hb=312a6acc00ec7f331ab461894c319776eec95cae;hp=704c481b06a6b6bfff0604999631bb06611d68c0;hpb=9c50675b7a9e8cea4eb7ff31f00e82ee4500a366;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 704c481..2495cb6 100644 --- a/web/commons.js +++ b/web/commons.js @@ -1,7 +1,7 @@ /* * brisk - commons.js * - * Copyright (C) 2006-2008 Matteo Nastasi + * Copyright (C) 2006-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -19,8 +19,6 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ - * */ var PLAYERS_N = 3; @@ -252,6 +250,12 @@ function send_mesg(mesg) // alert("xhr_wr: "+xhr_wr+" is_conn: "+is_conn); xhr_wr.open('GET', 'index_wr.php?'+(is_conn ? 'sess='+sess+'&' : '')+'mesg='+mesg, (is_conn ? true : false)); xhr_wr.onreadystatechange = function() { return; }; + if (typeof(console) == 'object') { + if (typeof(console.log) == 'function') { + var ldate = new Date(); + console.log(ldate.getTime()+':MESG:'+mesg); + } + } xhr_wr.send(null); if (!is_conn) {