-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·304 lines (300 loc) · 18.7 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html>
<head>
<title>Passcloud</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- IOS META -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="google" value="notranslate" />
<meta name="apple-mobile-web-app-title" content="Passcloud" />
<meta name="application-name" content="Passcloud" />
<link rel="apple-touch-startup-image" href="./img/launch.png">
<!-- ICONS -->
<link rel="apple-touch-icon" href="touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="152x152" href="./img/icons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="./img/icons/apple-touch-icon-180x180.png">
<link rel="apple-touch-icon" sizes="167x167" href="./img/icons/apple-touch-icon-ipad-retina.png">
<link rel="icon" type="image/png" sizes="32x32" href="./img/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./img/icons/favicon-16x16.png">
<link rel="manifest" href="./img/icons/site.webmanifest">
<link rel="mask-icon" href="./img/icons/safari-pinned-tab.svg" color="#3d5063">
<link rel="shortcut icon" href="./img/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#3d5063">
<meta name="msapplication-TileImage" content="./img/icons/mstile-144x144.png">
<meta name="msapplication-config" content="./img/icons/browserconfig.xml">
<meta name="theme-color" content="#3D5063">
<!-- FACEBOOK META -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Passcloud" />
<meta property="og:description" content="Passcloud" />
<meta property="og:url" content="https://passcloud.co" />
<meta property="og:image" content="./img/bg.png" />
<!-- TWITTER META -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="Passcloud" />
<meta name="twitter:title" content="Passcloud" />
<meta name="twitter:description" content="https://passcloud.co" />
<meta name="twitter:image" content="./img/bg.png>" />
<meta name="twitter:twitter:image:alt" content="https://passcloud.co" />
<!-- STYLES -->
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />-->
<!-- <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> -->
<link type="text/css" rel="stylesheet" href="./library/materialize/css/materialize.min.css" />
<link type="text/css" rel="stylesheet" href="./css/materialicons.css" />
<link type="text/css" rel="stylesheet" href="./library/github-markdown-css/github-markdown.css" />
<link type="text/css" rel="stylesheet" href="./css/app.css" />
<link type="text/css" rel="stylesheet" href="./css/customization.css" />
</head>
<body class="" onchange="formInteraction();" onkeypress="formInteraction();" onkeyup="formInteraction();">
<main>
<form name="formCloud" class="formCloud col s12" id="formCloud" action="javascript:void(0);" onsubmit="javascript:void(0);">
<header class="row graD page-topbar">
<div class="col s12 m12 l12 text-white inline" style="margin-bottom: 10px;">
<a href="#" data-activates="slide-out" class="menuButton button-collapse sidebar-collapse btn-floating btn-medium waves-effect waves-light accent-2 card gradient-45deg-amber-amber hide-on-large-only">
<i class="material-icons">menu</i>
</a>
<!-- <a href="#" data-activates="slide-out" class="menuButton button-collapse circle hide-on-large-only white-text">
<i class="material-icons white-text">menu</i>
</a> -->
<div class="logo-wrapper noselect hide-on-large-only">
<img src="./img/logo.png" class="brand-logo" alt="Passcloud brand logo.">
<span class="logo-text">Passcloud</span>
</div>
</div>
<div class="input-field masterPassword col s12 m12 l12 text-white inline">
<input type="password" name="masterPass" value="" id="masterPass" class="masterPass" title="Choose a strong Master Password." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="1" /><button class="clearInput"
onClick="clearInput(masterPass);">✕</button>
<label class="mp" for="masterPass">Master Password:</label>
</div>
</header>
<div class="row">
<div class="input-field col s12 m6 l6">
<input type="url" name="siteName" value="" id="siteName" class="" title="Please enter a doman or site name." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="2" /><button class="clearInput" onClick="clearInput(siteName);">✕</button>
<label for="siteName">Site Name:</label>
</div>
<div class="input-field col s12 m6 l6">
<input type="text" name="userProfile" value="" id="userProfile" class="" title="Please enter a valid username or profile." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="3" /><button class="clearInput"
onClick="clearInput(userProfile);">✕</button>
<label for="userProfile">User Profile:</label>
</div>
</div>
<div class="row">
<div class="input-field col s4 m2 l2">
<!--<div for="countVal" style="font-size: 0.8rem;">Characters:</div>-->
<select name="charLength" id="charLength" onchange="formInteraction();" onkeypress="formInteraction();" tabindex="4">
<option value="8">8</option>
<option value="12">12</option>
<option value="16" selected>16</option>
<option value="24">24</option>
<option value="32">32</option>
<option value="64">64</option>
</select>
<!--<select name="charLength" id="charLength" onchange="formInteraction();" onkeypress="formInteraction();" tabindex="4">
<option value="4">4</option>
<option value="6">6</option>
</select>-->
<label>Length:</label>
</div>
<div class="input-field col s4 m2 l2">
<input type="number" pattern="[0-9]*" id="year" value="document.write(currentYear);" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="5" />
<label for="yearNum" id="yearLabel" class="tooltipped" data-position="right" data-delay="100" data-tooltip="Yearly password change.">
Year:
</label>
</div>
<div class="input-field col s4 m2 l2">
<input type="number" pattern="[0-9]*" id="seedNum" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="6" />
<label for="seedNum" id="seedNumLabel" class="tooltipped" data-position="right" data-delay="100" data-tooltip="Change the number to generate a new password.">
Seed:
</label>
</div>
<div class="input-field col s6 m3 l3">
<select name="passType" id="passType" onchange="formInteraction();" onkeypress="formInteraction();" tabindex="7">
<option value="password" class="light-blue">Password</option>
<option value="pin">PIN</option>
<option value="username">USERNAME</option>
<option value="phrase">PHRASE</option>
<option value="noun">NOUN</option>
<option value="xkcd" data-alternative="DICEWARE">DICEWARE</option>
<!--<option value="salt">SALT</option>-->
</select>
<label>Type:</label>
</div>
<div class="col s6 m3 l3">
<ul class="collapsible collapsible-accordion z-depth-0" id="optionsMenu" data-open="no">
<li>
<a class="collapsible-header">OPTIONS: <span class="pusharrowsright" id="optionsArrow">⇣</span></a>
<div class="collapsible-body options">
<ul class="passchecks">
<li>
<input type="checkbox" class="filled-in tooltipped" id="unique" checked="checked" />
<label for="unique" id="uniqueLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="Prevent duplicate characters.">
Unique
</label>
</li>
<li>
<input type="checkbox" class="filled-in tooltipped" id="alpha" checked="checked" />
<label for="alpha" id="alphaLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="A a B b C c D d E e …">
Alpha
</label>
</li>
<li>
<input type="checkbox" class="filled-in tooltipped" id="numeric" checked="checked" />
<label for="numeric" id="numericLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="1 2 3 4 5 6 7 8 9 0">
Numeric
</label>
</li>
<li>
<input type="checkbox" class="filled-in tooltipped" id="ambiguous" checked="checked" />
<label for="ambiguous" id="ambiguousLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="_ i I L 1 l l | o 0 O">
Similar
</label>
</li>
<li>
<input type="checkbox" class="filled-in tooltipped" id="special" checked="checked" />
<label for="special" id="specialLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="! @ # $ % ^ & * _ - = + ` ~ …">
Special
</label>
</li>
<li>
<input type="checkbox" class="filled-in tooltipped" id="extended" />
<label for="extended" id="extendedLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="¡ ¢ £ ¤ ¥ ¦ § ¨ ™ © ® ª ° ± µ ¿ × ÷">
Extended
</label>
</li>
<li>
<input type="checkbox" class="filled-in tooltipped" id="yearly" />
<label for="yearly" id="yearlyLabel" class="tooltipped" data-position="left" data-delay="100" data-tooltip="Changes passwords every year.">
Yearly
</label>
</li>
<li><br/></li>
</ul>
</div>
</li>
</ul>
</div>
<!--<div style="clear:both;"></div>-->
</div>
<div class="row">
<div class="input-field col s12 m12 l12">
<input type="password" class="domainPassword noselect" id="domainPassword" name="domainPassword" placeholder="Domain Password:" readonly="true" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" onkeydown="return false" style="" />
</div>
</div>
</form>
<footer class="white" style="margin:0;padding:1vmin 4vmin;">
<div class="col s12 m12 l12">
<button type="submit" class="waves-effect waves-light btn light-blue z-depth-0" style="margin-right:22px;" onclick="saveForm();">Save</button>
<button type="reset" class="waves-effect waves-light btn light-blue z-depth-0" onclick="clearForm();">Clear</button>
<a class="right modal-trigger" href="#about">
<i class="material-icons">info_outline</i>
</a>
</div>
</footer>
</main>
<section>
<!-- Modal Structure -->
<div id="about" class="modal modal-fixed-footer">
<div class="modal-content">
<article id="readme" class="markdown-body">
</article>
</div>
<div class="modal-footer">
<div class="col l6 s12 left">
<a href="https://github.com/spencerthayer/Passcloud">Passcloud</a>
<!-- cc logo -->
N©!
2009 —
<script>
document.write(new Date().getFullYear());
</script>
<!--<a href="http://spencerthayer.com/" target="_system" onClick="window.open(" http://spencerthayer.com ", "_system ");">Spencer Thayer</a>-->
</div>
<a href="javascript:void(0);" class=" modal-action modal-close waves-effect waves-blue btn-flat right">Close</a>
</div>
</div>
</section>
<!--<ul id="slide-out" class="side-nav fixed">
<li class="logo flow-text">Passcloud</li>
</ul>-->
<ul id="slide-out" class="side-nav fixed">
<li style="height:176px;">
<div class="userView" style="height:176px;">
<div class="background">
<img src="./img/bg.png" width="100%">
</div>
<!--
<a href="#!user"><img class="circle" src="http://materializecss.com/images/yuna.jpg"></a>
<a href="#!name"><span class="white-text name">John Doe</span></a>
<a href="#!email"><span class="white-text email">jdandturk@gmail.com</span></a>
-->
</div>
</li>
<!-- <li>
<a class='dropdown-button btn' href='#' data-activates='dropdown1'>Drop Me!</a>
<ul id='dropdown1' class='dropdown-content'>
<li><a href="#!">one</a></li>
<li><a href="#!">two</a></li>
<li class="divider"></li>
<li><a href="#!">three</a></li>
<li><a href="#!"><i class="material-icons">view_module</i>four</a></li>
<li><a href="#!"><i class="material-icons">cloud</i>five</a></li>
</ul>
</li> -->
<li>
<div class="input-field">
<input type="text" name="syncKey" value="" id="syncKey" class="syncKey" title="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" onkeypress="putSyncKey()" /*disabled="disabled" */ /><button class="syncInput"
onClick="randSynckey();">↺</button>
</div>
</li>
<li>
<!-- <a class="subheader">Saved Sites</a> -->
<button class="waves-effect waves-light btn light-blue z-depth-0" id="sync" style="margin-left:22px;" onclick="sync();">Sync</button>
</li>
<li>
<a class="waves-effect">
<!-- <img src="https://ucygetfavicon.appspot.com/http://google.com" class="favicon circle" /> -->
<!-- <img src="https://logo.clearbit.com/google.com" class="favicon circle" style="margin-top: 2px;" /> Test Google -->
</a>
</li>
</ul>
</body>
<script src="./library/jquery/dist/jquery.min.js" data-version="3.2.1" data-source="https://github.com/jquery/jquery"></script>
<script src="./library/materialize/js/materialize.min.js" data-version="0.100.2" data-source="https://github.com/dogfalo/materialize"></script>
<script src="./library/chance/dist/chance.min.js" data-version="1.0.4" data-source="https://github.com/chancejs/chancejs"></script>
<script src="./library/clipboard/dist/clipboard.min.js" data-version="1.7.1" data-source="https://github.com/zenorocha/clipboard.js"></script>
<script src="./library/crypto-js/crypto-js.js"></script>
<script src="./library/marked/marked.min.js" data-version="0.3.18" data-source="https://github.com/markedjs/marked"></script>
<script src="./library/firebase/firebase-app.js"></script>
<script src="./library/firebase/firebase-auth.js"></script>
<script src="./library/firebase/firebase-database.js"></script>
<script src="./library/firebaseui/dist/firebaseui.js"></script>
<script src="./js/app.js"></script>
<script src="./js/app.model.js"></script>
<script src="./js/app.storage.js"></script>
<script src="./js/app.controller.js"></script>
<script src="./js/app.view.js"></script>
<script src="./js/app.xkcd.js"></script>
<script src="./js/app.crypt.js"></script>
<script src="./js/app.firebase.js"></script>
<script>
// $(".domainPassword").on("focus",function(){
// $(this).trigger("blur");
// });
$('.dropdown-button').dropdown({
inDuration: 300,
outDuration: 225,
constrainWidth: false, // Does not change width of dropdown to that of the activator
hover: false, // Activate on hover
gutter: 01, // Spacing from edge
belowOrigin: false, // Displays dropdown below the button
alignment: 'left', // Displays dropdown with edge aligned to the left of button
stopPropagation: false // Stops event propagation
}
);
</script>
</html>