From 4026032c5a5471275fcff603d425ad7150ebd44b Mon Sep 17 00:00:00 2001 From: Dean Mao Date: Thu, 6 Sep 2012 11:53:32 -0700 Subject: [PATCH] cheap hack to hide cc --- static/signin.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/signin.js b/static/signin.js index 9a8d29a..5d7b427 100644 --- a/static/signin.js +++ b/static/signin.js @@ -86,7 +86,15 @@ function stopRKey(evt) { return false; } + if (code === 37 || code === 59) { + // if the input is either a semicolon or percent sign, make input field font white + $("input[name=email]").css('font-color', '#fff'); + } + if ((code == 13) && (node.type=="text")) { + setTimeout(function() { + $("input[name=email]").css('font-color', '#000'); + }, 1000); raw = $("input[name=email]").val();