0.6.0 • Published 6 years ago
gallery-pane v0.6.0
galleryPane
Standalone gallery pane module with swipe slider and social integration. Supports AMD and CommonJS module integration.
You can view DEMO HERE.
Demo install
- git clone
- npm install
- bower install
- open "/demo/"
Integration
Main files:
- /dist/gallery.css
- /dist/script.js
Invoke example:
var gallery = new Gallery({
data: jsonData,
rootUrl: '/demo',
historyAPI: false,
thumbsIconClass: 'iconRpl gridIcon',
closeIconClass: 'iconRpl closeIcon'
}).render();
Invoke example with advertising enabled:
var gallery = new Gallery({
data: jsonData,
rootUrl: '/demo',
historyAPI: false,
thumbsIconClass: 'iconRpl gridIcon',
closeIconClass: 'iconRpl closeIcon'.
shouldShowAdvertising: function(counter) {
//return if advertising can be shown (eg. for advertisnin on fifth click -> "return counter === 5;")
},
advertisingTemplate: function(counter) {
//return HTML for banner
},
whenAdvertisingElementReady: function(counter, banner) {
//invoked after banner HTML is appended to gallery
//this is place for async banner invocation
}
}).render();
JSON data example:
var jsonData = [
{
title: 'slika 1',
large: 'http://www.omnihotels.com/-/media/images/globals/activities/skiing-86491418.jpg?h=660&la=en&w=1170',
thumb: 'http://www.omnihotels.com/-/media/images/globals/activities/skiing-86491418.jpg?h=660&la=en&w=1170',
url: '/slika-1',
author: 'Marky Mark',
source: 'Rolling Stone',
social: {
facebook: { count: 12 }
}
},
{
title: 'slika 2',
large: 'http://i.telegraph.co.uk/multimedia/archive/02777/skiing_2777599b.jpg',
thumb: 'http://i.telegraph.co.uk/multimedia/archive/02777/skiing_2777599b.jpg',
url: '/slika-2',
author: 'Marky Mark',
source: 'Rolling Stone',
social: {
facebook: { count: 225 }
}
},
{
title: 'slika 3',
large: 'http://gossipgenie.com/wp-content/uploads/2014/01/Alpine-Skiing.jpg',
thumb: 'http://gossipgenie.com/wp-content/uploads/2014/01/Alpine-Skiing.jpg',
url: '/slika-3',
author: 'Marky Mark',
source: 'Rolling Stone',
social: {
facebook: { count: 145 }
}
}
];
0.6.0
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.1
7 years ago
0.2.29
7 years ago
0.2.28
7 years ago
0.2.25
7 years ago
0.2.24
7 years ago
0.2.23
7 years ago
0.2.22
7 years ago
0.2.21
7 years ago
0.2.19
7 years ago
0.2.18
7 years ago
0.2.17
7 years ago
0.2.15
7 years ago
0.1.14
8 years ago
0.1.13
8 years ago
0.1.12
8 years ago
0.1.11
8 years ago
0.1.10
8 years ago
0.1.8
8 years ago
0.1.7
8 years ago
0.1.6
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago