Skip to content

Instantly share code, notes, and snippets.

View natanloterio's full-sized avatar
🎯
Focusing

Natan Lotério natanloterio

🎯
Focusing
View GitHub Profile
@natanloterio
natanloterio / chat-frontend.js
Created December 2, 2012 01:48 — forked from martinsik/chat-frontend.js
Node.js chat frontend and server
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;