-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (70 loc) · 2.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Almost Random Words</title>
<meta
name="description"
content="This page prints random words from a popular diceware words list."
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://unpkg.com/purecss@1.0.0/build/pure-min.css"
integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w"
crossorigin="anonymous"
/>
</head>
<body style="margin:3em;">
<noscript>
<div id="noscript-warning">
Please enable JavaScript. This page is useless without JavaScript.
</div>
</noscript>
<div class="splash-container">
<div class="splash">
<h1 class="splash-head">Almost Random Words</h1>
<p class="splash-subhead">
This page prints random words from a
<a href="https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases">popular diceware words list</a>.
It uses a cryptographically sound method, but please switch to
<a href="https://theworld.com/~reinhold/diceware.html">physical entropy</a>
for your highest security applications.
</p>
</div>
</div>
<div class="pure-form">
<input type="number" id="howMany" value="500" required />
<button
type="button"
id="run"
class="pure-button pure-button-primary"
onclick="run()"
>
Get Words
</button>
<p id="result"></p>
</div>
<a href="https://github.com/robert-claypool/almost-rw">
<img
style="position: absolute; top: 0; right: 0; border: 0;"
src="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67"
alt="Fork me on GitHub"
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
/>
</a>
<script src="almost.js"></script>
<script>
function run() {
almost.load(function() {
var howMany = document.getElementById('howMany').value;
document.getElementById('result').innerHTML = almost.getWords(
howMany
);
});
}
</script>
</body>
</html>