-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
25 lines (24 loc) · 841 Bytes
/
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
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="./build/spritesheet.css" />
<script src="./build/colors.js"></script>
<script src="./build/classnames.js"></script>
</head>
<body>
<h1>Pokedex</h1>
<script>
for (let t = 1; t <= 807; ++t) {
document.write(`<i class="pkspr-dex-${String(t).padStart(4, `0`)}"></i>`);
}
</script>
<h1>All sprites</h1>
<script>
for (const className of PikaSprite.classNames) {
if (!PikaSprite.colors[className])
continue;
document.write(`<i class="${className}" style="background-color: ${PikaSprite.colors[className].background}; border-radius: 16px; margin-right: 5px;"></i>`);
}
</script>
</body>
</html>