Line 206: | Line 206: | ||
function advanceStage(prev){ | function advanceStage(prev){ | ||
− | var | + | var cur = stages[idx], |
− | + | idx = (prev.idx + 1) % stages.length, | |
data = prev.data, | data = prev.data, | ||
disp; | disp; | ||
− | |||
− | |||
if(!cur){ | if(!cur){ | ||
Line 235: | Line 233: | ||
elCur.innerHTML = stages[currentStage.idx].name; | elCur.innerHTML = stages[currentStage.idx].name; | ||
elDesc.innerHTML = stages[currentStage.idx].description; | elDesc.innerHTML = stages[currentStage.idx].description; | ||
− | |||
− | |||
} | } | ||
Line 243: | Line 239: | ||
} | } | ||
− | elEnc.onkeyup = resetStage; | + | elEnc.oninput = elEnc.onkeyup = resetStage; |
− | elKey.onkeyup = resetStage; | + | elKey.oninput = elKey.onkeyup = resetStage; |
elStage.onclick = showStage; | elStage.onclick = showStage; | ||
Revision as of 14:25, 26 August 2016
Encryption
Enter the message you want to secure here
Message
Key
Enter your secret key/password here