-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadmutification.html
More file actions
40 lines (38 loc) · 1.1 KB
/
loadmutification.html
File metadata and controls
40 lines (38 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登入模擬</title>
</head>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<body>
<form action="">
帳號: <input id="naga" type="text" name="a"><br>
密碼: <input id="miti" type="text" name="b">
<button id="loading" type="button">登入!</button><br>
成功與否: <span id="answer"></span>
</form>
<script>
$(document).ready(function(){
$("#loading").click(function(){
var a=$("#naga").val();
var b=$("#miti").val();
console.log(a);
var viplist = new Array("1","2","3","4","5");
var vipsecre = new Array("10","20","30","40","50");
if(viplist.includes(a)){
var c = viplist.indexOf(a);
if( b == vipsecre[c]){
$("#answer").text("Tr");
}
else {
$("#answer").text("Fl");
}
}
else{
$("#answer").text("False");
}
});
});
</script>