-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
133 lines (103 loc) · 2.16 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
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
132
133
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<style type="text/css">
html , body {
margin:0px;
padding:0px;
border:0px;
width:100%;
height:100%;
}
body {
background-color: rgb(0,0,0);
background-image: url("");
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
background-size: cover;
}
p.message {
font-family: Baskerville Old Face;
font-size:24px;
text-align:left;
color:white;
text-shadow: 2px 2px #000000FF;
}
#thumb_prototype {
background-color:#00FF00;
object-fit:scale-down;
border:0px;
margin:0px;
padding:0px;
}
img.large {
margin:auto;
border:0px;
padding:0px;
width:90%;
height:90%;
object-fit:scale-down;
}
#outerdiv {
display:flex;
width:100%;
height:100%;
}
#imagediv {
margin:0px;
border:0px;
padding:0px;
width:60%;
height:100%;
background:white;
}
#textdiv {
margin:0px;
border:0px;
padding:0px;
width:30%;
height:100%;
background:black;
}
#thumbdiv {
background:blue;
width:10%;
height:100%;
overflow-x:hidden;
overflow-y:scroll;
margin:0px;
border:0px;
padding:0px;
}
</style>
</head>
<body>
<img id="thumb_prototype" />
<div id="outerdiv">
<div id="thumbdiv" >
</div>
<div id="imagediv">
<img class="large" id="large_image" src="">
</div>
<div id="textdiv" >
<p class="message">Some text goes here<br /> maybe it wraps</p>
</div>
</div>
<script src="scripts/gallery.js"></script>
<script language="javascript" type="text/javascript">
"use strict";
<!-- proto is a place holder, it's only used to style the thumbnails -->
var proto = document.getElementById("thumb_prototype");
var newimg = proto.cloneNode(true);
proto.parentNode.removeChild(proto);
var thumbs = document.getElementById("thumbdiv");
var g = new Gallery(newimg , thumbs , document.getElementById("large_image") , "may2018/files.txt");
var w = getScrollbarWidth(thumbs);
thumbs.style.width = "" + (thumbs.clientWidth - w) + "px";
thumbs.style.paddingRight = "" + w + "px";
</script>
</body>
</html>