-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (164 loc) · 7.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="random name generator">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Overlock" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cabin" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Droid+Serif" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.3/foundation.min.css" />
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>Random Name Generator</title>
</head>
<body>
<h1>Random name generator
<svg width="40" height="20">
<polygon points="0,0 40,0 20,20" class='arrow'/>
</svg>
</h1>
<div class="about">
<p>This is a little program which generates random names based on letters frequency. It generates completely random names, not related to any real ones. Of course, it can accidentally create existing names or even words.</p>
<p><strong>Length</strong> option defines name length. Minimum is 2 letters length and maximum is 10. However, long names (with length 7 and more) trend to look less natural.</p>
<p>A few names styles are available in the program. <strong>General</strong> is most random, plus it allowes two vowels or consonants go one after another in a row, that is clusters and diphthongs are possible (but random). <strong>Simplistic</strong> style will always have a vowel following a consonant and vice versa, disallowing clusters; usually such names will be easiest to pronounce and look most natural. <strong>Soft</strong> style has generally more vowels and adjusted frequencies for all letters. <strong>Harsh</strong> style has more consonants and frequencies are changed too to make it sound more hard and strong. <strong>Snake</strong> style is for fun, made to resemble snake's hissing.</p>
<p><strong>Favourite</strong> option makes possibility for encountering certain letter dramatically higher.</p>
<p><strong>Quantity</strong> option lets to generate many names at once.</p>
<p>Readme and source code can be found <a href="https://github.com/svmi3195/random_name_generator">here</a>.</p>
<p>You can also define name "skeleton" yourself, 0 (zero) for vowels, 1 (one) for consonants:</p>
<input type="text" id="skeleton">
</div>
<div class="row expanded settings">
<div class="column small-12 medium-4 large-2">
<div class="input-group">
<span class="input-group-label">Length</span>
<input class="input-group-field length" type="number" min="2" max="10" value="5">
</div>
</div>
<div class="column small-12 medium-4 large-2">
<div class="input-group">
<span class="input-group-label">Style</span>
<select class="input-group-field style">
<option value="gen">General</option>
<option value="simp">Simplistic</option>
<option value="soft">Soft</option>
<option value="harsh">Harsh</option>
<option value="snake">Snake</option>
</select>
</div>
</div>
<div class="column small-12 medium-4 large-2">
<div class="input-group">
<span class="input-group-label">Starts</span>
<select class="input-group-field starts">
<option value="rnd">Random</option>
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
<option value="d">D</option>
<option value="e">E</option>
<option value="f">F</option>
<option value="g">G</option>
<option value="h">H</option>
<option value="i">I</option>
<option value="j">J</option>
<option value="k">K</option>
<option value="l">L</option>
<option value="m">M</option>
<option value="n">N</option>
<option value="o">O</option>
<option value="p">P</option>
<option value="q">Q</option>
<option value="r">R</option>
<option value="s">S</option>
<option value="t">T</option>
<option value="u">U</option>
<option value="v">V</option>
<option value="w">W</option>
<option value="x">X</option>
<option value="y">Y</option>
<option value="z">Z</option>
</select>
</div>
</div>
<div class="column small-12 medium-4 large-2">
<div class="input-group">
<span class="input-group-label">Ends</span>
<select class="input-group-field ends">
<option value="rnd">Random</option>
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
<option value="d">D</option>
<option value="e">E</option>
<option value="f">F</option>
<option value="g">G</option>
<option value="h">H</option>
<option value="i">I</option>
<option value="j">J</option>
<option value="k">K</option>
<option value="l">L</option>
<option value="m">M</option>
<option value="n">N</option>
<option value="o">O</option>
<option value="p">P</option>
<option value="q">Q</option>
<option value="r">R</option>
<option value="s">S</option>
<option value="t">T</option>
<option value="u">U</option>
<option value="v">V</option>
<option value="w">W</option>
<option value="x">X</option>
<option value="y">Y</option>
<option value="z">Z</option>
</select>
</div>
</div>
<div class="column small-12 medium-4 large-2">
<div class="input-group">
<span class="input-group-label">Favourite</span>
<select class="input-group-field fav">
<option value="none">None</option>
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
<option value="d">D</option>
<option value="e">E</option>
<option value="f">F</option>
<option value="g">G</option>
<option value="h">H</option>
<option value="i">I</option>
<option value="j">J</option>
<option value="k">K</option>
<option value="l">L</option>
<option value="m">M</option>
<option value="n">N</option>
<option value="o">O</option>
<option value="p">P</option>
<option value="q">Q</option>
<option value="r">R</option>
<option value="s">S</option>
<option value="t">T</option>
<option value="u">U</option>
<option value="v">V</option>
<option value="w">W</option>
<option value="x">X</option>
<option value="y">Y</option>
<option value="z">Z</option>
</select>
</div>
</div>
<div class="column small-12 medium-4 large-2">
<div class="input-group">
<span class="input-group-label">Quantity</span>
<input class="input-group-field quantity" type="number" min="1" max="10" value="1">
</div>
</div>
</div>
<div class="centered"><button type="button" class="genBtn">Generate</button></div>
<div class="result centered">_ _ _ _ _</div>
<script src="https://use.fontawesome.com/d3d3d81daa.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="app.js"></script>
</body>
</html>