write-ups-challenges-2020-2021/break_the_gate/script/1.js

16 lines
297 B
JavaScript
Raw Normal View History

2022-11-24 17:03:20 +00:00
function auth1() {
var inp = { user: $('#inp_user').val(), passw: $('#inp_passw').val() }
sendAuth(inp, goNext, errorAnimation)
}
$(document).ready(function(){
$('#submit').click(function(){
auth1();
})
$(document).on('keypress',function(e) {
if(e.which == 13) {
auth1();
}
});
})