Skip to content

Trying to make a password type input #95

Discussion options

You must be logged in to vote

Okay, I had time to test things, and it looks like this is all you need to include the "onkeyup" part:

@title Input Test Game
    window.handleAlphaSubmit = function(e){if(e.keyCode==13 || jQuery("#Alpha").val().replace(/^\w|\s\w/g, function(t) { return t.toUpperCase() }) == atob('U2FuZG1hbg==')) {squiffy.story.go('JS 1');}};
v1.0.2

<p><input type="text" style="text-transform: capitalize; color: black" id="Alpha" size="15" onkeyup="handleAlphaSubmit(event)"> [[Enter]](JS 1)</p>
[[JS 1]]:
    squiffy.set("Q1", jQuery("#Alpha").val().replace(/^\w|\s\w/g, function(t) { return t.toUpperCase() })); squiffy.story.go("Query");

[[Query]]:
    if (squiffy.get("Q1") == atob('U2FuZG1hbg==')) squiffy.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@YourLocalCherryTopper
Comment options

@KVonGit
Comment options

KVonGit Dec 15, 2024
Collaborator

@KVonGit
Comment options

KVonGit Dec 15, 2024
Collaborator

@KVonGit
Comment options

KVonGit Dec 15, 2024
Collaborator

Answer selected by YourLocalCherryTopper
@YourLocalCherryTopper
Comment options

@KVonGit
Comment options

KVonGit Dec 15, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants