-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathgallery.html
49 lines (49 loc) · 1.03 KB
/
gallery.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
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>RYB Gallery</title>
<link href="css/style.css" rel="stylesheet">
<script type="text/javascript" src="./assets/gallery.js"></script>
<style>
p, h1, h2, h3, h4, h5, h6, img {
margin: 15px;
}
h1, h2, h3, h4, h5, h6 {
color: #fd7;
}
h1 {
border-bottom: 1px dashed gray;
}
#link-back {
position: fixed;
left: 10px;
top: 10px;
}
#container {
width: 850px;
margin-right: auto;
margin-left: auto;
}
img {
max-width: 850px;
}
</style>
<script>
window.addEventListener('load', function() {
var g = document.getElementById('gallery');
for (var i = 0; i < gallery.length; i++) {
var img = document.createElement('img');
img.src = gallery[i];
g.appendChild(img);
}
});
</script>
</head>
<body>
<div id="container">
<h1>RYB Gallery</h1>
<div id="gallery"></div>
</div>
<a href="./" id="link-back">← Color Wheel</a>
</body>
</html>