Add calc by press enter.
This commit is contained in:
1 parent
6b06a49e8e
commit
c9978a20b1
3 files changed
+92
-2
No files matched your search
@@ -44,6 +44,23 @@ function toDescription(arr){
|
||||
return arr;
|
||||
}
|
||||
|
||||
function enterPress(e){
|
||||
var keynum=0;
|
||||
if(e.which){
|
||||
keynum = e.which;
|
||||
}else if(window.event){
|
||||
keynum = e.keyCode ;
|
||||
}
|
||||
if(keynum == 13){
|
||||
if(e.preventDefault){
|
||||
e.preventDefault();
|
||||
} else {
|
||||
e.returnValue = false;
|
||||
}
|
||||
calcPass();
|
||||
}
|
||||
}
|
||||
|
||||
function calcPass(){
|
||||
var serial = document.getElementById('serial_id').value;
|
||||
var answ = toDescription(toArray(autoGetBiosPwd(serial)));
|
||||
|
||||
Reference in new issue
Block a user