-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagebox11.html
83 lines (72 loc) · 1.62 KB
/
imagebox11.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
<html>
<head>
<title>IMAGE BOX Vol.11 岩石 previews</title>
<style>
body {
margin:0;
}
#populate {
font-family: sans-serif;
}
div.gallery:hover {
background: #ddd;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 2px;
text-align: center;
}
* {
box-sizing: border-box;
}
.responsive {
padding: 0 6px;
margin: 6px 0;
float: left;
width: 24.99999%;
}
@media only screen and (max-width: 700px) {
.responsive {
width: 49.99999%;
margin: 0 0 6px 0;
}
}
@media only screen and (max-width: 500px) {
.responsive {
width: 100%;
}
}
</style>
</head>
<body>
<h2 style="border-bottom: 5px solid #433722;"><img src="http://dezanomoto.jp/pic-labo/simg/dj-ib011.jpg" width="100"> IMAGE BOX Vol.11 岩石</h2>
<div id="populate">
Please enable JavaScript.
</div>
<hr>
<div style="font-size:75%;text-align:right;color:#9c9092;">
<i>images © Image DJ Japan, made for VGTP ease of access</i>
</div>
<script>
var target = document.getElementById("populate");
var template = "<div class=\"responsive\"> <div class=\"gallery\"> <a href=\"http://www.explode.jp/s/dj-ib/dj-ib011/dj-ib011-xxx_jpg.html\"> <img src=\"http://www.explode.jp/s/dj-ib/dj-ib011/l/dj-ib011-xxx.jpg\" alt=\"dj-ib011-xxx.jpg\" width=\"600\"> </a> <div class=\"desc\">dj-ib011-xxx.jpg</div> </div> </div>";
var genHTML = "";
var i;
for (i = 1; i <= 200; i++) {
var nst = "";
if(i > 99)
nst += i;
else if(i > 9)
nst = "0" + i;
else
nst = "00" + i;
genHTML += template.replaceAll("xxx", nst);
}
console.log(target);
target.innerHTML = genHTML;
</script>
</body>
</html>