-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.htm
121 lines (84 loc) · 3.53 KB
/
demo.htm
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
<!doctype html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/jkresponsivegallery.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="assets/jquery.touchSwipe.min.js"></script>
<script src="assets/jkresponsivegallery.js">
/**
* JK Responsive Gallery Script
* Copyright JavaScript Kit (www.javascriptkit.com)
* Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code
*/
</script>
<script>
jQuery(function($){
$('#gallery1').responsivegallery()
$('#gallery1b').responsivegallery()
$('#gallery2').responsivegallery({
media: [
["https://www.youtube.com/watch?v=fzrfrXhE-w4", "Sam, a shy young man, finds himself in a slow-motion world"],
["images/church.jpg", "In the distant valley"],
["images/sunset.jpg", "Biking into the night"]
] //<-- no comma after last setting
})
$('#group1 > div.rthumbnail').responsivegallery()
$('#group2 a').responsivegallery({autoclose:false})
})
</script>
</head>
<body>
<h2>Demos</h2>
<h3>Single Image:</h3>
<div id="gallery1" class="rthumbnail">
<a href="images/birds.jpg">
<img border="0" src="images/birds_thumb.jpg" width="150" height="112"></a>
<div class="rcaption">A pair of birds look on as the sun rises. <a href="http://www.dynamicdrive.com">A link</a></div>
</div>
<hr />
<h3>Single Youtube Video:</h3>
<div id="gallery1b" class="rthumbnail">
<a href="https://www.youtube.com/v/Pe0jFDPHkzo">
<img src="http://img.youtube.com/vi/oIlIVFBBbNw/1.jpg" height="112" border="0" width="150"></a>
<div class="rcaption"><a href="https://youtu.be/oIlIVFBBbNw">Pigeons</a> - Cute animation cartoon</div>
</div>
<hr />
<h3>Single Image with additional images and Youtube videos defined via JavaScript</h3>
<div id="gallery2" class="rthumbnail">
<a href="images/birds.jpg">
<img border="0" src="images/birds_thumb.jpg" width="150" height="112"></a>
<div class="rcaption">A pair of birds look on as the sun rises. <a href="http://www.dynamicdrive.com">A link</a></div>
</div>
<hr />
<h3>Group of Images and Youtube videos</h3>
<div id="group1">
<div class="rthumbnail">
<a href="https://www.youtube.com/watch?v=Pe0jFDPHkzo">
<img src="http://img.youtube.com/vi/Pe0jFDPHkzo/1.jpg" height="104" border="0" width="150"></a>
<div class="rcaption"><a href="https://www.youtube.com/watch?v=Pe0jFDPHkzo">Cupido</a> - love is blind 3d animation short film</div>
</div>
<div class="rthumbnail">
<a href="images/waterdrop.jpg">
<img src="images/waterdrop_thumb.jpg" height="112" border="0" width="150"></a>
<div class="rcaption">With a water drop begins the ripples.</div>
</div>
<div class="rthumbnail">
<a href="https://www.youtube.com/watch?v=wEKLEeY_WeQ">
<img src="http://img.youtube.com/vi/dSmAMSuNFvs/1.jpg" height="103" border="0" width="150"></a>
<div class="rcaption">Destiny - Animation Short</div>
</div>
<div class="rthumbnail">
<a href="images/legs.jpg">
<img src="images/legs_thumb.jpg" height="131" border="0" width="150"></a>
<div class="rcaption">Busking in the sun.</div>
</div>
</div>
<h3>Text links</h3>
<ul id="group2">
<li><a href="https://www.youtube.com/watch?v=Pe0jFDPHkzo" title="Cupido - love is blind 3D animation short">Cupido - love is blind 3D animation short</a></li>
<li><a href="images/waterdrop.jpg">Waterdrop</a></li>
<li><a href="https://www.youtube.com/watch?v=wEKLEeY_WeQ">Destiny- animated short</a></li>
<li><a href="images/legs.jpg">Sunbathing</a></li>
</ul>
</body>
</html>