-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
175 lines (163 loc) · 9.15 KB
/
index.html
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="assets/images/panda_trans_big.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- google font -->
<link href="https://fonts.googleapis.com/css2?family=Chewy&display=swap" rel="stylesheet">
<!--font awesome-->
<script src="https://use.fontawesome.com/b169762f77.js"></script>
<!-- my css -->
<link rel="stylesheet" href="assets/styles/main.css" />
<title>Password Panda - Password Generator</title>
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-light" style="background-color: #c6c8f0;">
<a class="navbar-brand" href="#">
<img src="assets/images/panda_trans_big.png" height="30" class="d-inline-block align-top" alt="">
Password Panda - Password Generator
</a>
</nav>
<!-- navbar ends -->
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header text-center">
Create a strong Password with <span
style="font-size: 26; font-family: 'chewy', cursive;">Password Panda</span>
<img src="assets/images/panda_trans_big.png" class="card-img-left" height="40" />
</div>
<div class="card-body">
<div class="card-text text-center">
<div>Use the slider, and the options, below.</div>
<small>click on refresh button to generate new password with same options selected.</small>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<form>
<!-- pwdBackGround is the background div of passwordText.
The password background will turn green or red depending on number of chosen password length -->
<div class="form-row" id="pwdBackground">
<div class="form-group col-lg-10">
<!-- password textarea is kept readonly using 'readonly attribute' -->
<textarea class="form-control" rows="3" id="password" readonly></textarea>
</div>
<div class="form-group">
<!-- regenate button is used to regenerate password using already selected criteria -->
<button type="button" class="btn btn-md btn-outline-light" id="regenerate"><i class="fa fa-refresh"
aria-hidden="true"></i></button>
</div>
<div class="form-group">
<!-- copybtn copies the password to clipboard -->
<button type="button" class="btn btn-md btn-outline-light" id="copybtn"><i class="fa fa-clipboard"
aria-hidden="true"></i></button>
</div>
<!-- This form group is to convey user is the password is weak or strong.
weak or strong is decided based on length.
-->
<div class="form-group col-sm-12">
<div class="text-center" style="background-color: #d2def7;opacity: 0.7;">
<img src="assets/images/panda_btn.png" height="20" style="margin: 0px;" />
<span id="strengthSymbol"> <i class="fa fa-exclamation-circle" aria-hidden="true"></i>
</span>
<span id="strengthText"> Weak</span>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12">
<!-- password length using range control -->
<label for="pwdLengthRange">Select Password Length (8-128 characters)</label>
<div class="range-wrap" style="width: 75%;">
<input type="range" class="form-control-range range" id="pwdLengthRange" min="0" max="128"
value="8">
<!-- the password length bubble is a div which visually shows length of range -->
<div id="pwdLength" class="bubble">8</div>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12">
<div class="form-check">
<!-- Allow repeating characters checkbox -->
<input class="form-check-input" type="checkbox" id="repeatingchars" checked="true">
<label class="form-check-label" for="gridCheck">
Allow Repeating Characters
</label>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-2">
<div class="form-check">
<!-- Checkbox to allow lower case letters in password -->
<input class="form-check-input" type="checkbox" id="letters" checked="true">
<label class="form-check-label" for="gridCheck">
Letters (lower case)
</label>
</div>
</div>
<div class="form-group col-md-4">
<div class="form-check">
<!-- Checkbox to allow both lower and upper case letters in password -->
<input class="form-check-input" type="checkbox" id="mixedcase" checked="true">
<label class="form-check-label" for="gridCheck">
Mixed Case (lower case + upper case)
</label>
</div>
</div>
<div class="form-group col-md-2">
<div class="form-check">
<!-- Checkbox to allow special case characters in password -->
<input class="form-check-input" type="checkbox" id="punctuations" checked="true">
<label class="form-check-label" for="gridCheck">
Punctuations
</label>
</div>
</div>
<div class="form-group col-md-2">
<div class="form-check">
<!-- Checkbox to allow numbers in password -->
<input class="form-check-input" type="checkbox" id="numbers" checked="true">
<label class="form-check-label" for="gridCheck">
Numbers
</label>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!--container end-->
<div style="height: 40px;"></div>
<footer id="ppfooter" class="fixed-bottom" style="background-color: #c6c8f0;">
<img src="assets/images/panda_trans_big.png" height="25px" /><strong>Password Panda </strong> | Coded By <strong>Abhijeet Bhagat</strong>
<a href="https://github.com/bhagatabhijeet/passwordpanda" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
<!-- main logic script -->
<script src="assets/script/script.js"></script>
</body>
</html>