From 97580f108b61e514989065858450de8ca63e52c3 Mon Sep 17 00:00:00 2001 From: timb Date: Fri, 12 Mar 2010 05:58:52 -0800 Subject: prevent huge messages from sending (client side block only) --- static/js/pichat.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'static') diff --git a/static/js/pichat.js b/static/js/pichat.js index 7314ff8..1a0f1df 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -121,6 +121,10 @@ function submitMessage() { var content = $.trim($('#msgInput').val()); $('#msgInput').val(''); if (content == '') { return; } + if (content.length > 6666) { + alert("POST TOO LONG DUDE!"); + return; + } // this shouldn't just be client side :V PendingMessages[content] = true; var msg = { 'nick': Nick, 'content': content }; -- cgit v1.2.3-70-g09d2 From cc2e415ee8bff7ee0ce9f7f6c8e7ef25cca3306a Mon Sep 17 00:00:00 2001 From: timb Date: Fri, 12 Mar 2010 12:17:04 -0800 Subject: add GA to login/register so we can tune bounce rates --- static/index.html | 9 +++++++++ static/register.html | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/index.html b/static/index.html index ed97c85..da98e29 100755 --- a/static/index.html +++ b/static/index.html @@ -213,6 +213,15 @@ label { + + diff --git a/static/register.html b/static/register.html index c60a319..2490542 100644 --- a/static/register.html +++ b/static/register.html @@ -244,7 +244,15 @@ top:15px; - + + -- cgit v1.2.3-70-g09d2