-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
131 lines (113 loc) · 4.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Path of Exile Character Name Generator</title>
<style>
@font-face {
font-family: 'Fontin SmallCaps Regular';
font-style: normal;
font-weight: normal;
src: local('Fontin SmallCaps Regular'), url('Fontin-SmallCaps.woff') format('woff');
}
html,
body {
height: 100vh;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
/*background: #f4e1c3;*/
background: #0c0b0b;
color: #CAC2A8;
}
a {
color: brown;
}
.groups {
padding: 20px;
margin: 0;
list-style-type: none;
font-family: "Fontin SmallCaps Regular", serif;
font-size: 28px;
font-weight: bold;
text-align: center;
width: 90%;
/*background: #f4e1c3;*/
color: #CAC2A8;
transform: translateY(-30px);
justify-content: center;
}
@media (min-width: 768px) {
.groups {
font-size: 50px;
padding: 40px;
width: 70%;
}
}
.groups_item {
padding: 0;
}
.tools {
position: absolute;
bottom: 20px;
width: auto;
display: flex;
flex-direction: column;
align-items: center;
}
.tools .go {
font-size: 20px;
font-weight: bold;
text-transform: uppercase;
padding: 10px 20px;
margin-bottom: 10px;
cursor: pointer;
font-family: "Palatino Linotype", serif;
background: #d19638;
border: 1px solid #000;
}
.tools span {
text-align: center;
}
</style>
</head>
<body>
<div class="groups" id="groups"><span class="groups_item groups_item-1"></span><span class="groups_item groups_item-2"></span></div>
<div class="tools">
<button class="go" id="go">Generate</button>
<span>Path of Exile Character Name Generator - based on PoE NPC/God/Boss names</span>
<!-- <a href="#" id="download" download>Save</a> -->
</div>
<script>
const lor = [
['Phre','Chi', 'Inno', 'Sin', 'At', 'Dory', 'Az', 'Tar', 'Veru', 'Caspi', 'Iza', 'Cadi', 'Mali', 'Doed', 'Geo', 'Voll', 'Victa', 'On', 'Ad', 'Rig', 'Ezo', 'Ka', 'Kar', 'Mara', 'Glar', 'Sen', 'Gem', 'Astra', 'Vasti', 'Sko', 'Ein', 'Gri', 'Mar', 'Shav', 'Bru', 'Titu', 'Vas', 'Desh', 'Mala', 'Sola', 'Luna', 'Dia', 'Pie', 'Romi', 'Peran', 'Ca', 'Domi', 'Gravi', 'Ase', 'Fair', 'Dares', 'Hyr', 'Lavian', 'Zer', 'Hrim', 'Bar', 'Veri', 'El', 'Sha', 'Drox', 'Si', 'Za', 'Cas', 'Be', 'Va', 'Sio', 'Arohon', 'Hine', 'Kita', 'Ngama', 'Rama', 'Tasa', 'Taw', 'Tuko', 'Vala', 'Bry', 'Car', 'En', 'Had', 'Hil', 'Joy', 'Krai', 'Lot', 'Mait', 'Mis', 'Ol', 'Sa', 'Rala', 'Da', 'Ara', 'Gruth', 'Abbe', 'Rys', 'Tsoa', 'Gre', 'Yu', 'Sha', 'Garu', 'Trini', 'Gari', 'Tol', 'Bes', 'Nes', 'Tark', 'Ali', 'Era', 'Hele', 'Silk', 'Yee', 'Oak', 'Cla', 'Har', 'Ki', 'Oy', 'Peta', 'Va', 'Tasu', 'Ban', 'La', 'Utu', 'Vilen', 'Ira', 'Cata', 'Ha', 'Leo', 'To', 'Vag', 'Vori', 'Al', 'Jun', 'Ni', 'Kir', 'Osha', 'Octa'],
['cia', 'tus', 'cence', 'ziri', 'ani', 'meri', 'cus', 'so', 'garo', 're', 'fri', 'rio', 'dar', 'wald', 'myr', 'om', 'ui', 'keth', 'ryn', 'tari', 'ling', 'li', 'ri', 'the', 'har', 'gor', 'ceus', 'ronne', 'tiri', 'ret', 'chai', 'ris', 'lla', 'ty', 'ra', 'dus', 'vas', 'nus', 'cius', 'nath', 'graves', 'ri', 'ga', 'phi', 'nor', 'an', 'tania', 'der', 'per', 'rus', 'na', 'sia', 'ast', 'al', 'sa', 'gui', 'kora', 'va', 'hu', 'ko', 'lio', 'hoa', 'hama', 'den', 'far', 'rey', 'lock', 'tyn', 'lin', 'moa', 'sy', 'lem', 'kesh', 'varo', 'kaali', 'kul', 'rath', 'latha', 'goth', 'ust', 'gul', 'kari', 'khan', 'valdi', 'man', 'tel', 'leigh', 'mir', 'rissa', 'gan', 'un', 'nja', 'ni', 'non', 'ta', 'sha', 'rina', 'reon', 'ku', 'ci', 'ac', 'bi', 'vius']
];
const go = document.getElementById('go');
const elems = document.getElementsByClassName('groups_item');
function random(arr) {
return arr[Math.floor(Math.random()*arr.length)];
}
go.addEventListener('click', () => {
for (var i = 0; i < lor.length; i++) {
elems[i].innerHTML = random(lor[i])
}
const node = document.getElementById('groups');
domtoimage.toPng(node)
.then(function(dataUrl) {
let link = document.getElementById('download');
link.href = dataUrl;
})
.catch(function(error) {
console.error('oops, something went wrong!', error);
});
})
go.click();
</script>
</body>
</html>