-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (61 loc) · 1.9 KB
/
index.html
File metadata and controls
62 lines (61 loc) · 1.9 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
62
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'">
<title>随机生成器</title>
<link rel="stylesheet" href="css/main.css"/>
</head>
<body>
<fieldset>
<legend>随机符串</legend>
<div class="d-flex">
<label>长度</label>
<input name="length" type="number" value="20">
<label>大写</label>
<input name="checkbox" type="checkbox" checked>
<label>小写</label>
<input name="checkbox" type="checkbox">
<label>特殊字符</label>
<input name="checkbox" type="checkbox">
<label>数字</label>
<input name="checkbox" type="checkbox">
<button id="random-num">生成10组</button>
</div>
<textarea id="txtBox"></textarea>
</fieldset>
<fieldset>
<legend>随机姓名</legend>
<div class="d-flex">
<label>长度</label>
<input name="size" type="number" value="3">
<label>单姓</label>
<input name="nameType" type="radio" value="0" checked>
<label>复姓</label>
<input name="nameType" type="radio" value="1">
<button id="random-name">生成10组</button>
</div>
<textarea id="txtName"></textarea>
</fieldset>
<fieldset>
<legend>验证身份证</legend>
<div class="d-flex">
<label>ID</label>
<input name="idcard" type="text" id="idCard" style="width: 80%;">
<button id="parse-id-card">验证</button>
</div>
<textarea id="txtCard"></textarea>
</fieldset>
<fieldset>
<legend>解析URL参数</legend>
<div class="d-flex">
<label>URL</label>
<input name="url" type="url" id="params" style="width: 80%;">
<button id="parse-url">解析</button>
</div>
<textarea id="txtURL"></textarea>
</fieldset>
<script src="js/constant.js"></script>
<script src="js/main.js"></script>
</body>
</html>