-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCharacters.html
37 lines (31 loc) · 1.03 KB
/
Characters.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
<html>
<head>
<title>Characters</title>
<style>
body { font-family: sans-serif; }
</style>
</head>
<body>
<h1>Characters</h1>
</body>
<script>
const URL = "https://p-img.danmachixi.com/common/cmn_navi/";
window.onload = () => {
let count1 = 1;
while (count1 <= 10) {
let count2 = 1;
while (count2 <= 5) {
let img_src = URL + count1 + "/" + count2 + ".png";
let img_new = document.createElement("img");
img_new.src = img_src;
img_new.onclick = () => window.open(img_src);
img_new.style["cursor"] = "pointer";
document.body.appendChild(img_new);
count2++;
}
document.body.appendChild(document.createElement("hr"));
count1++;
}
}
</script>
</html>