User:Super Miron/global-chat.js

var faces = [ ["( ≖‿≖)", "( ≖⁔≖)"],   ["( ͡° ͜ʖ ͡°)", "٩(͡๏̯͡๏)۶"], ["ಠ_ಠ"] ];

/////////////////////////////////////////////////////////////////////////////////////////

var facesTable = ""; for(var i=0; i'+faces[i][j]+' '; }   facesTable += " "; }

$('form#Write').append('Faces'); $("body").append(' ');

function toggleFaces { $("table#faces").toggle; }

var inputbox = '#Write textarea[name="message"]'; function inputboxAppend(s){ var inputboxVal = $(inputbox).val; if ( inputboxVal != '' ) { if ( inputboxVal[inputboxVal.length-1] != " " ) { var val = inputboxVal + ' ' + s;		} else { var val = inputboxVal + s;		} $(inputbox).val(''); } else { var val = s;	} $(inputbox).focus; // set focus on the input box $(inputbox).val(val); // apply the new value }