Commits

Fred T-H committed ab448fe

Still moving forward with the JS implementation.

The server-side stuff will be needed to do more now.

  • Participants
  • Parent commits 548a6d5

Comments (0)

Files changed (3)

File js/client.js

 					'<input type="submit" id="chut_'+user_id+'_send" />'+
 				'</div>';
 			$(el).append(txt);
+			// bind events!
+			$('#chut_'+user_id+'_send').click(function(){
+				var from = escape($('#chut_nick').val());
+				var msg = escape($('#chut_'+user_id+'_msg').val());
+				Chut.message(from, user_id, msg);
+			});
 		}
 	}
 };
 			var nick = escape(nickbox.val());
 			nickbox.attr('readonly','readonly');
 			$('#connect').remove();
+			Chut.history(nick);
 			Chut.listen(nick);
 		}
 	});

File js/favicon.ico

Added
New image

File js/index.html

 <html>
 <head>
 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+	<link rel="icon" type="image/vnd.microsoft.icon" href="favicon.ico" />
 	<title>Chut - Demo comet implementation</title>
 	<style type="text/css">
 		label {