X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=88b97e7e44f8fa9739ffcb9d917dcea822bde1ba;hb=00768b5e1ff22271690b5977bca56e9b2fc46162;hp=6c6fc79b874310c6afdbd041164d8e85547413c6;hpb=f18bac8374119fa1f3c826e82cfc74ce2ce52dd7;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 6c6fc79..88b97e7 100644 --- a/web/commons.js +++ b/web/commons.js @@ -16,6 +16,8 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * + * $Id$ + * */ var PLAYERS_N = 3; @@ -58,6 +60,39 @@ function $(id) { return document.getElementById(id); } throw Error('setInterval Error\nInvalid function type'); }; }; + + /*Copy the default setTimeout behavior*/ + var nativeSetTimeout = window.setTimeout; + window.setTimeout = function(fn,ms) { + var param = []; + if(arguments.length <= 2) { + return nativeSetTimeout(fn,ms); + } + else { + for(var i=2;i"; + + for (i = 0 ; i < tables ; i++) { + $("table"+i).innerHTML = alta; + $("table_act"+i).innerHTML = ""; + } + + stand = ""; + for (i = 0 ; i < inpe ; i++) { + stand += ""; + if ((i+1) % 4 == 0) { + stand += ""; + } + } + stand += ""; + $("standup").innerHTML = stand; + + $("esco").innerHTML = ""; +} + +function playsound(tag, sound) { + // g_withflash is a global var + if (g_withflash) { + alert("PLAYSOUND "+sound); + $(tag).innerHTML = '' + +'' + +'' + +''; + } } -*/
"+nome+"