This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
174 lines (146 loc) · 5.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Passgen</title>
<link rel="stylesheet" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto+Slab&display=swap" rel="stylesheet">
</head>
<body>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<h1 class="title">
<span class="is-info-color">ez</span>Pass
</h1>
</a>
</div>
</nav>
<section class="section is-material-blue-background is-bold main-section">
<section class="hero ">
<div class="hero-body">
<div class="container">
<h1 class="title">
Safe, easy to Remember Password Generator
</h1>
<h2 class="subtitle">
No more garbled text, we create strong passwords about stuff you like.
</h2>
</div>
</div>
</section>
<div class="container main-container">
<div id="app" class="box">
<form @submit.prevent="generatePassword">
<h3 class="title search_title is-dark-color has-text-centered">
Give me a password about
<input id="wikipedia_search" type="text" v-model="page">
</h3>
</form>
<div id="password_field">
<div class="field has-addons">
<div class="control is-expanded">
<span id="password_result" :class="{'is-danger':error, 'is-primary' : copy_icon, 'copying': copy_icon}" class="input is-large" >
<span v-html="current_password">
</span>
</span>
</div>
<div class="control is-hidden-touch">
<button @click="debounced_copy" aria-label="Copy password":class="{'copying': copy_icon}" class="button is-info is-copy-button has-label is-large">
<span class="icon is-large ">
<i class="fas fa-copy"></i>
</span>
</button>
</div>
<div class="control is-hidden-touch">
<button @click="generatePassword" aria-label="Generate password" :class="{'loading': loading_icon}" class="button is-primary is-refresh-button has-label is-large">
<span class="icon is-large ">
<i class="fa fa-sync"></i>
</span>
</button>
</div>
</div>
<p class="help" >Data source: wikipedia.org/<span v-html="source"></span></p>
<div class="buttons is-hidden-desktop">
<button @click="copy" aria-label="Copy password":class="{'copying': copy_icon}" class="button is-info is-copy-button has-label is-large">
<span class="icon is-large ">
<i class="fas fa-copy"></i>
</span>
<span>
Copy
</span>
</button>
<button @click="generatePassword" aria-label="Generate password" :class="{'loading': loading_icon}" class="button is-primary is-refresh-button has-label is-large">
<span class="icon is-large ">
<i class="fa fa-sync"></i>
</span>
<span>
Generate
</span>
</button>
</div>
</div>
<div class="columns" id="settings_container">
<div class="column">
<div class="field">
<div class="control">
<label for="word_count_range" class="label is-large">How many words?</label>
<div class="range_wrapper" id="word_count_range">
<input :min="min_word_count" :max="max_word_count" v-model="word_count" type="range" class="is-xlarge ">
<div class="ticks">
<span v-for="n in max_word_count-min_word_count+1" >{{ getTickText(n + min_word_count - 1) }} </span>
</div>
</div>
</div>
</div>
</div>
<div class="column">
<div class="field">
<label class="label is-large">Customize it!</label>
<span class="control">
<label class="is-checkbox">
<input checked="checked" type="checkbox" v-model="add_symbols">
<span class="icon checkmark">
<i class="fa fa-check"></i>
</span>
<span>Add symbols ($!#@_...)</span>
</label>
</span>
<span class="control">
<label class="is-checkbox ">
<input checked="checked" type="checkbox" v-model="capitalize">
<span class="icon checkmark">
<i class="fa fa-check"></i>
</span>
<span>Capitalize words</span>
</label>
</span>
<span class="control">
<label class="is-checkbox ">
<input checked="checked" type="checkbox" v-model="add_numbers">
<span class="icon checkmark">
<i class="fa fa-check"></i>
</span>
<span>Add numbers</span>
</label>
</span>
</div>
</div>
</div>
</div>
</div>
</section>
<footer class="footer bottom">
<div class="content has-text-centered">
<p>
<strong>ezPass</strong> by <a href="https://luca.corigliano.me" target="_blank">Luca Corigliano.</a><br>
Released under <a href="http://opensource.org/licenses/mit-license.php" target="_blank">MIT</a> license.<br>
Grab the source code on <a href="https://github.com/LucaCorigliano/ezPass" target="_blank">GitHub</a>!
</p>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/js/all.min.js"></script>
<script src="app-dist.js"></script>
</body>
</html>