-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo.html
161 lines (148 loc) · 6.49 KB
/
demo.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<title>A simple gallery widget</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link media="all" rel="stylesheet" type="text/css" href="styles/gallery.css" />
<style type="text/css" media="all">
body {
margin: 0;
padding: 0;
}
.container.workspace {
width: 860px;
height: 1000px;
margin: 0 auto 80px;
}
.one, .few, .lotsof {
clear: both;
}
.image {
display: table;
table-layout: fixed;
float: left;
width: 100px;
height: 80px;
margin: 0 20px 20px 0;
}
.image img {
max-width: 100px;
max-height: 100px;
border: 1px solid #ccc;
}
</style>
<script type="text/javascript" src="vendor/bower/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="vendor/bower/simple-module/lib/module.js"></script>
<script type="text/javascript" src="lib/gallery.js"></script>
<script type="text/javascript">
$(function() {
$("a.image").on("click", function(e) {
var el = $(this)
simple.gallery({
el: el,
itemCls: ".image",
wrapCls: ".image-list"
})
});
});
</script>
</head>
<body>
<div class="container workspace">
<div class="one image-list">
<h4>One picture</h4>
<a href="javascript:;" class="image" data-image-name="image01" data-image-size="1440,740" data-image-src="images/01.jpg" data-download-src="images/01.jpg">
<img alt="image01" src="images/01.jpg" title="image01">
</a>
</div>
<div class="few image-list">
<h4>Few pictures</h4>
<a href="javascript:;" class="image">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image">
<img alt="image03" src="images/03.gif" title="image03">
</a>
<a href="javascript:;" class="image">
<img alt="image04" src="images/04.png" title="image04">
</a>
</div>
<div class="lotsof image-list">
<h4>Lots of pictures</h4>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
<a href="javascript:;" class="image" data-image-name="image02" data-image-size="559,332" data-image-src="images/02.png">
<img alt="image02" src="images/02.png" title="image02">
</a>
<a href="javascript:;" class="image" data-image-name="image04" data-image-size="1330,433" data-image-src="images/04.png">
<img alt="image04" src="images/04.png" title="image04">
</a>
</div>
</div>
</body>
</html>