-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpassword.html
More file actions
123 lines (114 loc) · 5.54 KB
/
password.html
File metadata and controls
123 lines (114 loc) · 5.54 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>密码生成器 - 太皮工具箱</title>
<link rel="icon" href="images/logo.png" type="image/png" />
<meta name="keywords" content="密码生成器, 随机密码, 安全密码, 密码强度">
<meta name="description" content="密码生成器,生成安全、随机的密码,可自定义长度和字符类型。">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<div class="app-container">
<!-- 侧边栏导航 -->
<nav class="sidebar">
<div class="logo">
<img src="./images/logo.png" alt="太皮工具箱 Logo" class="logo-image"/>
<h1>太皮工具箱</h1>
</div>
<ul class="nav-menu" id="navMenu"></ul>
</nav>
<!-- 主内容区 -->
<main class="main-content">
<!-- 顶部栏 -->
<div class="topbar">
<h2>密码生成器</h2>
<div class="topbar-controls">
<button class="theme-toggle" id="themeToggle">
<i class="fas fa-moon"></i>
</button>
</div>
</div>
<!-- 密码生成工具 -->
<div class="tool-content">
<div class="tool-header">
<div class="tool-icon">
<i class="fas fa-key"></i>
</div>
<div>
<h2 class="tool-title">密码生成器</h2>
<p class="tool-description">生成安全、随机的密码,可自定义长度和字符类型</p>
</div>
</div>
<div class="input-group">
<label for="passwordLength"><i class="fas fa-ruler"></i> 密码长度</label>
<input type="range" id="passwordLength" min="6" max="32" value="12">
<div style="display: flex; justify-content: space-between; margin-top: 5px;">
<span>6</span>
<span id="passwordLengthValue">12</span>
<span>32</span>
</div>
</div>
<div class="input-group">
<label><i class="fas fa-check-square"></i> 包含字符类型</label>
<div class="checkbox-group">
<label class="checkbox-label">
<input type="checkbox" id="includeLowercase" checked> 小写字母 (a-z)
</label>
<label class="checkbox-label">
<input type="checkbox" id="includeUppercase" checked> 大写字母 (A-Z)
</label>
<label class="checkbox-label">
<input type="checkbox" id="includeNumbers" checked> 数字 (0-9)
</label>
<label class="checkbox-label">
<input type="checkbox" id="includeSymbols" checked> 符号 (!@#$%^&*)
</label>
</div>
</div>
<div class="input-group">
<label for="generatedPassword"><i class="fas fa-key"></i> 生成的密码</label>
<div class="password-display">
<input type="text" id="generatedPassword" readonly>
<button id="copyPassword" class="btn btn-secondary">
<i class="fas fa-copy"></i> 复制
</button>
</div>
<div class="password-strength">
<div id="strengthMeter" class="strength-meter strength-weak"></div>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 5px;">
<span style="color: #f72585;">弱</span>
<span style="color: #f8961e;">一般</span>
<span style="color: #4cc9f0;">好</span>
<span style="color: #4ade80;">强</span>
</div>
</div>
<div class="button-group">
<button id="generatePassword" class="btn btn-success">
<i class="fas fa-key"></i> 生成密码
</button>
<button id="generateMultiple" class="btn btn-secondary">
<i class="fas fa-key"></i> 生成5个密码
</button>
<button id="clearPassword" class="btn btn-warning">
<i class="fas fa-broom"></i> 清空
</button>
</div>
<div class="result-container">
<div class="result-title"><i class="fas fa-list"></i> 最近生成的密码</div>
<div class="result-content copyable" id="passwordHistory">等待生成密码...</div>
</div>
</div>
<!-- 主内容区页脚 -->
<div id="main-footer-container"></div>
</main>
</div>
<!-- JavaScript文件 -->
<script src="js/main.js" type="module"></script>
<script src="js/tools/password.js" type="module"></script>
<script src="js/footer.js"></script>
</body>
</html>