forked from mistic100/Photo-Sphere-Viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin-gallery.html
More file actions
123 lines (116 loc) · 3.33 KB
/
Copy pathplugin-gallery.html
File metadata and controls
123 lines (116 loc) · 3.33 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PhotoSphereViewer - gallery demo</title>
<link rel="stylesheet" href="../dist/photo-sphere-viewer.css">
<link rel="stylesheet" href="../dist/plugins/gallery.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="photosphere"></div>
<script src="../node_modules/three/build/three.js"></script>
<script src="../node_modules/uevent/browser.js"></script>
<script src="../dist/photo-sphere-viewer.js"></script>
<script src="../dist/plugins/gallery.js"></script>
<script>
const base = 'https://photo-sphere-viewer-data.netlify.app/assets/tour/';
const items = [
{
id : 'sphere',
panorama : 'sphere.jpg',
thumbnail: 'sphere_small.jpg',
options : {
caption: 'Parc national du Mercantour <b>© Damien Sorel</b>',
},
},
{
id : 'test-sphere',
panorama: 'test-sphere.jpg',
name : 'Test sphere',
},
{
id : 1,
panorama : base + 'key-biscayne-1.jpg',
thumbnail: base + 'key-biscayne-1-thumb.jpg',
name : 'One',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
{
id : 2,
panorama : base + 'key-biscayne-2.jpg',
thumbnail: base + 'key-biscayne-2-thumb.jpg',
name : 'Two',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
{
id : 3,
panorama : base + 'key-biscayne-3.jpg',
thumbnail: base + 'key-biscayne-3-thumb.jpg',
name : 'Three',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
{
id : 4,
panorama : base + 'key-biscayne-4.jpg',
thumbnail: base + 'key-biscayne-4-thumb.jpg',
name : 'Four',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
{
id : 5,
panorama : base + 'key-biscayne-5.jpg',
thumbnail: base + 'key-biscayne-5-thumb.jpg',
name : 'Five',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
{
id : 6,
panorama : base + 'key-biscayne-6.jpg',
thumbnail: base + 'key-biscayne-6-thumb.jpg',
name : 'Six',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
{
id : 7,
panorama : base + 'key-biscayne-7.jpg',
thumbnail: base + 'key-biscayne-7-thumb.jpg',
name : 'Seven',
options : {
caption: 'Cape Florida Light, Key Biscayne <b>© Pixexid</b>',
},
},
];
const viewer = new PhotoSphereViewer.Viewer({
container : 'photosphere',
loadingImg: 'assets/photosphere-logo.gif',
panorama : items[0].panorama,
caption : items[0].options.caption,
plugins : [
[PhotoSphereViewer.GalleryPlugin, {
items : items,
visibleOnLoad: true,
// thumbnailSize: {
// width: 100,
// height: 100,
// }
}],
],
});
const gallery = viewer.getPlugin(PhotoSphereViewer.GalleryPlugin);
</script>
</body>
</html>