write-ups-challenges-2020-2021/break_the_gate/script/1.js
2022-11-24 18:03:20 +01:00

16 lines
297 B
JavaScript

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();
}
});
})