Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Crappy hack to hide cc number #6

Merged
merged 1 commit into from

2 participants

@deanmao
Owner

Someone should test to see if this actually works....

@dustball dustball merged commit ca4c48a into hackerdojo:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 6, 2012
  1. @deanmao

    cheap hack to hide cc

    deanmao authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +8 −0 static/signin.js
View
8 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();
Something went wrong with that request. Please try again.