Sha256: 22eedb06f8e1ed103660f4f0185dbfc7fdf05b209281ee351ed6bdaf8002a08a
Contents?: true
Size: 407 Bytes
Versions: 17
Compression:
Stored size: 407 Bytes
Contents
(function () { function say() { var input = $('input#talk')[0], text = encodeURIComponent(input.value); if (text) { $.post('/say', 'text=' + text, update, 'text/plain'); } input.value = ''; return false; } function update() { $('#main').load('/listen') } $('body').ready(function () { $('#chat').submit(say); $('input#talk').focus(); }); })();
Version data entries
17 entries across 17 versions & 4 rubygems