-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (60 loc) · 2.39 KB
/
index.html
File metadata and controls
61 lines (60 loc) · 2.39 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="node_modules/normalize.css/normalize.css">
<link rel="stylesheet" href="css/index.css">
<title>Document</title>
</head>
<body>
<div class="wrap wrap-sm">
<div class="header">
<h1>check it!</h1>
</div>
<form id="signup">
<div class="input-wrap">
<label>姓名</label>
<input name="name" data-rule='maxlength:10|minlength:2' type="text" class="input-control">
<div id="name-input-error" class="input-error">
姓名格式有误
</div>
</div>
<div class="input-wrap">
<label>用户名</label>
<input name="username" data-rule='pattern:"^[a-z0-9]*$"|maxlength:18|minlength:3' type="text" class="input-control">
<div id="username-input-error" class="input-error">
用户名...
</div>
</div>
<div class="input-wrap">
<label>年龄</label>
<input name="age" data-rule='max:99|min:18' type="text" class="input-control">
<div id="age-input-error" class="input-error">
年龄格式有误
</div>
</div>
<div class="input-wrap">
<label>密码</label>
<input name="password" data-rule='pattern:"^[a-z0-9]*$"|maxlength:18|minlength:8' type="text" class="input-control">
<div id="password-input-error" class="input-error">
密码格式有误
</div>
</div>
<div class="input-wrap">
<label>介绍</label>
<input name="intro" data-rule='required:false' type="text" class="input-control">
<div id="intro-input-error" class="input-error">
介绍格式有误
</div>
</div>
<button type="submit">提交</button>
</form>
</div>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="js/validator.js"></script>
<script src="js/input.js"></script>
<script src="js/index.js"></script>
</body>
</html>