86 lines
5.9 KiB
Plaintext
86 lines
5.9 KiB
Plaintext
|
{% macro gallery(id,dir) %}
|
||
|
<script>
|
||
|
var imObjectGallery_124_settings = {
|
||
|
'target': '#imObjectGallery_124', 'backgroundColor': 'transparent',
|
||
|
'description': { 'fontSize': '10pt', 'fontFamily': 'Unica One', 'fontStyle': 'normal', 'fontWeight': 'normal' },
|
||
|
'autoplay': true,
|
||
|
'thumbs': { 'position': 'embed', 'number': 4 }, 'controlBar': { 'show': false, 'color': 'rgba(20, 20, 20, 1)' },
|
||
|
'random': false,
|
||
|
'fullScreen': false,
|
||
|
'slideshow': {
|
||
|
'active': true,
|
||
|
buttonPrev: { url: 'gallery/b01_l.png', x: -12, y: 0, width: 24, height: 37 },
|
||
|
buttonNext: { url: 'gallery/b01_r.png', x: -12, y: 0, width: 24, height: 37 },
|
||
|
nextPrevMode: 'none'
|
||
|
},
|
||
|
'media': [
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-001_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/FSG_FSG_Souls.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-005_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1800, 'height': 1024, 'url': 'gallery/Aquadark_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1920, 'height': 1017, 'url': 'gallery/Ithilnor.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_002.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-004_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1800, 'height': 1024, 'url': 'gallery/Funland-Maze_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_003.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/FSG_Paradies.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-007_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_004.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_010.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/FSG_Club_Sunset.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-008_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_008.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/FSG_Kinderheim-Rickenbach.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-006_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_015.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/FSG_New-Orleans.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_022.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/4Creative-002_001.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_023.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1802, 'height': 1024, 'url': 'gallery/FSG_Orient.png', 'autoplayTime': 6000, 'effect': 'fade' },
|
||
|
{ 'type': 'image', 'width': 1261, 'height': 668, 'url': 'gallery/Pangea_006.png', 'autoplayTime': 6000, 'effect': 'fade' }] }; var dataimObjectGallery_124 = null;
|
||
|
function loadimObjectGallery_124() {
|
||
|
var startIndex = 0;
|
||
|
if (!!dataimObjectGallery_124) {
|
||
|
imObjectGallery_124_settings.startFrom = dataimObjectGallery_124.currentItemIndex();
|
||
|
}
|
||
|
var w = 0;
|
||
|
var h = 0;
|
||
|
w = $('#imObjectGallery_124').width();
|
||
|
|
||
|
w = w + (0);
|
||
|
var wImageMax = 1920;
|
||
|
wImageMax = wImageMax + (0);
|
||
|
wImageMax = Math.min(2560, wImageMax);
|
||
|
w = Math.min(w, wImageMax);
|
||
|
h = w * 1024 / 2560;
|
||
|
imObjectGallery_124_settings.width = w;
|
||
|
imObjectGallery_124_settings.height = h;
|
||
|
dataimObjectGallery_124 = x5engine.gallery(imObjectGallery_124_settings);
|
||
|
}
|
||
|
x5engine.boot.push(function () {
|
||
|
var imObjectGallery_124_resizeTo = null,
|
||
|
imObjectGallery_124_width = 0,
|
||
|
isFirstTime = true;
|
||
|
loadimObjectGallery_124();
|
||
|
x5engine.utils.onElementResize(document.getElementById('imObjectGallery_124').parentNode, function (rect, target) {
|
||
|
if (imObjectGallery_124_width == rect.width) {
|
||
|
return;
|
||
|
}
|
||
|
imObjectGallery_124_width = rect.width;
|
||
|
if (!!imObjectGallery_124_resizeTo) {
|
||
|
clearTimeout(imObjectGallery_124_resizeTo);
|
||
|
}
|
||
|
imObjectGallery_124_resizeTo = setTimeout(function () {
|
||
|
if (!isFirstTime) {
|
||
|
loadimObjectGallery_124();
|
||
|
}
|
||
|
else {
|
||
|
isFirstTime = false;
|
||
|
}
|
||
|
}, 50);
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
{% endmacro %}
|